id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1479	Pgsql2shp: Dumping: XWKB structure does not match expected size!	jomarlla	pramsey	"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
}}}






"	defect	closed	medium	PostGIS 2.0.0	postgis	trunk	fixed	pgsql2shp wkb	
