Commit a5c09505 authored by Julien Malik's avatar Julien Malik

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

parent 6567c629
......@@ -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]);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment