[postgis-tickets] [PostGIS] #2185: Geometry output functions crash server with invalid WKT
PostGIS
trac at osgeo.org
Wed Jan 23 18:57:42 PST 2013
#2185: Geometry output functions crash server with invalid WKT
---------------------+------------------------------------------------------
Reporter: mwtoews | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.3
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
Comment(by robe):
Mike,
Which OS are you running on. I'm not seeing any crashing under my windows
64-bit 9.2 r my 32-bit 9.1. I tried 2.1.0SVN, and 2.0.1 on 32-bit.
With query:
{{{
SELECT ST_AsText('POINT(3 4 hi)');
}}}
It just gives this notice
{{{
ERROR: parse error - invalid geometry
HINT: "POINT(3 4 hi" <-- parse error at position 12 within geometry
CONTEXT: SQL function "st_astext" statement 1
}}}
{{{
SELECT ST_AsText('POINT Z(3 4 hi)');
}}}
-- gives notice
{{{
ERROR: parse error - invalid geometry
HINT: "POINT Z(3 4 hi" <-- parse error at position 14 within geometry
CONTEXT: SQL function "st_astext" statement
}}}
Tested on these
{{{
PostgreSQL 9.2.2, compiled by Visual C++ build 1600, 64-bit
POSTGIS="2.1.0SVN r11008" GEOS="3.4.0dev-CAPI-1.8.0 r0" PROJ="Rel. 4.8.0,
6 March 2012" GDAL="GDAL 1.9.1, released 2012/05/15" LIBXML="2.7.8"
LIBJSON="UNKNOWN" (core procs from "2.1.0SVN r11004" need upgrade) RASTER
(raster procs from "2.1.0SVN r11004" need upgrade)
}}}
{{{
PostgreSQL 9.1.4, compiled by Visual C++ build 1500, 32-bit POSTGIS="2.0.1
r9979" GEOS="3.3.5-CAPI-1.7.5" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL
1.9.1, released 2012/05/15" LIBXML="2.7.8" LIBJSON="UNKNOWN" RASTER
}}}
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2185#comment:3>
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