I just started a new Python/Django webapp job related to GIS (and i'm totally new to GIS). Here is my task and what i have found so far, and i am stuck as to finding out what's the best way or the global standard way of doing things.
A pointer to the right direction, would be appreciated.
أكثر...
- We are building a webapp where a user can upload a shapefile, and take the records and points from the file then populate them on a map.
- Upload a shapefile
- Parsed the shapefile using pyshp library - this seems OK
- I'm able to read the shapes (coordinates) and the records (value for each field on each shape)
- Now say for instance i've got about 40,000+ coordinates, each of them with field records in it
- I'll need to populate those 40k points onto Google Maps - those points should be represented with a marker, and the field records can be represented with a heatmap (depending on which field the user choose to filter it as)
- Certainly loading 40k points onto Google Maps wouldn't make sense as it will slow down the client side of things.
- Use http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/reference.html, this would speed things up.. but the server will still be sending 40k points, which may not work at a point where we need to load more than 40k points for each different section on the map
- Was looking at how we can achieve http://www.gdal.org/grid_tutorial.html by using http://www.gdal.org/gdal_grid.html - I've not been able to get the .tiff generation to work yet
- Also to achieve grid data, i found http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html - though i don't think this actually does it
- I just happen to learn about GeoDjango and https://github.com/biodiv/anycluster, and am looking into it to see if this should be something i should use
- and i'm still continuing to research
A pointer to the right direction, would be appreciated.
أكثر...