Opened 10 years ago

Closed 10 years ago

#2763 closed defect (invalid)

point WKB doesn't work when lower case

Reported by: jmccormick2001 Owned by: pramsey
Priority: medium Milestone:
Component: postgis Version: 2.1.x
Keywords: Cc:

Description

Hi,

I'm trying to run postgis 2.1.3 on fedora 20, 2 regression tests fail, one of them is regress_index_nulls, I've found the following to be happening in reference to the lower case 'point' as referenced in the regress_index_nulls.sql test case:

[postgres@localhost regress]$ psql psql (9.3.4) Type "help" for help.

postgres=# select 'POINT(0 0)'::geography;

geography


0101000020E610000000000000000000000000000000000000

(1 row)

postgres=# select 'point(0 0)'::geography; ERROR: parse error - invalid geometry LINE 1: select 'point(0 0)'::geography;

HINT: "po" ←- parse error at position 2 within geometry postgres=# select postgis_v

postgres=# select postgis_full_version(); NOTICE: Function postgis_topology_scripts_installed() not found. Is topology support enabled and topology.sql installed?

postgis_full_ve

rsion



POSTGIS="2.1.3 r12547" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.11.0, released 2014/04/16" LIBXML="2.9.1" RASTER

(1 row)

postgres=#

For some reason I can't figure out, when using the lower case spelling of 'point', it fails, upper case works as expected.

this is on postgres 9.3.4.

thanks

Change History (1)

comment:1 by jmccormick2001, 10 years ago

Resolution: invalid
Status: newclosed

strange, I found that for some reason bison/flex versions were different between my fedora and rhel box, I had copied the postgis source files from my rhel box over to my fedora box, ran make clean, and still I was getting bison/flex generate errors in the parsing of the WTK, I reinstalled postgis from the source tarball, recompiled and it now works….closing out.

Note: See TracTickets for help on using tickets.