[postgis-users] error with pgsql2shp
Nahum Castro
pedro1_72 at yahoo.com
Tue Sep 21 09:16:46 PDT 2010
I get errors from pgsql2shp
The problem is that the .sql file is not complete with all the features from the .shp
My versions:
Postgresql 8.4.4 compiled from source with:
CONFIGURE = '--enable-thread-safety' '--with-perl' '--enable-nls=es' '--with-libxml' '--with-libxslt' '--with-openssl'
Postgis 1.5.1
pgsql2shp
RCSID: $Id: pgsql2shp.c 5181 2010-02-01 17:35:55Z pramsey $ RELEASE: 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1
My operating system:
Centos 5.
Linux localhost.localdomain 2.6.18-194.11.3.el5 #1 SMP Mon Aug 30 16:19:16 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux.
/sbin/ldconfig -v | grep libc.s
libc.so.6 -> libc-2.5.so
libc.so.6 -> libc-2.5.so
Also include the shp files
Here is the output
shp2pgsql -s 32614 -I -W cp1252 loc11_utm_wgs84_z14n.shp localidades > localidades.sql
Shapefile type: Point
Postgis type: POINT[2]
*** glibc detected *** shp2pgsql: free(): invalid pointer: 0x0000003965e7276b ***
======= Backtrace: =========
/lib64/libc.so.6[0x3965e7230f]
/lib64/libc.so.6(cfree+0x4b)[0x3965e7276b]
shp2pgsql[0x40a292]
shp2pgsql[0x40adaa]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3965e1d994]
shp2pgsql[0x402629]
======= Memory map: ========
00400000-00434000 r-xp 00000000 fd:00 162760431 /usr/local/pgsql/bin/shp2pgsql
00634000-00635000 rw-p 00034000 fd:00 162760431 /usr/local/pgsql/bin/shp2pgsql
1cd81000-1cdb3000 rw-p 1cd81000 00:00 0 [heap]
3965a00000-3965a1c000 r-xp 00000000 fd:00 93061143 /lib64/ld-2.5.so
3965c1b000-3965c1c000 r--p 0001b000 fd:00 93061143 /lib64/ld-2.5.so
3965c1c000-3965c1d000 rw-p 0001c000 fd:00 93061143 /lib64/ld-2.5.so
3965e00000-3965f4e000 r-xp 00000000 fd:00 93061145 /lib64/libc-2.5.so
3965f4e000-396614d000 ---p 0014e000 fd:00 93061145 /lib64/libc-2.5.so
396614d000-3966151000 r--p 0014d000 fd:00 93061145 /lib64/libc-2.5.so
3966151000-3966152000 rw-p 00151000 fd:00 93061145 /lib64/libc-2.5.so
3966152000-3966157000 rw-p 3966152000 00:00 0
3966200000-3966282000 r-xp 00000000 fd:00 93061377 /lib64/libm-2.5.so
3966282000-3966481000 ---p 00082000 fd:00 93061377 /lib64/libm-2.5.so
3966481000-3966482000 r--p 00081000 fd:00 93061377 /lib64/libm-2.5.so
3966482000-3966483000 rw-p 00082000 fd:00 93061377 /lib64/libm-2.5.so
3978000000-397800d000 r-xp 00000000 fd:00 93061290 /lib64/libgcc_s-4.1.2-20080825.so.1
397800d000-397820d000 ---p 0000d000 fd:00 93061290 /lib64/libgcc_s-4.1.2-20080825.so.1
397820d000-397820e000 rw-p 0000d000 fd:00 93061290 /lib64/libgcc_s-4.1.2-20080825.so.1
2ad96a14f000-2ad96a153000 rw-p 2ad96a14f000 00:00 0
2ad96a153000-2ad96a15a000 r--s 00000000 fd:00 161842602 /usr/lib64/gconv/gconv-modules.cache
2ad96a16d000-2ad96a16f000 rw-p 2ad96a16d000 00:00 0
2ad96a16f000-2ad96a171000 r-xp 00000000 fd:00 161842613 /usr/lib64/gconv/CP1252.so
2ad96a171000-2ad96a370000 ---p 00002000 fd:00 161842613 /usr/lib64/gconv/CP1252.so
2ad96a370000-2ad96a372000 rw-p 00001000 fd:00 161842613 /usr/lib64/gconv/CP1252.so
2ad96a372000-2ad96a373000 rw-p 2ad96a372000 00:00 0
7ffffef81000-7ffffef96000 rw-p 7ffffffe9000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
Abortado
--
Nahum Castro
Leon, Guanajuato, Mexico
e-mail: pedro1_72 [en] yahoo [punto] com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loc11_utm_wgs84_z14n.zip
Type: application/zip
Size: 1608117 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20100921/1ebf4c94/attachment.zip>
More information about the postgis-users
mailing list