[Gdal-dev] Postgis DeleteLayer(int iLayer) method

Frank Warmerdam warmerdam at pobox.com
Sun Dec 18 12:09:33 EST 2005


On 12/12/05, Craig Miller <craig.miller at spatialminds.com> wrote:
> The existing PostGIS driver didn't have support for deleting a layer via the
> datasource (OGRDatasource::DeleteLayer(int iLayer).  It did have a method
> for deleting a layer via a name, but this isn't exposed via the C++ API.  I
> quickly adapted that function to the DeleteLayer(int iLayer) method, so
> there would be an implementation in the driver available.  I've done very
> little testing of the method, and I didn't make very good use of the
> OGRErr/CPLError mechanism.  I only implemented enough error handling to get
> it to work.
>
> Here is the code (Just add it to ogrpgdatasource.cpp and delcare the method
> in ogr_pg.h):

Craig,

I have submitted this as a bug report for now.  I would like
to do some testing before I commit it, but I dont' want to
lose it completely in the meantime.

  http://bugzilla.remotesensing.org/show_bug.cgi?id=1020

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list