On 1/27/10 1:29 AM, "cc0" <audun.hodnefj...@gmail.com> wrote:
> A quick and basic rundown of what I need to do, (my project idea is > still being hatched); > > 1. I have a database with a number of coordinates (we are talking > probably some ten thousand different coordinates) > > 2. I need to relate these coordinates to specific regions on a map > (pref. google maps), these regions should be rather small (for > example, give or take, the size of an average county). I am aware that > perhaps this is not possible to link to named geographical regions, > but more so as polygons. However it is important that the coordinate > then is not in the center of that polygon. > > 3. This region then needs to be highlighted in a way that it is > distinguishable on the map (this needs to be done for all regions > related to a coordinate in the database) > > > Then the question; I have never used django, much less geodjango, > before. So I could use some input such as how well it would be suited > for this task AND if it is a stable and well enough developed tool to > work with on a project of considerable size. > > I greatly appreciate any insightful input! Hello, This sounds like a perfect job for Geodjango. Based on my understanding of what you've said, it would something like: - A model with a PolygonField or MultiPolygon field to contain your areas - A model with a PointField to contain your coordinates, and a foreign key to the area model - Some kind of pre_save or import process that uses an intersects query to assign the appropriate area model to each coordinate model GeoDjango also has strong support for drawing both points and polygons on a variety of mapping apis, so that shouldn't be an issue. Hope that helps! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.