Tag Info

New answers tagged

1

Shapely PyQGIS, and GeoDjango use the same API based on the GEOS library: With Shapely: with a list of points: from shapely.geometry import Point, LineString, mapping pt1 = Point(0,0) pt2 = Point(20,20) pt3 = Point (50,50) line = LineString([pt1,pt2,pt3]) #GeoJSON format print mapping(line) {'type': 'LineString', 'coordinates': ((0.0, 0.0), (20.0, ...


0

After two years, I'm here to tell you how I did it. It may not be perfect, but it's something. Our cartographic production is limited to some counties inside Brazil. We never update just some part of the graph, but whole cities. So, whenever a city has major cartographic changes, everything is destroyed and replaced. About planarizing the graphs, this is ...


3

You can cheat, because the EPSG numbers for UTM zones have a pattern than incorporates the zone number. 269ZZ for UTM north zones, where ZZ is the zone number 327ZZ for UTM south zones, where ZZ is the zone number And, since PostGIS uses the EPSG number for the SRID, you're all set.


0

I ended up solving this by overriding the admin model in admin.py, and setting the latitude/longitude fields as read-only like this: class MarkerAdmin(admin.OSMGeoAdmin): default_lon = -93 default_lat = 27 default_zoom = 15 readonly_fields = ('Latitude','Longitude') admin.site.register(Marker, MarkerAdmin) I then modified the relevant ...



Top 50 recent answers are included