[gdal-dev] How to create a Memory Vector dataset?

Even Rouault even.rouault at spatialys.com
Sun Feb 2 10:21:20 PST 2020


On dimanche 2 février 2020 18:11:26 CET Joaquim Manuel Freire Luís wrote:
> >> Is there an
> >> example somewhere of creating a Memory (not MEM?) vector dataset that
> >> I could use to learn more on this?
> > 
> > https://gdal.org/tutorials/vector_api_tut.html#writing-to-ogr should work
> > with MEM too.
> Even,
> 
> Sorry, I'm having *some* troubles with the MEM driver that I don't see how
> to solve
> 
> <begin snip>
> 	hDriver = GDALGetDriverByName("MEM");

--> should be "Memory" here for the vector driver. The MEM driver is raster-
only.

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list