[postgis-users] pgsql2shp - problems

Havard Tveite havard.tveite at nlh.no
Thu Feb 5 02:04:31 PST 2004


pgsql2shp fails on my Solaris 2.6 (gcc 2.95.3). PostGIS CVS from
4. february, pgsql 7.4.1, geos CVS from 4. february.
When setting DEBUG and VERBOSE, the following output is produced:

pgsql2shp ....
Initializing... Done.
Dumping: Xiii
-----
ByteOrder: NDR
Type: 1060000
-----
gBus Error(coredump)

When commenting out #define USE_WKB, things work better:

pgsql2shp ....
Initializing... Done.
Dumping: XiiigFinished adding record 0
iiigFinished adding record 1
iiigFinished adding record 2
....
iiigFinished adding record 98
iiigFinished adding record 99
End of result, clearing...Done.
X [100 rows].

The geometries are MULTIPOLYGON, SRID=326233, coordinate
dimension is 2. It is the geometry that seems to be causing
the problems.

"shape_creator(val, row)" is the line (1975 in pgsql2shp.c)
that fails. "shape_creator" should in this case be
"create_multipolygon2D_WKB(val, row)" ?


-- 
Håvard Tveite
Department of Mathematical Sciences and Technology
Agricultural University of Norway
Drøbakveien 14, POBox 5003, N-1432 Ås, NORWAY
Phone: +47 64948857 Fax: +47 64948810 http://www.nlh.no/imt



More information about the postgis-users mailing list