[postgis-devel] [PostGIS] #1900: Fix pgsql2shp for big-endian systems

PostGIS trac at osgeo.org
Tue Jul 3 19:56:37 PDT 2012


#1900: Fix pgsql2shp for big-endian systems
---------------------------------+------------------------------------------
 Reporter:  rroliver             |       Owner:  pramsey      
     Type:  defect               |      Status:  new          
 Priority:  critical             |   Milestone:  PostGIS 2.0.2
Component:  postgis              |     Version:  2.0.x        
 Keywords:  pgsql2shp bigendian  |  
---------------------------------+------------------------------------------
 pgsql2shp has been broken for all 2.0.0 versions (since r5828) on all big-
 endian systems.

 Specifying the column name _geoX for the geometry column was neglected in
 the main scan query for big-endian systems, causing breakage in
 ShpLoaderGenerateShapeRow as this is the column name searched for to
 retrieve the geometry column number (geocolnum).

 Symptoms of issue are empty shapefile output and the error msg
    "column number -1 is out of range 0..x"
 for every row in table.

 Patch attached

 Tested and working on Solaris Sparc (32 and 64)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1900>
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