Skip to main content

Timeline for OGR API get GeoJSON from string

Current License: CC BY-SA 4.0

16 events
when toggle format what by license comment
May 13, 2019 at 22:01 comment added user2856 I just tested and it works with 1.11, note ogr.Open(geojson) not gdal.Open(geojson)
May 13, 2019 at 21:57 history edited user2856 CC BY-SA 4.0
deleted 78 characters in body
May 13, 2019 at 16:00 comment added jjmontes The OGR version doesn't work for me with GDAL 1.11.2. It always tries to open a file.
Aug 10, 2018 at 14:41 comment added estani @Luke thanks for checking. It's just strange then and a pity that it doesn't work with Java.
Aug 10, 2018 at 7:53 history edited user2856 CC BY-SA 4.0
deleted 43 characters in body; deleted 1 character in body; deleted 1 character in body; deleted 6 characters in body
Aug 9, 2018 at 22:58 history edited user2856 CC BY-SA 4.0
added 510 characters in body
Aug 9, 2018 at 20:26 comment added user2856 @estani yes, I've tested and yes, gdal.OpenEx works with strings in python.
Aug 9, 2018 at 12:55 comment added estani @Luke what I meant is that at least in Java gdal.OpenEx does not work with strings. Have you tested it in PYthon then? Because it's very strange that different languages do different thinks, at the end is the same library that handles it all.
Jul 31, 2018 at 14:58 comment added estani ogr seems to work fine, gdal.OpenEx does not (at least not in the Java bindings, does it really work in C#?)
Jan 18, 2017 at 10:06 vote accept Dan Price
Jan 18, 2017 at 9:26 comment added Dan Price I never realised it'd be that simple, since the docs always refer to it as the path. Related note, if I use Ogr.Open, the DataSource's name property is set to the entire text of the GeoJSON string - is there some driver option I'm missing?
Jan 16, 2017 at 3:22 history edited user2856 CC BY-SA 3.0
added 9 characters in body; edited body
Jan 15, 2017 at 0:45 history edited user2856 CC BY-SA 3.0
added 8 characters in body
Jan 14, 2017 at 20:14 history edited user2856 CC BY-SA 3.0
added 6 characters in body
Jan 13, 2017 at 21:08 history edited user2856 CC BY-SA 3.0
deleted 1 character in body
Jan 13, 2017 at 20:29 history answered user2856 CC BY-SA 3.0