ArcSDEQuerier

Performs queries on an ArcSDE spatial database. The queries can have both a spatial as well as a nonspatial component to them.

One query is issued to the ArcSDE database for each feature that enters the transformer.  The results of the query are then output to the output port that matches the table name, if it exists; otherwise, results are output to the <OTHER> port. If the Mode parameter is set to Delete, the results of the query are deleted from ArcSDE before they are output from the transformer. If the Mode parameter is set to Update, the features in ArcSDE matching the query feature will be updated with that feature's complete set of attributes.

The query feature defines the geometry which will be used to define the spatial component of the query, unless the search method is SDE_NONE.  In that case, only an attribute query as defined by the where clause will be executed.

If the Remove Table Qualifier parameter is set to Yes, then user names will not be included in table names when they are not required.

If the Table Name in Attribute parameter is blank, the set of tables to query is defined by the Tables parameter, which is set in the "ArcSDE Tables" panel.  Alternatively, if the Table Name in Attribute parameter is not blank, the tables to query are read from the specified attribute in the input features.  In this case, the tables to query should be specified as a colon-separated list.

The complete set of ArcSDE spatial query operators is supported and each is described below:

The Search Order parameter controls the manner in which the search is performed.  If Optimize is specified, then the SDE engine decides how to perform the search. If Attribute First is specified, then the attribute portion of the search is performed first and then the spatial component is performed on the set resulting from the attribute set. If Spatial First is specified, then the spatial search is performed first and then the attribute search is performed on the resulting set.  This is useful if the Optimize setting makes the wrong choice and you want to force the search to be performed in a different order.

Attribute Handling parameter settings:

Geometry Handling parameter settings:

The Process Duplicates parameter specifies whether or not duplicate features will be output from the transformer. If the Mode parameter is set to Update, this parameter also specifies whether duplicate updates will be performed.

The Get Spatial Relations parameter specifies whether or not the relationships between the query and result geometries should be computed. Refer to the SDE30QueryFactory factory documentation (in the FME Functions and Factories manual) for more information.

An attribute named '_table_name' will be added to each result feature, specifying which table the result feature came from.

An attribute named '_matched_records' will be added to each query feature, specifying how many database rows the query matched.

FME Function or Factory Used

SDE30QueryFactory