[postgis-devel] [PostGIS] #659: shp2pgsql crashing when trying to load into geography order sensitive

PostGIS trac at osgeo.org
Tue Nov 16 00:52:19 PST 2010


#659: shp2pgsql crashing when trying to load into geography order sensitive
---------------------+------------------------------------------------------
 Reporter:  robe     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.0
Component:  postgis  |     Version:  trunk        
 Keywords:           |  
---------------------+------------------------------------------------------
 I have this statement

 {{{
 shp2pgsql -G -g geog data/roadtrl020.shp ch01.roads_geog > roads_geog.sql
 }}}

 works fine with the PostGIS 1.5 shp2pgsql but crashes with my current
 build of PostGIS 2.0 shp2pgsql loader.  Loading without the -G switch
 works fine too in both and shp2pgsql-gui also works fine in both.

 Actually loading like this also works:
 {{{
 shp2pgsql -g geog -G data/roadtrl020.shp ch01.roads_geog > roads_geog.sql
 }}}

 So it seems to be sensitive to the order of the arguments
 My build is (running on windows 7)
 {{{
 RCSID: $Id: shp2pgsql-core.h 6008 2010-09-22 23:45:35Z mleslie $ RELEASE:
 2.0 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
 USAGE: shp2pgsql [<options>] <shapefile> [<schema>.]<table>
 }}}

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