[postgis-tickets] [PostGIS] #3403: Deserialize PostGIS geometry directly into GEOSGeometry

PostGIS trac at osgeo.org
Mon May 16 05:40:02 PDT 2016


#3403: Deserialize PostGIS geometry directly into GEOSGeometry
--------------------------+---------------------------
  Reporter:  dbaston      |      Owner:  pramsey
      Type:  enhancement  |     Status:  closed
  Priority:  low          |  Milestone:  PostGIS 2.2.1
 Component:  postgis      |    Version:  2.2.x
Resolution:  wontfix      |   Keywords:
--------------------------+---------------------------

Comment (by dbaston):

 I'm not sure if this is possible without very significant changes to GEOS.
 On the face of it, you should be able to write a class
 (LWCoordinateSequence, say) that implements the CoordinateSequence
 interface and directs all access to an underlying POINTARRAY.  The problem
 is that implementing a CoordinateSequence requires that you return
 references to GEOS Coordinate objects (for example, const Coordinate &
 getAt(std::size_t index) ), which in turn requires those Coordinate
 objects to actually exist for the lifetime of the CoordinateSequence.  And
 since Coordinates are used throughout the library by direct access to
 their xyz member variables, I don't think it's possible to make a wrapper
 for, say, POINT3D, to allow it to function as a Coordinate during its
 journey through GEOS.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3403#comment:3>
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