Performs queries against any FME-supported format. The queries can have both a spatial and a nonspatial component.
One query is issued to the FME-supported format for each feature that enters the transformer. The results of the query are then output.
Select the Reader format and dataset, including any reader-specific parameters
You can select feature types from the wizard parameters or from a chosen attribute.
If you want to select an existing attribute, click Query the feature types specified in the attribute below, then select from the list. The chosen attribute can contain multiple feature types (in a colon-separated list) to be queried. Feature types that do not match a selected feature type name will be output through the <OTHER> port.
Optional: To customize merge behavior and enable the feature cache, you can edit Advanced Options. Otherwise, click Finish to set the previous transformer parameters and close the wizard.
The INITIATOR feature defines the geometry that will be used to define the spatial component of the query, unless it does not contain any geometry. In this case, only an attribute query as defined by the WHERE clause will be executed.
By default, this transformer outputs only result attributes and geometry – it does not transfer the attributes and geometry of INITIATOR features. To change this behavior, select from Attribute Handling or Geometry Handling:
Attribute Handling |
|
Geometry Handling |
|
By default, this transformer will reread the original source data for each INITIATOR feature. To improve performance (for example, with web services, databases, or URLs), you can choose to create a preprocessed cache to improve the speed when rereading the original source data.
The cache will expire after the specified time interval, or if the original data file is modified.
Note that the Cache Timeout value is also a component of the preprocessed cache. This means that different values of Cache Timeout will correspond to different versions of the cached dataset. For example, if the FeatureReader is set with a Cache Timeout of 1 hour, then set a second time with the same dataset, but with a Cache Timeout of 2 hours, there will be two cached copies of this dataset.
About Transformer Parameter Options
Search for samples and information about this transformer on FMEpedia.
Keywords: query