[postgis-tickets] [PostGIS] #3777: POINT EMPTY, POINT 0 0 anomaly
PostGIS
trac at osgeo.org
Wed Jun 21 14:59:29 PDT 2017
#3777: POINT EMPTY, POINT 0 0 anomaly
----------------------+---------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.3
Component: postgis | Version: 2.3.x
Resolution: | Keywords:
----------------------+---------------------------
Comment (by robe):
We must have had this problem for sometime. PostGIS 1.5.5 is doing
something different as well when change order of items. Check this out:
{{{
SELECT ST_AsText(geom) txt
FROM (
SELECT 'GEOMETRYCOLLECTION EMPTY'::geometry geom
UNION
SELECT 'POINT EMPTY'::geometry geom
UNION
SELECT 'POINT(0 0)'::geometry geom
UNION
SELECT 'POINT(0 0)'::geometry geom
UNION
SELECT 'POINT(0 0)'::geometry geom
UNION
SELECT 'POINT(0 1)'::geometry geom
UNION
SELECT 'LINESTRING(0 0,0 1)'::geometry geom
) foo;
}}}
In 2.3.2 and 2.4.0dev
{{{
txt
--------------------------
POINT(0 0)
GEOMETRYCOLLECTION EMPTY
POINT(0 0)
POINT EMPTY
POINT(0 0)
LINESTRING(0 0,0 1)
POINT(0 1)
(7 rows)
}}}
In 1.5.5
{{{
txt
---------------------
POINT(0 0)
LINESTRING(0 0,0 1)
POINT(0 1)
(3 rows)
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3777#comment:6>
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