fmeobjects.FMESpatialIndex.queryClosestByFeatureType

FMESpatialIndex.queryClosestByFeatureType()

queryClosestByFeatureType(xCoord, yCoord, maxDist, featTypes),

This method performs a query to determine the closest feature to the passed in point that is within the search distance. Only the specified feature types are searched.

Parameters:
  • xCoord (float) – The x coordinate of the point.

  • yCoord (float) – The y coordinate of the point.

  • maxDist (float) – The maximum search distance.

  • featTypes (list[str]) – The list of feature types to be searched.

Return type:

None

Raises:

FMEException – An FMEException is raised if there was an error.