[postgis-tickets] [PostGIS] #2145: ST_Segmentize(geography, dist) fails with redundant coordinates
PostGIS
trac at osgeo.org
Sat Dec 8 14:18:18 PST 2012
#2145: ST_Segmentize(geography, dist) fails with redundant coordinates
---------------------+------------------------------------------------------
Reporter: scw | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: postgis | Version: trunk
Keywords: |
---------------------+------------------------------------------------------
Ubuntu 12.04 x64, PostgreSQL 9.2.2, PostGIS r10800
When I try to segmentize a geography which has redundant coordinates,
Postgres hangs entirely:
{{{
select St_Segmentize(ST_GeographyFromText('LINESTRING(-89.3000030518
28.2000007629,-89.1999969482 89.1999969482,-89.1999969482
89.1999969482)'), 10000);
}}}
If I try the same thing on a geometry, the issue is caught and
ST_Segmentize refuses to run:
{{{
select St_Segmentize(ST_GeographyFromText('LINESTRING(-89.3000030518
28.2000007629,-89.1999969482 89.1999969482,-89.1999969482
89.1999969482)'::geometry), 10000);
ERROR: parse error - invalid geometry
HINT: "010200000003000000990B" <-- parse error at position 22 within
geometry
}}}
Let me know if I can provide any further details.
SELECT postgis_full_version();
POSTGIS="2.1.0SVN r10800" GEOS="3.3.4-CAPI-1.7.3" PROJ="Rel. 4.8.0, 6
March 2012" LIBXML="2.7.8" LIBJSON="UNKNOWN"
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2145>
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