diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-03-30 20:17:13 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-04-01 15:35:30 -0400 |
| commit | 24023c6a8fc768ccb72108d2dd4fd8ece04075fd (patch) | |
| tree | a8b874de21a4a2cedc5a9a732d81ac477c775f09 /docs | |
| parent | ede4f6d48c1fe060c239b2477c00df6bbfd4fd7c (diff) | |
Fixed #25874 -- Made GEOSGeometry read SRID from GeoJSON input.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/gis/geos.txt | 11 | ||||
| -rw-r--r-- | docs/releases/2.0.txt | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 0c8139d218..04789fd06e 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -224,9 +224,18 @@ Format Input Type WKT / EWKT ``str`` HEX / HEXEWKB ``str`` WKB / EWKB ``buffer`` -GeoJSON ``str`` +GeoJSON_ ``str`` ======================= ========== +For the GeoJSON format, the SRID is set based on the ``crs`` member. If ``crs`` +isn't provided, the SRID defaults to 4326. + +.. versionchanged:: 2.0 + + In older versions, SRID isn't set for geometries initialized from GeoJSON. + +.. _GeoJSON: https://tools.ietf.org/html/rfc7946 + .. classmethod:: GEOSGeometry.from_gml(gml_string) .. versionadded:: 1.11 diff --git a/docs/releases/2.0.txt b/docs/releases/2.0.txt index 33f969d443..bff9e76c88 100644 --- a/docs/releases/2.0.txt +++ b/docs/releases/2.0.txt @@ -71,6 +71,9 @@ Minor features * Added the :class:`~django.contrib.gis.db.models.functions.LineLocatePoint` function, supported on PostGIS and SpatiaLite. +* Any :class:`~django.contrib.gis.geos.GEOSGeometry` imported from GeoJSON now + has its SRID set. + :mod:`django.contrib.messages` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
