Re: [postgis-users] shp2pgsql 1.5 is crashing

2010-10-18 Thread Stephen Woodbridge

On 10/18/2010 5:07 AM, Sebastian E. Ovide wrote:

Is there any reason why not to use gdal ogr2ogr ?


Much of the time I do not need to transform the geometry so I have not 
loaded gdal/ogr on the system. The other reason is that I have loads of 
scripts that use shp2pgsql because that is all I need in most cases.


So with that I have never actually had to use ogr2ogr to load the data 
into postgis, but there is no technical reason not to.


-Steve


On Thu, Oct 14, 2010 at 7:03 PM, Stephen Woodbridge
mailto:wood...@swoodbridge.com>> wrote:

On 10/14/2010 12:02 PM, Mark Cave-Ayland wrote:

Stephen Woodbridge wrote:

Hi all,

I'm running into a crashing problem with shp2pgsql on 1.5
release on a
CentOS 5

This crashes:
shp2pgsql -s 4326 -c -D Hydrants_4326.shp data.hydrants

This works ok:
shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants

File loads ok in OpenEV and runs through ogr2ogr without a
problem.

-Steve W


Hi Steve,

If you're not already running 1.5.2, I'd try that as I seem to
remember
there were a couple of bugfixes that might be relevant here.


Hi Mark,

I sort of thought there might have been some fixes, but could not
verify that and did not realize I was back a version.

Thanks,
  -Steve

___
postgis-users mailing list
postgis-users@postgis.refractions.net

http://postgis.refractions.net/mailman/listinfo/postgis-users




--
Sebastian E. Ovide






___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] shp2pgsql 1.5 is crashing

2010-10-18 Thread Sebastian E. Ovide
Is there any reason why not to use gdal ogr2ogr ?

On Thu, Oct 14, 2010 at 7:03 PM, Stephen Woodbridge  wrote:

> On 10/14/2010 12:02 PM, Mark Cave-Ayland wrote:
>
>> Stephen Woodbridge wrote:
>>
>>  Hi all,
>>>
>>> I'm running into a crashing problem with shp2pgsql on 1.5 release on a
>>> CentOS 5
>>>
>>> This crashes:
>>> shp2pgsql -s 4326 -c -D Hydrants_4326.shp data.hydrants
>>>
>>> This works ok:
>>> shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants
>>>
>>> File loads ok in OpenEV and runs through ogr2ogr without a problem.
>>>
>>> -Steve W
>>>
>>
>> Hi Steve,
>>
>> If you're not already running 1.5.2, I'd try that as I seem to remember
>> there were a couple of bugfixes that might be relevant here.
>>
>
> Hi Mark,
>
> I sort of thought there might have been some fixes, but could not verify
> that and did not realize I was back a version.
>
> Thanks,
>  -Steve
>
> ___
> postgis-users mailing list
> postgis-users@postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>



-- 
Sebastian E. Ovide
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] shp2pgsql 1.5 is crashing

2010-10-14 Thread Stephen Woodbridge

On 10/14/2010 12:02 PM, Mark Cave-Ayland wrote:

Stephen Woodbridge wrote:


Hi all,

I'm running into a crashing problem with shp2pgsql on 1.5 release on a
CentOS 5

This crashes:
shp2pgsql -s 4326 -c -D Hydrants_4326.shp data.hydrants

This works ok:
shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants

File loads ok in OpenEV and runs through ogr2ogr without a problem.

-Steve W


Hi Steve,

If you're not already running 1.5.2, I'd try that as I seem to remember
there were a couple of bugfixes that might be relevant here.


Hi Mark,

I sort of thought there might have been some fixes, but could not verify 
that and did not realize I was back a version.


Thanks,
  -Steve
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


Re: [postgis-users] shp2pgsql 1.5 is crashing

2010-10-14 Thread Mark Cave-Ayland

Stephen Woodbridge wrote:


Hi all,

I'm running into a crashing problem with shp2pgsql on 1.5 release on a 
CentOS 5


This crashes:
shp2pgsql -s 4326 -c -D  Hydrants_4326.shp data.hydrants

This works ok:
shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants

File loads ok in OpenEV and runs through ogr2ogr without a problem.

-Steve W


Hi Steve,

If you're not already running 1.5.2, I'd try that as I seem to remember 
there were a couple of bugfixes that might be relevant here.



HTH,

Mark.

--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users


[postgis-users] shp2pgsql 1.5 is crashing

2010-10-12 Thread Stephen Woodbridge

Hi all,

I'm running into a crashing problem with shp2pgsql on 1.5 release on a 
CentOS 5


This crashes:
shp2pgsql -s 4326 -c -D  Hydrants_4326.shp data.hydrants

This works ok:
shp2pgsql -s 4326 -c -D -N skip Hydrants_4326.shp data.hydrants

File loads ok in OpenEV and runs through ogr2ogr without a problem.

-Steve W

Linux mapserver 2.6.18-194.11.1.el5xen #1 SMP Tue Aug 10 20:27:58 EDT 
2010 i686 i686 i386 GNU/Linux


[wood...@mapserver hydrants]$ shp2pgsql
RCSID: $Id: shp2pgsql-core.h 5098 2010-01-04 05:47:04Z pramsey $ 
RELEASE: 1.5 USE_GEOS=1 USE_PROJ=1 USE_STATS=1


[wood...@mapserver hydrants]$ shp2pgsql -s 4326 -c -D  Hydrants_4326.shp 
data.hydrants > a

Shapefile type: PointZ
Postgis type: POINT[4]
*** glibc detected *** shp2pgsql: free(): invalid pointer: 0x08051c3b ***
=== Backtrace: =
/lib/i686/nosegneg/libc.so.6[0x8ce1e5]
/lib/i686/nosegneg/libc.so.6(cfree+0x59)[0x8ce629]
shp2pgsql[0x805223b]
shp2pgsql[0x8052f4f]
/lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x879e9c]
shp2pgsql[0x80499f1]
=== Memory map: 
0011-00112000 r-xp  fd:00 111345672  /usr/lib/gconv/CP1252.so
00112000-00114000 rw-p 1000 fd:00 111345672  /usr/lib/gconv/CP1252.so
007a9000-007b4000 r-xp  fd:00 14188620 
/lib/libgcc_s-4.1.2-20080825.so.1
007b4000-007b5000 rw-p a000 fd:00 14188620 
/lib/libgcc_s-4.1.2-20080825.so.1

00845000-0086 r-xp  fd:00 14188551   /lib/ld-2.5.so
0086-00861000 r--p 0001a000 fd:00 14188551   /lib/ld-2.5.so
00861000-00862000 rw-p 0001b000 fd:00 14188551   /lib/ld-2.5.so
00864000-009ba000 r-xp  fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so
009ba000-009bc000 r--p 00155000 fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so
009bc000-009bd000 rw-p 00157000 fd:00 14188553 
/lib/i686/nosegneg/libc-2.5.so

009bd000-009c rw-p 009bd000 00:00 0
009c9000-009f r-xp  fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so
009f-009f1000 r--p 00026000 fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so
009f1000-009f2000 rw-p 00027000 fd:00 14189781 
/lib/i686/nosegneg/libm-2.5.so

00caa000-00cab000 r-xp 00caa000 00:00 0  [vdso]
08048000-08079000 r-xp  fd:00 82688766   /usr/bin/shp2pgsql
08079000-0807a000 rw-p 00031000 fd:00 82688766   /usr/bin/shp2pgsql
08b8c000-08bad000 rw-p 08b8c000 00:00 0
b7f73000-b7fbe000 rw-p b7f73000 00:00 0
b7fc1000-b7fc2000 rw-p b7fc1000 00:00 0
b7fc2000-b7fc9000 r--s  fd:00 82739843 
/usr/lib/gconv/gconv-modules.cache

b7fc9000-b7fcd000 rw-p b7fc9000 00:00 0
bfa09000-bfa1e000 rw-p bffea000 00:00 0  [stack]
Aborted
___
postgis-users mailing list
postgis-users@postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-users