From 9686c888d6a0632e37b2fc70069128dc940c4b38 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 16 Apr 2016 20:05:47 +0200 Subject: Fixed #25951 -- Trimmed default representation of GEOSGeometry Thanks Sergey Fedoseev for the report. --- docs/ref/contrib/gis/geoip2.txt | 2 +- docs/ref/contrib/gis/geos.txt | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'docs/ref') 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 -- cgit v1.3