[geos-devel] [GEOS] #896: Many (all?) GEOS operations do not preserve SRID
GEOS
geos-trac at osgeo.org
Mon Jul 9 14:42:56 PDT 2018
#896: Many (all?) GEOS operations do not preserve SRID
------------------------+---------------------------
Reporter: dbaston | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.7.0
Component: Default | Version: 3.6.2
Severity: Unassigned | Resolution:
Keywords: |
------------------------+---------------------------
Comment (by strk):
So it turns out Geometry#setSRID is supposed to be only used in
exceptional cases, for backward compatibility:
https://github.com/locationtech/jts/blob/master/modules/core/src/main/java/org/locationtech/jts/geom/Geometry.java#L264
Rather, a user should indeed set the SRID in the factory, which we're not
doing from C-API.
Now that we DO have garbage-collected factories (for precision model) we
might start doing something about SRID too. Sounds like a wider plan is
needed though.
--
Ticket URL: <https://trac.osgeo.org/geos/ticket/896#comment:7>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).
More information about the geos-devel
mailing list