wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

No sign of downloaded zip after using ogre POST #77

Closed francisbarton closed 3 years ago

francisbarton commented 5 years ago

I have a custom JSON URL from https://geoportal.statistics.gov.uk/ When I post this in the web converter on the ogre site, I get a lovely zip of my shapefile to download. Perfect. However when I try to script this using the POST API, I get a 200 Response but no sign of the zip file. I'm using R.

library(httr)

ef_json_url <- "https://ons-inspire.esriuk.com/arcgis/rest/services/Census_Boundaries/Output_Area_December_2011_Boundaries/MapServer/2/query?where=UPPER(lad11cd)%20like%20%27%25E07000072%25%27&outFields=*&outSR=4326&f=json"

POST("http://ogre.adc4gis.com/convertJson", body=list(jsonUrl = ef_json_url, outputName = "ef_shp.zip"))

`Response [https://ogre.adc4gis.com/convertJson] Date: 2019-06-13 23:39 Status: 200 Content-Type: application/zip Size: 120 kB

` but when I look in the current working directory (and elsewhere!) there's no output file. Do I need to pipe the POST request to an output file?
github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

francisbarton commented 3 years ago

I don't even understand this issue myself now. I think I didn't know what I was doing. Not sufficiently attached to this now to do any further digging or replicating the issue. There are other tools native to R that will do this conversion I think.