Changes between Version 5 and Version 6 of rfc29_desired_fields
- Timestamp:
- Aug 9, 2010, 4:20:30 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
rfc29_desired_fields
v5 v6 10 10 11 11 Common use cases:[[BR]] 12 1. the client renders the layer: all fields can be ignored, only the geometry is required[[BR]]12 1. the client renders the layer: all (or most) fields can be ignored, only the geometry is required[[BR]] 13 13 2. the client shows attribute table: all fields are required, the geometry can be ignored 14 14 … … 40 40 The method will return OGRERR_NONE as long as all the field names are able to be resolved, even if the method does not 41 41 support selection of fields. 42 43 The drivers supporting this method will return TRUE to OLCIgnoreFields ("IgnoreFields") capability. 42 44 43 45 The 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: … … 83 85 This 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. 84 86 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. 87 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. To check whether a driver supports this RFC, OLCIgnoreFields capability can be checked. 86 88 87 89 ogr2ogr 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.