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
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