fmeobjects.FMEUniversalReader.setConstraints
- FMEUniversalReader.setConstraints(feature)
Specify the spatial and attribute constraints to be used when reading the data. The spatial and attribute query is specified in the feature object. This only need be implemented by those readers which return spatialEnables() as true, otherwise they can do nothing. This can be called at any time after the reader is created. If any read is in progress then it is terminated and the next read will reflect the new constraints.
The constraint feature must have an attribute called ‘fme_search_type’ on it. The value of this attribute indicates the kind of search to be done. Refer to the IFMEReader setContraints() Documentation for detailed information.
- Parameters:
feature (FMEFeature) – The constraint feature.
- Return type:
None
- Raises:
FMEException – An FMEException is raised if there was an error.