[gdal-dev] OVERWRITING a Layer

Even Rouault even.rouault at mines-paris.org
Mon Aug 23 14:45:00 EDT 2010


Look at the example at
http://gdal.org/java/org/gdal/ogr/DataSource.html#CreateLayer(java.lang.String,
%20org.gdal.osr.SpatialReference,%20int,%20java.util.Vector)

Replace DIM=2 by OVERWRITE=YES

Alternatively you could delete the layer before with DeleteLayer(), because 
not all drivers support OVERWRITE=YES.

Le lundi 23 août 2010 20:40:42, ahmet temiz a écrit :
> hello
> 
> in gdal-java application. I encountered this problem.
> 
> 
> ERROR 1: Layer postlayer12 already exists, CreateLayer failed.
> Use the layer creation option OVERWRITE=YES to replace it.
> 
> how can I solve this problem ?
> 
> regards
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev


More information about the gdal-dev mailing list