[Gdal-dev] OGROpen and delete

Howard Butler hobu.inc at gmail.com
Fri Jun 29 16:34:18 EDT 2007


Andrew,

The function to use is OGRReleaseDataSource (at least this is what  
the SWIG bindings do).  I'll update the doc...

Howard


On Jun 29, 2007, at 2:59 PM, Andrew Bell wrote:

> Hi,
>
> The documentation for OGROpen says that the data source should be
> deleted with "delete".  But the type OGRDataSourceH is really a void *
> and you can't delete a void *.  What type do I have to cast the result
> of OGROpen to in order to delete the source?
>
> Thanks,
>
> -- 
> Andrew Bell
> andrew.bell.ia at gmail.com
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list