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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
