[postgis-devel] [PostGIS] #1830: pgsql2shp fix for "XInvalid endian flag value encountered" on PostgreSQL 9.2
PostGIS
trac at osgeo.org
Sat May 19 17:10:10 PDT 2012
#1830: pgsql2shp fix for "XInvalid endian flag value encountered" on PostgreSQL
9.2
---------------------+------------------------------------------------------
Reporter: dfuhry2 | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.0.1
Component: postgis | Version: 2.0.x
Keywords: |
---------------------+------------------------------------------------------
pgsql2shp gives "Invalid endian flag value encountered." error on
PostgreSQL 9.2 due to its expecting bytea_output to be in 'escape' format.
At some point PostgreSQL changed the default bytea output format from
'escape' to 'hex'.
Attached patch sets server bytea_output to 'escape' while connecting,
fixing the problem.
$ pgsql2shp ...
Initializing...
Done (postgis major version: 2).
Output shape: Polygon
Dumping: XInvalid endian flag value encountered.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1830>
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