ogr2ogr Error in batch file but works when run from command line

المشرف العام

Administrator
طاقم الإدارة
If I run this from the command line it works:

"C:\Program Files\QGIS Pisa\bin\ogr2ogr.exe" -f GeoJSON d:\environprocessing\q3_2015\wi\brrts\GISRegistry_Offsite1.geojson "http://dnrmaps.wi.gov/arcgis/rest/services/RR_Sites_Map/RR2_GIS_Registry_WTM_Ext/MapServer/3/query?where=objectid+%3C+1000&text=&objectIds=&time=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&returnIdsOnly=false&returnCountOnly=false&orderByFields=objectid&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&gdbVersion=&returnDistinctValues=false&f=pjson" OGRGeoJSON -gt 1000 But If I put it into a batch file and run it from the very same command line instance I get the following error:

ERROR 4: Failed to read GeoJSON data FAILURE: Unable to open datasource `http://dnrmaps.wi.gov/arcgis/rest/s...dbVersion=&returnDistinctValues=false&f=pjson' with the following drivers. -> OCI -> SOSI -> ESRI Shapefile -> MapInfo File -> GeoJSON ... lists many more here, you get the idea ... Why the difference?



أكثر...
 
أعلى