Maxime Demers <burton449geo <at> gmail.com> writes:
> However, I have Failure Unable to open datasource with drivers... when trying to convert the geojson to shapefile from the url. > > ogr2ogr output.shp http://localhost:3000/711/points.geojson > > Can ogr2ogr convert dynamic geojson like I am trying to do, or it has to be a static geojson file? Hi, This works for me with GDAL 2.0, gisinternals Windows build: ogrinfo -ro -al "http://www.yournavigation.org/api/1.0/ gosmore.php?format=geojson&flat=52.215676&flon=5.963946& tlat=52.2573&tlon=6.1799&v=motorcar&fast=1&layer=mapnik" Result: using driver `GeoJSON' successful. Layer name: OGRGeoJSON Geometry: Line String Feature Count: 1 Extent: (5.963552, 52.196300) - (6.187562, 52.257125) Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.257223563, AUTHORITY["EPSG","7030"]], TOWGS84[0,0,0,0,0,0,0], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0, AUTHORITY["EPSG","8901"]], UNIT["degree",0.0174532925199433, AUTHORITY["EPSG","9108"]], AUTHORITY["EPSG","4326"]] OGRFeature(OGRGeoJSON):0 LINESTRING (5.963585 52.21595,5.963585 52.21595,5.963563... -Jukka Rahkonen- _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev