[geos-devel] [GEOS] #724: Geometry methods do not preserve SRID
GEOS
geos-trac at osgeo.org
Sun Mar 29 05:06:04 PDT 2015
#724: Geometry methods do not preserve SRID
------------------------+---------------------------------------------------
Reporter: benmorel | Owner: geos-devel@…
Type: defect | Status: new
Priority: major | Milestone: 3.4.3
Component: Default | Version: 3.4.2
Severity: Unassigned | Keywords:
------------------------+---------------------------------------------------
Methods such as envelope(), boundary() etc. do not preserve the SRID in
the resulting Geometry.
Take the following example, using PHP bindings:
{{{
$reader = new GEOSWktReader();
$g = $reader->read('POINT(1 2)');
$g->setSRID(4326);
echo $g->getSRID(); // 4326
echo $g->boundary()->getSRID(); // 0
echo $g->envelope()->getSRID(); // 0
}}}
--
Ticket URL: <http://trac.osgeo.org/geos/ticket/724>
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