Re: [gdal-dev] creating a shape from another with attributes and values

2012-12-04 Thread Brent Fraser
You need to do a CreateField() on your destination, something like: poFDefn = poLayer->GetLayerDefn(); for( int iField = 0; iField < poFDefn->GetFieldCount(); iField++ ){ OGRFieldDefn *poFieldDefn = poFDefn->GetFieldDefn( iField ); if( poDstLayer->CreateField( poFieldDefn

[gdal-dev] creating a shape from another with attributes and values

2012-12-04 Thread SIVA RAMA KRISHNA
To All, I am using the following code for creating a shape file from another with the attributes value; i am unable to fetch attribute values from source and change the features from newly created shape files Any Sort of help is greatly appriciated #include "main.h" #include #in