Skip to content
Snippets Groups Projects
Commit a5c09505 authored by Julien Malik's avatar Julien Malik
Browse files

BUG: when converting between different formats, field names can be changed

parent 6567c629
No related branches found
No related tags found
No related merge requests found
......@@ -168,10 +168,12 @@ struct FieldCopyTransformation
void fieldsTransform(ogr::Feature const& inFeature, ogr::Feature & outFeature) const
{
// default => copy all fields for copy transformation
assert(inFeature.GetSize() == outFeature.GetSize());
//assert(inFeature.GetSize() == outFeature.GetSize());
for (size_t i=0,N=inFeature.GetSize(); i!=N; ++i)
{
outFeature[i].Assign(inFeature[i]);
outFeature[inFeature[i].GetName()].Assign(inFeature[i]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment