Re: [gdal-dev] Convert ESRI Shapefile to GeoJSON in memory, code in c#

2020-11-11 Thread Paul Harwood
Just realised that I excluded the wider from the group accidentally - so added them back in . > I looked a bit more into the mongodb driver. I think I would prefer not using GDAL for saving into the database directly. And only using GDAL for > importing different formats and transforming between p

Re: [gdal-dev] Convert ESRI Shapefile to GeoJSON in memory, code in c#

2020-11-11 Thread Christian Sörensen
After converting to GeoJSON the next step is saving the json into a MongoDB database. The customer I work for has chosen to store all GIS-data in GeoJSON in a nosql database like MongoDB. That's why I would prefer not creating a file just to get hold of the json after importing and transforming th

Re: [gdal-dev] Convert ESRI Shapefile to GeoJSON in memory, code in c#

2020-11-11 Thread Paul Harwood
I have a working c# GDAL app - I might be able to help. I am not sure I understand what you are trying to do? It looks like you are creating a GeoJSON file from a shapefile and that actually only makes any sense if you want to save the file? > > > > > > > > > > > > > > > > > * private FeatureColl

[gdal-dev] Convert ESRI Shapefile to GeoJSON in memory, code in c#

2020-11-11 Thread Christian Sörensen
Hi, I'm a bit out of my depth here trying out GDAL in c#. Please help. =) My code works fine if I output the GeoJSON to a file on disk. But I would really not prefer having to intermittently store the result on disk just to read it back into memory again. It seems like all methods exposed by SWI