From 24023c6a8fc768ccb72108d2dd4fd8ece04075fd Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 30 Mar 2017 20:17:13 +0500 Subject: Fixed #25874 -- Made GEOSGeometry read SRID from GeoJSON input. --- docs/ref/contrib/gis/geos.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'docs/ref') 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 -- cgit v1.3