Changes between Version 5 and Version 6 of rfc29_desired_fields


Ignore:
Timestamp:
Aug 9, 2010, 4:20:30 AM (14 years ago)
Author:
wonder
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • rfc29_desired_fields

    v5 v6  
    1010
    1111Common use cases:[[BR]]
    12 1. the client renders the layer: all fields can be ignored, only the geometry is required[[BR]]
     121. the client renders the layer: all (or most) fields can be ignored, only the geometry is required[[BR]]
    13132. the client shows attribute table: all fields are required, the geometry can be ignored
    1414
     
    4040The method will return OGRERR_NONE as long as all the field names are able to be resolved, even if the method does not
    4141support selection of fields.
     42
     43The drivers supporting this method will return TRUE to OLCIgnoreFields ("IgnoreFields") capability.
    4244
    4345The method will be implemented at the level of OGRLayer class: it will resolve indexes of the fields and set the following new member variables which indicate what should be ignored. The flags will be stored within OGRFeatureDefn and OGRFieldDefn classes and available with these getter functions:
     
    8385This change is fully backwards compatible: OGR will continue to fetch geometry, style and all fields by default. Only applications using the proposed API will experience the new behavior.
    8486
    85 Initially, only some drivers (Shapefile and few others) will implement this RFC. There is no need to modify all existing drivers when adopting the RFC - drivers that do not consider the ignored fields will simply fetch all attributes as before.
     87Initially, only some drivers (Shapefile and few others) will implement this RFC. There is no need to modify all existing drivers when adopting the RFC - drivers that do not consider the ignored fields will simply fetch all attributes as before. To check whether a driver supports this RFC, OLCIgnoreFields capability can be checked.
    8688
    8789ogr2ogr command line tool will make use of this RFC in cases it receives -select argument with a list of required fields. Other than the specified fields will be ignored.