#31366: GEOSGeometry fails on instance with GEOJson and srid not 4326. -----------------------------------+-------------------------------------- Reporter: Walter Lorenzetti | Owner: nobody Type: Bug | Status: closed Component: GIS | Version: master Severity: Normal | Resolution: invalid Keywords: Geodjango | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------------+-------------------------------------- Changes (by felixxm):
* status: new => closed * version: 2.2 => master * resolution: => invalid Comment: It's [https://docs.djangoproject.com/en/3.0/ref/contrib/gis/geos/#geosgeometry documented] that ''"for the GeoJSON format, the SRID is set based on the crs member. If crs isn’t provided, the SRID defaults to 4326"''. So if you want to use GeoJSON with a different SRID you need to use `crs`, e.g. {{{ { "type": "Point", "coordinates": [2, 49], "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::3857" } } } }}} -- Ticket URL: <https://code.djangoproject.com/ticket/31366#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/069.6034d0074b867104fa5a14841aa8c2a0%40djangoproject.com.