Quantcast
Channel: Forums - Geoprocessing
Viewing all articles
Browse latest Browse all 1952

SpatialFilter query in Python

$
0
0
In C# and ArcEngine, there is SpatialFilter Class that can execute spatial and attribute query at the same time. In Python, we need to use the following two steps:
1: gp.SelectLayerByLocation(inLayer, "intersect", pAOI, "", "", "NEW_SELECTION")
2: gp.SelectLayerByAttribute(inLayer, "SUBSET_SELECTION", whereClause)

If there are many features in the input layer, step 1 will be very consuming.

Any reply and suggestion is highly appreciated. Thanks!

Viewing all articles
Browse latest Browse all 1952

Latest Images

Trending Articles



Latest Images