[postgis-tickets] [PostGIS] #3685: Topolgy error after ST_AsGeoJSON
PostGIS
trac at osgeo.org
Thu Jan 12 19:05:03 PST 2017
#3685: Topolgy error after ST_AsGeoJSON
----------------------+------------------------------------------
Reporter: JJTl | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS PostgreSQL
Component: postgis | Version: 2.3.x
Resolution: | Keywords: ST_AsGeoJSON, topology error
----------------------+------------------------------------------
Comment (by dbaston):
Making a round-trip transformation between binary floating point numbers
and text is a recipe for trouble, unfortunately. ST_AsGeoJSON produces
output with a maximum of 15 digits, which is not enough to use it as a
lossless serialization format. Maybe the docs should note this, or use
more digits like pg_dump?
If you run this geometry through ST_MinimumClearance, you'll see that it
returns an exceedingly low value of 2.2e-14. That means that, you have a
vertex somewhere that, if moved by 2e-14, will cause the geometry to be
invalid. In other words, not a very robust geometry.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3685#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list