ogr2ogr

How to build gdal jni on windows

纵然是瞬间 提交于 2019-12-24 20:08:44
问题 I want to use ogr2ogr.java and it need the GDAL jni to work. I have tried following the instruction mentioned here Build Instructions for GDAL/OGR In Java (Windows) but, still I am not able to build it. I am using windows 7 64 bit operating system. If somebody has build it successfully let me know how you did it. 回答1: So, after lot of trouble I found out that that there is no need to build gdal jni from source. You can download the compiled jni dll file from here Tamas Szekeres' Windows daily

Convert svg to geojson fails with ogr2ogr

夙愿已清 提交于 2019-12-12 13:25:02
问题 I've downloaded an .svg map of Finland from http://www.amcharts.com/svg-maps/?map=finland I want to convert it to topojson to use it with d3.js. I first start with svg to geojson conversion, but it fails. I tried: ogr2ogr -f "GeoJSON" finland_kunta.json finlandHigh.svg The error I get: FAILURE: Unable to open datasource `finlandHigh.svg' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> REC -> Memory -> BNA -> CSV -> GML -> GPX -

Batch script vs command line

倖福魔咒の 提交于 2019-12-08 02:17:00
问题 When I run following command in cmd prompt it works: for /R %f in (*.shp) do ogr2ogr -nln merge -update -append merge.shp %f but when I run it from .bat file it does not work. Saying -nln was unexpected. Is there anyway I could run this from .bat file. 回答1: The % character has a special meaning for command line parameters and FOR parameters. To treat a percent as a regular character, double it: %% When you execute it from a batch file, you should write it like this : @echo on for /R %%f in (*

Batch script vs command line

一世执手 提交于 2019-12-06 07:42:49
When I run following command in cmd prompt it works: for /R %f in (*.shp) do ogr2ogr -nln merge -update -append merge.shp %f but when I run it from .bat file it does not work. Saying -nln was unexpected. Is there anyway I could run this from .bat file. The % character has a special meaning for command line parameters and FOR parameters. To treat a percent as a regular character, double it: %% When you execute it from a batch file, you should write it like this : @echo on for /R %%f in (*.shp) do ogr2ogr -nln merge -update -append merge.shp %%f pause See this for more info : http://ss64.com/nt