Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/01/2012, 18:55
offthewall
 
Fecha de Ingreso: enero-2012
Mensajes: 5
Antigüedad: 12 años, 2 meses
Puntos: 0
Respuesta: Duda sobre ogr2ogr

Un remiendo para ir tirando

<%!
public String cargarPuntosTrack(String comando)
{
try{
String linea;
Process p = Runtime.getRuntime().exec(comando);


} catch (IOException ioe) {
System.err.println("\n\n\nIOException: " + ioe.toString());
}

return "hola";
}
%>
<%= cargarPuntosTrack("cmd.exe /K start C:/\"Program Files (x86)\"/FWTools2.4.7/bin/ogr2ogr -f 'PostgreSQL' PG:\"host=localhost user=postgres port=5432 dbname=postgis password=password\" C:/\"Program Files (x86)\"/PostgreSQL/9.1/data/t1.gpx -overwrite -lco GEOMETRY_NAME=the_geom -nln \"puntostrack\"")%>