[postgis-users] Execute shp2pgsql from jsp page

TECHER David davidtecher at yahoo.fr
Thu Sep 14 16:02:25 PDT 2006


Hi Ryan,

Fisrt of all,

be sure that your add the ".shp"

then U forgot the "/" before usr

==>

/usr/bin/shp2pgsql -s 4269
/usr/local/apache-tomcat-5.5.17/webapps/ROOT/LoadTemp/test_shapeGEO.shp
public.test_shapeGEO | psql -d shared_spatial -U pgis_loader

on a shell or a dos prompt (I don't know your OS)

do "shp2pgsql --help" for more options

Other errors?

Let us know :-)

--david;
http://www.davidgis.fr


aiden ryan a écrit :

> I'm trying to execute shp2pgsql from inside a jsp script, but I can't
> seem to figure out how. This is what I've been trying so far:
>
> String cmd = "/usr/bin/shp2pgsql -s 4269
> usr/local/apache-tomcat-5.5.17/webapps/ROOT/LoadTemp/test_shapeGEO
> public.test_shapeGEO | psql -d shared_spatial -U pgis_loader";
> Runtime.getRuntime().exec(cmd);
>
> This does not work.
>
> Any Suggestions?
>
>
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users
>


-- 
--david;
http://www.postgis.fr
http://www.davidgis.fr


	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 




More information about the postgis-users mailing list