mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #25940 -- Added OGRGeometry.from_gml() and GEOSGeometry.from_gml().
This commit is contained in:
committed by
Tim Graham
parent
20d1cb33c2
commit
5ce660cd65
@@ -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).
|
||||
|
||||
@@ -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
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
@@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user