From 5ce660cd65a4ffcf74d94ba987fe03a16b7436a0 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Fri, 10 Jun 2016 11:50:07 +0500 Subject: Fixed #25940 -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml(). --- docs/ref/contrib/gis/gdal.txt | 6 ++++++ docs/ref/contrib/gis/geos.txt | 6 ++++++ docs/releases/1.11.txt | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt index da81ce5e03..9bd2df8dad 100644 --- a/docs/ref/contrib/gis/gdal.txt +++ b/docs/ref/contrib/gis/gdal.txt @@ -448,6 +448,12 @@ coordinate transformation:: __ http://www.gdal.org/classOGRGeometry.html + .. classmethod:: from_gml(gml_string) + + .. versionadded:: 1.11 + + Constructs an :class:`OGRGeometry` from the given GML string. + .. classmethod:: from_bbox(bbox) Constructs a :class:`Polygon` from the given bounding-box (a 4-tuple). diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 811a9ba946..e6d609736e 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -198,6 +198,12 @@ WKB / EWKB ``buffer`` GeoJSON ``str`` or ``unicode`` ======================= ====================== +.. classmethod:: GEOSGeometry.from_gml(gml_string) + + .. versionadded:: 1.11 + + Constructs a :class:`GEOSGeometry` from the given GML string. + Properties ~~~~~~~~~~ diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 9a1cc81d8d..001fb1ead1 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -74,7 +74,8 @@ Minor features :mod:`django.contrib.gis` ~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* The new :meth:`.GEOSGeometry.from_gml` and :meth:`.OGRGeometry.from_gml` + methods allow creating geometries from GML. :mod:`django.contrib.messages` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3