[postgis-devel] [PostGIS] #1479: Pgsql2shp: Dumping: XWKB structure does not match expected size!

PostGIS trac at osgeo.org
Mon Jan 16 07:50:26 PST 2012


#1479: Pgsql2shp: Dumping: XWKB structure does not match expected size!
---------------------------+------------------------------------------------
 Reporter:  jomarlla       |       Owner:  pramsey      
     Type:  defect         |      Status:  new          
 Priority:  medium         |   Milestone:  PostGIS 2.0.0
Component:  postgis        |     Version:  trunk        
 Keywords:  pgsql2shp wkb  |  
---------------------------+------------------------------------------------
 Pgsql2shp creates a wrong shape file.


 {{{
 \d viariachedis1
                                     Table "public.viariachedis1"
  Column |             Type             |
 Modifiers
 --------+------------------------------+-------------------------------------------------------------
  gid    | integer                      | not null default
 nextval('viariachedis1_gid_seq'::regclass)
  geom   | geometry(MultiPolygon,23030) |
 Indexes:
     "viariachedis1_pkey" PRIMARY KEY, btree (gid)


 pgsql2shp -f viariachedis1 -u postgres -P pg r8844-1 viariachedis1

 Initializing...
 Done (postgis major version: 2).
 Output shape: Polygon
 Dumping: XWKB structure does not match expected size!
 }}}


 At least the dbf file is corrupted:



 {{{
 -rw-r--r-- 1 alumno users        1 Jan 16 16:43 viariachedis1.dbf
 -rw-r--r-- 1 alumno users   842704 Jan 16 16:43 viariachedis1.shp
 -rw-r--r-- 1 alumno users      100 Jan 16 16:43 viariachedis1.shx
 }}}

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