[postgis-tickets] [PostGIS] #2588: GeometryCollection constructor parse defect for sub geometries (POINTM, POLYGONM, ...) of GEOMETRYCOLLECTIONM
PostGIS
trac at osgeo.org
Mon Dec 23 12:30:50 PST 2013
#2588: GeometryCollection constructor parse defect for sub geometries
(POINTM,POLYGONM,...) of GEOMETRYCOLLECTIONM
------------------------------------------------------+---------------------
Reporter: bergun | Owner: delawen
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: java | Version: trunk
Keywords: GEOMETRYCOLLECTIONM jdbc POINTM POLYGONM |
------------------------------------------------------+---------------------
I create a GeometryCollection as below
GeometryCollection coll = new GeometryCollection(
"SRID=-1;GEOMETRYCOLLECTIONM(POINTM(10 10
100),LINESTRINGM(0 50 100, 100 50 100),POLYGONM((25 25 100,75 25 100,75 75
100,25 75 100,25 25 100),(45 45 100,55 45 100,55 55 100,45 55 100,45 45
100)))"));
when I reprint the coll.toString() I see that my geom string is changed to
below :
"SRID=-1;GEOMETRYCOLLECTIONM(POINT(10 10 100),LINESTRING(0 50 100, 100 50
100),POLYGON((25 25 100,75 25 100,75 75 100,25 75 100,25 25 100),(45 45
100,55 45 100,55 55 100,45 55 100,45 45 100)))"
As you can see GEOMETRYCOLLECTIONM is preserved but POINTM LINESTRINGM and
POLYGONM is changed to POINT LINESTRING and POLYGON . And because of this
I get cannot mix dimensionality when I am trying to insert this geom to
database.
I have tried this with postgis jdbc driver 1.1.5; 1.3.3 and 2.0.1
versions.
Similar issue http://trac.osgeo.org/postgis/ticket/724 was open and
resolved for server side postgis extension.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2588>
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