Select to view content in your preferred language

Select by location in Model builder.

735
4
05-24-2022 10:35 PM
saidurgamalleswarthota
Occasional Contributor

I want to clip the USA population into individual rasters with counties boundaries as output extent. First, I want to select a county, then use select by location to select all the boundary touching counties. I want these selected features as the clipping extent of the output raster. The output is saved as the objectID of the initially selected county. 

I used model builder, but I've problems. I'm successfully able to generate a raster for 1st county. But for the rest all, I'm getting errors. I've attached the pictures. Please help me.

 

saidurgamalleswarthota_0-1653456902379.pngScreenshot 2022-05-25 141643.png

 

0 Kudos
4 Replies
DanPatterson
MVP Esteemed Contributor

The error suggests that all the data are not in the same coordinate system


... sort of retired...
saidurgamalleswarthota
Occasional Contributor

The error persists even after I convert all the layers to the same coordinate system.

0 Kudos
DanPatterson
MVP Esteemed Contributor

Perhaps show your map.  You used the Project tool (for vector) and Project Raster (for raster) to do any necessary projections I presume.


... sort of retired...
0 Kudos
saidurgamalleswarthota
Occasional Contributor

I used the project tool for counties shapefile and project rasters for population data.

saidurgamalleswarthota_1-1653468860688.png

 

I was still getting the same error. But I don't understand is every time I run the model, the First clip was successfully created, and the further all are getting the error. Is it have to do anything with the feature iterate selection?

0 Kudos