I am converting kml file into shp file format with EPSG:32646 projection. Query: ogr2ogr -f "ESRI Shapefile" -a_srs "EPSG:32646" C:\projects\workspace\Assam\WebContent\files\test
C:\projects\workspace\Assam\WebContent\files\test.kml This query will be convert kml file into shp file if i run this query from Fwtools shell but same query not running from java. My Java code: String ogrLoc="C:/Program Files/FWTools2.4.7/bin/ogr2ogr"; String ogrFormat="-f"; String ogrFormatName="\""+"ESRI Shapefile"+"\""; String assignOutputSRS = "-a_srs \"EPSG:32646\""; File kmlFile=new File("C:/projects/workspace/Assam/WebContent/files/test.kml"); StringBuilder sb=new StringBuilder(); sb.append(ogrLoc+" "); sb.append(ogrFormat+" "); sb.append(ogrFormatName+" "); sb.append(assignOutputSRS+" "); sb.append(ogrOutput+" "); process=Runtime.getRuntime().exec(sb+" "+kmlFile); It is working if the option assignOutputSRS is not appended in the query." Please tell me how to use -a_srs "EPSG:32646" property from java? -- View this message in context: http://osgeo-org.1560.n6.nabble.com/how-to-convert-kml-to-shp-file-format-with-EPSG-32646-projection-from-java-tp4980762.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users