diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-04-16 20:05:47 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-04-17 15:31:12 +0200 |
| commit | 9686c888d6a0632e37b2fc70069128dc940c4b38 (patch) | |
| tree | 0d2e340fba1fbf9756abf91993e483cc75fe3f4d /docs/ref | |
| parent | d29d11b026e8acea4778dd596aaf82d55b11f44d (diff) | |
Fixed #25951 -- Trimmed default representation of GEOSGeometry
Thanks Sergey Fedoseev for the report.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/gis/geoip2.txt | 2 | ||||
| -rw-r--r-- | docs/ref/contrib/gis/geos.txt | 10 |
2 files changed, 8 insertions, 4 deletions
diff --git a/docs/ref/contrib/gis/geoip2.txt b/docs/ref/contrib/gis/geoip2.txt index cbcba9fac9..0f9a51f69a 100644 --- a/docs/ref/contrib/gis/geoip2.txt +++ b/docs/ref/contrib/gis/geoip2.txt @@ -47,7 +47,7 @@ Here is an example of its usage:: >>> g.lon_lat('uh.edu') (-95.4342, 29.834) >>> g.geos('24.124.1.80').wkt - 'POINT (-97.0000000000000000 38.0000000000000000)' + 'POINT (-97 38)' ``GeoIP`` Settings ================== diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 5397fd7a52..11c1a8dcd3 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -69,11 +69,11 @@ All these constructors take the keyword argument ``srid``. For example:: >>> from django.contrib.gis.geos import GEOSGeometry, LineString, Point >>> print(GEOSGeometry('POINT (0 0)', srid=4326)) - SRID=4326;POINT (0.0000000000000000 0.0000000000000000) + SRID=4326;POINT (0 0) >>> print(LineString((0, 0), (1, 1), srid=4326)) - SRID=4326;LINESTRING (0.0000000000000000 0.0000000000000000, 1.0000000000000000 1.0000000000000000) + SRID=4326;LINESTRING (0 0, 1 1) >>> print(Point(0, 0, srid=32140)) - SRID=32140;POINT (0.0000000000000000 0.0000000000000000) + SRID=32140;POINT (0 0) Finally, there is the :func:`fromfile` factory method which returns a :class:`GEOSGeometry` object from a file:: @@ -369,6 +369,10 @@ another object. Returns the Well-Known Text of the geometry (an OGC standard). + .. versionchanged:: 1.10 + + Non-significant zeros are stripped from the output. + __ https://developers.google.com/kml/documentation/ Spatial Predicate Methods |
