[geos-devel] [GEOS] #896: CAPI functions do not preserve SRID

GEOS geos-trac at osgeo.org
Thu Jul 12 09:30:52 PDT 2018

#896: CAPI functions 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 dbaston):

 To attempt to further clarify, I am proposing that C API functions be
 modified like this (from `GEOSUnaryUnion_r`):

 GeomPtr g3 ( g->Union() );
 g3->setSRID( g->getSRID() ); // proposed modification
 return g3.release();

Ticket URL: <https://trac.osgeo.org/geos/ticket/896#comment:11>
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