1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #25940 -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml().

This commit is contained in:
Sergey Fedoseev
2016-06-10 11:50:07 +05:00
committed by Tim Graham
parent 20d1cb33c2
commit 5ce660cd65
8 changed files with 44 additions and 1 deletions

View File

@@ -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).

View File

@@ -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
~~~~~~~~~~