[gdal-dev] Accessing in-memory shapefiles and db
Ari Jolma
ari.jolma at gmail.com
Tue Sep 28 10:54:06 EDT 2010
On 09/28/2010 09:41 AM, Alexander Bruy wrote:
> Hi all,
>
> I've develop a small GIS tool and use GDAL/OGR to work with raster and
> vector data.
>
> Is it possible to access shapefiles which loaded in memory with OGR?
> And same things with SpatiaLite databases? I know that SQLIte/SpatiaLite
> can create in-memory DB. But is it possible to access such databases
> with OGR?
>
> Small example or any hinst will be very useful
>
The way to accomplish that in GDAL is to copy the layer to a data source
controlled by the MEM driver. Depending on which language you work with
take a look at OGRDataSource::CopyLayer method or one of its FFI's.
Best regards,
Ari
> Thanks
>
>
More information about the gdal-dev
mailing list