Select Layer by location does not workSelect by location of doughnut hole polygonModel Builder is not intersecting erased and selected filesExporting results from Select By Location comparisons of each line in one shapefile with polygons in another?Using Select by Location and Select by Attributes in single ModelBuilder model?Proper syntax for Select Feature Layer by LocationIterating Select By Location in ModelBuilder?SelectLayerByLocation keeps giving error 000840: The value is not Booleandelete overlapping pointsHow to only select lines (geometry features) going through a polygon?Selecting only portion of shapefile using ArcMap?
"listening to me about as much as you're listening to this pole here"
Eliminate empty elements from a list with a specific pattern
What do you call words made from common English words?
How to deal with fear of taking dependencies
Can the Produce Flame cantrip be used to grapple, or as an unarmed strike, in the right circumstances?
Where to refill my bottle in India?
Copycat chess is back
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Information to fellow intern about hiring?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
Can I legally use front facing blue light in the UK?
What causes the sudden spool-up sound from an F-16 when enabling afterburner?
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
Is there a familial term for apples and pears?
Is it legal to have the "// (c) 2019 John Smith" header in all files when there are hundreds of contributors?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
What do you call something that goes against the spirit of the law, but is legal when interpreting the law to the letter?
Extreme, but not acceptable situation and I can't start the work tomorrow morning
Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?
Is there a name of the flying bionic bird?
Can a planet have a different gravitational pull depending on its location in orbit around its sun?
New order #4: World
How can I fix this gap between bookcases I made?
Calculate Levenshtein distance between two strings in Python
Select Layer by location does not work
Select by location of doughnut hole polygonModel Builder is not intersecting erased and selected filesExporting results from Select By Location comparisons of each line in one shapefile with polygons in another?Using Select by Location and Select by Attributes in single ModelBuilder model?Proper syntax for Select Feature Layer by LocationIterating Select By Location in ModelBuilder?SelectLayerByLocation keeps giving error 000840: The value is not Booleandelete overlapping pointsHow to only select lines (geometry features) going through a polygon?Selecting only portion of shapefile using ArcMap?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am having trouble using the "Select Layer by Location" tool.
I want to select everything from shapefile A (green) that overlays with Shapefile B (red).
Here is the raw data:
And one example of the "Select Layer by location" (all three of them have the same adjustment, just different input):
Running this, it produces the following output.
In a closeup one can see a few selections. But based on the input data (red - as you can see, it basically covers all of the green area) it should be exactly the same. Or am I totally mistaken?
EDIT 7/14/14 4:58pm
This is how it worked out.
Instead of making one feature layer I made three feature layers and three different selection which need to be saved seperately. Another step was copying the features before merging them. Dont be confused, I added another step to the model (calculate field) but this has nothing to do with the trouble shooting of the original problem.
solution http://s14.postimg.org/6hltytbf9d/Untitled.png
arcgis-desktop shapefile modelbuilder feature-layer select-by-location
add a comment |
I am having trouble using the "Select Layer by Location" tool.
I want to select everything from shapefile A (green) that overlays with Shapefile B (red).
Here is the raw data:
And one example of the "Select Layer by location" (all three of them have the same adjustment, just different input):
Running this, it produces the following output.
In a closeup one can see a few selections. But based on the input data (red - as you can see, it basically covers all of the green area) it should be exactly the same. Or am I totally mistaken?
EDIT 7/14/14 4:58pm
This is how it worked out.
Instead of making one feature layer I made three feature layers and three different selection which need to be saved seperately. Another step was copying the features before merging them. Dont be confused, I added another step to the model (calculate field) but this has nothing to do with the trouble shooting of the original problem.
solution http://s14.postimg.org/6hltytbf9d/Untitled.png
arcgis-desktop shapefile modelbuilder feature-layer select-by-location
add a comment |
I am having trouble using the "Select Layer by Location" tool.
I want to select everything from shapefile A (green) that overlays with Shapefile B (red).
Here is the raw data:
And one example of the "Select Layer by location" (all three of them have the same adjustment, just different input):
Running this, it produces the following output.
In a closeup one can see a few selections. But based on the input data (red - as you can see, it basically covers all of the green area) it should be exactly the same. Or am I totally mistaken?
EDIT 7/14/14 4:58pm
This is how it worked out.
Instead of making one feature layer I made three feature layers and three different selection which need to be saved seperately. Another step was copying the features before merging them. Dont be confused, I added another step to the model (calculate field) but this has nothing to do with the trouble shooting of the original problem.
solution http://s14.postimg.org/6hltytbf9d/Untitled.png
arcgis-desktop shapefile modelbuilder feature-layer select-by-location
I am having trouble using the "Select Layer by Location" tool.
I want to select everything from shapefile A (green) that overlays with Shapefile B (red).
Here is the raw data:
And one example of the "Select Layer by location" (all three of them have the same adjustment, just different input):
Running this, it produces the following output.
In a closeup one can see a few selections. But based on the input data (red - as you can see, it basically covers all of the green area) it should be exactly the same. Or am I totally mistaken?
EDIT 7/14/14 4:58pm
This is how it worked out.
Instead of making one feature layer I made three feature layers and three different selection which need to be saved seperately. Another step was copying the features before merging them. Dont be confused, I added another step to the model (calculate field) but this has nothing to do with the trouble shooting of the original problem.
solution http://s14.postimg.org/6hltytbf9d/Untitled.png
arcgis-desktop shapefile modelbuilder feature-layer select-by-location
arcgis-desktop shapefile modelbuilder feature-layer select-by-location
edited Apr 4 at 7:13
Glorfindel
2871311
2871311
asked Jul 14 '14 at 17:29
StophfaceStophface
1,19811539
1,19811539
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected.
The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a polygon from layer B will be selected. You may want to review the tool help file and read through the relationship options (overlap type) for a better understanding of what they do. There are also some graphic examples here.
Further, because (it appears) the two polygon layers don't share coincident boundaries, if what you're wanting to do is create a feature class out of green that compeletely matches red, Select Layer by Location or even Select by Location isn't going to work and you need a different tool. One option would be to Clip the green using the red as clip features.
Your symbology doesn't indicate if each polygon might have differing attributes. If not, you may want to run a Dissolve on the layers first to simplify their geometry. If they do have differing attributes and those need to be preserved, and especially if you're trying to combine those different layers into one while keeping individual attributes as that Merge tool might indicate, you may want to look at the Intersect and Union tools.
If you can edit your question to be more detailed about the data you're working with and what you're trying to do, I might be able to edit this answer down to more specific information and suggestions. The model is somewhat difficult to follow with default names, and while I can't see the entire model I'm curious about the raster to polygon operation and where it falls in the process.
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
add a comment |
One suggestion is to double check the projections of the layers you are working with to make sure they are the same. I see you wrote "All three of them have the same adjustment," not sure if that means projection or not.
I have had very strange things happen using files that line up in the data frame using projection on-the-fly, but are not actually set to the same projection.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "79"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f107134%2fselect-layer-by-location-does-not-work%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected.
The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a polygon from layer B will be selected. You may want to review the tool help file and read through the relationship options (overlap type) for a better understanding of what they do. There are also some graphic examples here.
Further, because (it appears) the two polygon layers don't share coincident boundaries, if what you're wanting to do is create a feature class out of green that compeletely matches red, Select Layer by Location or even Select by Location isn't going to work and you need a different tool. One option would be to Clip the green using the red as clip features.
Your symbology doesn't indicate if each polygon might have differing attributes. If not, you may want to run a Dissolve on the layers first to simplify their geometry. If they do have differing attributes and those need to be preserved, and especially if you're trying to combine those different layers into one while keeping individual attributes as that Merge tool might indicate, you may want to look at the Intersect and Union tools.
If you can edit your question to be more detailed about the data you're working with and what you're trying to do, I might be able to edit this answer down to more specific information and suggestions. The model is somewhat difficult to follow with default names, and while I can't see the entire model I'm curious about the raster to polygon operation and where it falls in the process.
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
add a comment |
I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected.
The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a polygon from layer B will be selected. You may want to review the tool help file and read through the relationship options (overlap type) for a better understanding of what they do. There are also some graphic examples here.
Further, because (it appears) the two polygon layers don't share coincident boundaries, if what you're wanting to do is create a feature class out of green that compeletely matches red, Select Layer by Location or even Select by Location isn't going to work and you need a different tool. One option would be to Clip the green using the red as clip features.
Your symbology doesn't indicate if each polygon might have differing attributes. If not, you may want to run a Dissolve on the layers first to simplify their geometry. If they do have differing attributes and those need to be preserved, and especially if you're trying to combine those different layers into one while keeping individual attributes as that Merge tool might indicate, you may want to look at the Intersect and Union tools.
If you can edit your question to be more detailed about the data you're working with and what you're trying to do, I might be able to edit this answer down to more specific information and suggestions. The model is somewhat difficult to follow with default names, and while I can't see the entire model I'm curious about the raster to polygon operation and where it falls in the process.
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
add a comment |
I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected.
The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a polygon from layer B will be selected. You may want to review the tool help file and read through the relationship options (overlap type) for a better understanding of what they do. There are also some graphic examples here.
Further, because (it appears) the two polygon layers don't share coincident boundaries, if what you're wanting to do is create a feature class out of green that compeletely matches red, Select Layer by Location or even Select by Location isn't going to work and you need a different tool. One option would be to Clip the green using the red as clip features.
Your symbology doesn't indicate if each polygon might have differing attributes. If not, you may want to run a Dissolve on the layers first to simplify their geometry. If they do have differing attributes and those need to be preserved, and especially if you're trying to combine those different layers into one while keeping individual attributes as that Merge tool might indicate, you may want to look at the Intersect and Union tools.
If you can edit your question to be more detailed about the data you're working with and what you're trying to do, I might be able to edit this answer down to more specific information and suggestions. The model is somewhat difficult to follow with default names, and while I can't see the entire model I'm curious about the raster to polygon operation and where it falls in the process.
I'm guessing based on your final image that while the green does provide 100% coverage, it is broken up into separate polygons - otherwise (if it were a single giant polygon) you'd be getting nothing selected.
The problem is your Relationship choice. Within means that only whole polygons (not areas or parts of polygons) from layer A that lie within a polygon from layer B will be selected. You may want to review the tool help file and read through the relationship options (overlap type) for a better understanding of what they do. There are also some graphic examples here.
Further, because (it appears) the two polygon layers don't share coincident boundaries, if what you're wanting to do is create a feature class out of green that compeletely matches red, Select Layer by Location or even Select by Location isn't going to work and you need a different tool. One option would be to Clip the green using the red as clip features.
Your symbology doesn't indicate if each polygon might have differing attributes. If not, you may want to run a Dissolve on the layers first to simplify their geometry. If they do have differing attributes and those need to be preserved, and especially if you're trying to combine those different layers into one while keeping individual attributes as that Merge tool might indicate, you may want to look at the Intersect and Union tools.
If you can edit your question to be more detailed about the data you're working with and what you're trying to do, I might be able to edit this answer down to more specific information and suggestions. The model is somewhat difficult to follow with default names, and while I can't see the entire model I'm curious about the raster to polygon operation and where it falls in the process.
answered Jul 14 '14 at 19:14
Chris WChris W
14.7k22344
14.7k22344
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
add a comment |
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
Hey, its a graphic think. The green layer is consisting of a lot of small attributes 9like the red layer). The displaying of it is just as one. Thanks for the hint with the WITHIN tool. I understood it wrong. I though it selects everything that lays within and gets rid of everything else (like a clip would do it). I changed the selection method! But that alone did not do the job. I found a solution though and updated my question. I think the problem might have been that I worked on one feature layer with different selections. But that is just a guess?
– Stophface
Jul 14 '14 at 20:04
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
@Stophface I'm still not understanding what data your model is taking in and what it is trying to do. Or if you still have a question or the problem has been solved. It looks like red is just a mask and you're trying to address three separate selections of green within that mask. As I mentioned in my answer, no method of selecting by location will do this unless both layer's polygon boundaries are coincident - you need to use Overlay tools. Use of Clip, a single Union tool, or perhaps submodels seems like it would greatly simplify or clean things up.
– Chris W
Jul 14 '14 at 20:53
1
1
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
I recommend you try 'HAVE_THEIR_CENTER_IN' for the overlap_type of Select By Location.
– klewis
Jul 14 '14 at 23:18
add a comment |
One suggestion is to double check the projections of the layers you are working with to make sure they are the same. I see you wrote "All three of them have the same adjustment," not sure if that means projection or not.
I have had very strange things happen using files that line up in the data frame using projection on-the-fly, but are not actually set to the same projection.
add a comment |
One suggestion is to double check the projections of the layers you are working with to make sure they are the same. I see you wrote "All three of them have the same adjustment," not sure if that means projection or not.
I have had very strange things happen using files that line up in the data frame using projection on-the-fly, but are not actually set to the same projection.
add a comment |
One suggestion is to double check the projections of the layers you are working with to make sure they are the same. I see you wrote "All three of them have the same adjustment," not sure if that means projection or not.
I have had very strange things happen using files that line up in the data frame using projection on-the-fly, but are not actually set to the same projection.
One suggestion is to double check the projections of the layers you are working with to make sure they are the same. I see you wrote "All three of them have the same adjustment," not sure if that means projection or not.
I have had very strange things happen using files that line up in the data frame using projection on-the-fly, but are not actually set to the same projection.
answered Jul 23 '14 at 14:49
BarrettBarrett
2,6191128
2,6191128
add a comment |
add a comment |
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f107134%2fselect-layer-by-location-does-not-work%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown