Tag Info

New answers tagged

3

You mention Python scripting, which would be a good way to approach this. However, if you're not already familiar with Python you could look at Model Builder, as this will give an easier GUI to get you started. Here is a quick example of a model which uses Select By Attributes to narrow down a layer, then uses the output of this to Select By Location: ...


4

Yes, if you just want to do it with selections you need to run multiple selections and change the method/initial set. First Select by Location using within your smallest boundary. Or if you've got two that overlap somewhat, you select everything within one then run another selection using the method 'select from currently selected features in', as discussed ...


0

what type of data source are you querying? Is it SDE/File geodtabase? You may try placing single quotes around the {0} in your statement. Example from ESRI: " \"CITY_NAME\" = 'Chicago' " In your case, try this (haven't validated it but worth a shot, I switched it to double quotes and escaped the internal double quotes, then added the string into single ...


1

It always helps to include the error message you're getting with the script, so I'm guessing a bit, but the correct format for your SQL where clause is probably '"LCC_DRN_ID" = \'{0}\''.format(point_id) Note that you don't have to escape the double quotes with the slash because you're using single quotes for the overall SQL string, but you do need to ...



Top 50 recent answers are included