[gdal-dev] Adding ignored fields to layers

Ari Jolma ari.jolma at gmail.com
Tue Apr 3 01:17:26 PDT 2018


When fields are added to a layer, the field definition that is stored in 
the layer definition is created as a clone of the provided field definition.

Neither field definitions nor geometry field definitions set the ignored 
flag of the clone.

Is this a feature and not a bug?

I was already making a PR but I see in the field definition clone code 
the comment "TODO(schwehr): Can we use IsIgnored()?"

So, can we?

Ari




More information about the gdal-dev mailing list