[postgis-devel] [PostGIS] #724: ST_AsEWKT outputs invalid EWKT (mixed dimensionality in collection) (was: ST_AsEWKT , ST_GeogFromText regress failure)
PostGIS
trac at osgeo.org
Tue Jan 10 01:39:17 PST 2012
#724: ST_AsEWKT outputs invalid EWKT (mixed dimensionality in collection)
---------------------+------------------------------------------------------
Reporter: robe | Owner: strk
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Changes (by strk):
* owner: pramsey => strk
* status: new => assigned
Comment:
Ok, I think the core of this bug is that the parser can't read what the
writer emits:
{{{
SELECT ST_AsEwkt(geometry(ST_Collect('MULTIPOINTM((1 1 1))', 'POINTM(5 5
5)')) )::geometry;
ERROR: can not mix dimensionality in a geometry
}}}
Note that dropping the ::geometry part you get no error, so the error is
at parse time, and the error is correct. So the bug is in ST_AsEwkt. I'm
on it.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/724#comment:2>
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-devel
mailing list