[gdal-dev] Modification to the ogr2ogr.java

Chaitanya kumar CH chaitanya.ch at gmail.com
Fri Oct 8 06:27:45 EDT 2010


Sagar,

You can specify the directory containing the shapefiles as the source
datasource. If you want to select .shp files specifically, mention them
without the extension at the end of the command.

You don't have to specify the source SRS if the file name of the .prj file
is the same as the .shp file.

On Fri, Oct 8, 2010 at 2:42 PM, sagar_sahay <sagar at spiffymap.net> wrote:

>
> Hi,
>
> I am trying to modify the ogr2ogr.java found at the link
> http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/java/apps/ogr2ogr.java,
> to cater to multiple ".shp" files. The problem which I am facing is that
> there are too many System.exit(1) statements which makes it a little
> difficult to understand the working of the code properly. I am trying to
> execute a command of the form :
>  ogr2ogr -t_srs WGS84 -s_srs ESRI::NaturalFeature_Area.prj osmnf.shp
> NaturalFeature_Area.shp
>
> Any advice on this topic is welcomed.
>
> Thanks
> --
> View this message in context:
> http://osgeo-org.1803224.n2.nabble.com/Modification-to-the-ogr2ogr-java-tp5614291p5614291.html
> Sent from the GDAL - Dev mailing list archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101008/43787bf7/attachment.html


More information about the gdal-dev mailing list