shp2pgsql not found

View: New views
3 Messages — Rating Filter:   Alert me  

shp2pgsql not found

by Salvator*eL*arosa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry my english!
I have installed postgres/postgis in my Debian Etch on laptop, but
when start command shp2pgsql it get the error:

postgres@debian:/usr/local/pgsql/bin$ shp2pgsql -s -1 /home/sam/Desktop/test_postgis/Dighe.shp test Prova > /home/sam/Desktop/test_postgis/test.sql
-su: shp2pgsql: command not found

Please help me!

Salvatore Larosa
GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)

Re: shp2pgsql not found

by Paul Ramsey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sometimes you have to be explicit about where your executable is,  
with a ./command syntax:

./shp2pgsql -s -i foo.shp foo > foo.sql

Or, you could explicitly add your pgsql directory to your search path  
instead:

export PATH=${PATH}:/usr/local/pgslq/bin

Then your command below should work.

Yours,

Paul


On 28-Oct-06, at 8:50 PM, Salvatore Larosa wrote:

> Sorry my english!
> I have installed postgres/postgis in my Debian Etch on laptop, but
> when start command shp2pgsql it get the error:
>
> postgres@debian:/usr/local/pgsql/bin$ shp2pgsql -s -1
> /home/sam/Desktop/test_postgis/Dighe.shp test Prova >
> /home/sam/Desktop/test_postgis/test.sql
> -su: shp2pgsql: command not found
>
> Please help me!
>
>
> --
> View this message in context: http://www.nabble.com/shp2pgsql-not- 
> found-tf2533044.html#a7057587
> Sent from the PostGIS - User mailing list archive at Nabble.com.
>
> _______________________________________________
> postgis-users mailing list
> postgis-users@...
> http://postgis.refractions.net/mailman/listinfo/postgis-users

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

Re: shp2pgsql not found

by Salvator*eL*arosa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Now, it get me error:

postgres@debian:/usr/local/pgsql/bin$ ./shp2pgsql
/home/sam/Desktop/test_postgis/Area_campione.shp test public.Prova >
/home/sam/Desktop/test_postgis/vtest.sql
/home/sam/Desktop/test_postgis/Area_campione.shp: shape (.shp) or index
files (.shx) can not be opened.

In my table, must i create a spatial_ref filed maybe?

--
View this message in context: http://www.nabble.com/shp2pgsql-not-found-tf2533044.html#a7060743
Sent from the PostGIS - User mailing list archive at Nabble.com.

_______________________________________________
postgis-users mailing list
postgis-users@...
http://postgis.refractions.net/mailman/listinfo/postgis-users
Salvatore Larosa
GPG: 0xE504BBE2 (FP: D9B2 CA87 81CD 1B91 E24D 3B42 D0F7 FA01 E504 BBE2)