[postgis-users] Execute shp2pgsql from jsp page

aiden ryan aidenryan at hotmail.com
Thu Sep 14 11:39:01 PDT 2006


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?





More information about the postgis-users mailing list