[postgis-devel] [PostGIS] #746: ST_Dump with GSerialized POINT EMPTY and EWKT/AsText mismatch? (was: ST_Dump with GSerialized POINT EMPTY does not match expected size)
PostGIS
trac at osgeo.org
Fri Dec 31 10:58:42 PST 2010
#746: ST_Dump with GSerialized POINT EMPTY and EWKT/AsText mismatch?
---------------------+------------------------------------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Comment(by robe):
Okay I stand corrected. Evidentally you can get back a POINT EMPTY in
gserialized if you use ST_AsText, but not if you use ST_AsEWKT. There is
a big disconnect there.
Example:
SELECT ST_AsText(ST_GeomFromText('POINT EMPTY'));
-- gserialized
POINT EMPTY
-- out current install (not gserialized)
MULTIPOINT EMPTY
If you use ST_AsEWKT in both cases its
MULTIPOINT EMPTY
This AsEWKT/AsText mismatch in GSerialized may explain the large number of
discrepancies I'm seeing between the two during my regress checks.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/746#comment:1>
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