I am using the new Map Viewer analysis tool Find by Attributes and Location. I previously used this expression to run my analysis but can't figure out how to use the new tool in the new Map Viewer.
This is what was done previously
This is what I have tried and don't get the same result
I have also tried this
Solved! Go to Solution.
@CameronWheelan Thanks so much for sharing the map!
Looks like the issue is that you need to turn on the "Include only the parts of features that meet the criteria" parameter.
Once that is checked, the tool should work the same way as Derive New Locations in Map Viewer Classic; only the parts of the provinces and territories where the criteria is met will be returned in the output.
Leaving that parameter unchecked makes the tool behave like Find Existing Locations in Map Viewer Classic, where if some part of the province or territory meets the criteria, the entire feature is returned in the output.
Let me know if you're still seeing unexpected differences.
The key is that if each of the queries that apply to the same layer should all be at the same level of indentation.
Therefore, the first one you have looks right, though it's missing the distance value and units in the final operation.
Clicking on the button highlighted with A here will allow you to keep adding expressions that apply to your top level layer (Provinces and Territories of Canada) whereas clicking button B allows you to add nested expressions that refine the second layer (Plate Boundaries).
Using this nested expression could be helpful for cases where say you wanted Provinces and Territories within 300 km of a plate boundary where that plate boundary was within 5 km of a recent earthquake.
For your example, though, all your queries relate to the Provinces and Territories layer, so you would want to keep clicking the +Spatial expression at the bottom of the dialog. Your final query should look like:
If you're still seeing differences in the result, would you be able to send me a webmap with the data you're using so I can try to compare differences?
Cheers,
Hello,
Thanks for responding. It did not produce the same result. EQ_Locations From New is from Map Viewer and CanadaEQ From Classic is from the Classic Map Viewer.
See link to map here
@CameronWheelan Thanks so much for sharing the map!
Looks like the issue is that you need to turn on the "Include only the parts of features that meet the criteria" parameter.
Once that is checked, the tool should work the same way as Derive New Locations in Map Viewer Classic; only the parts of the provinces and territories where the criteria is met will be returned in the output.
Leaving that parameter unchecked makes the tool behave like Find Existing Locations in Map Viewer Classic, where if some part of the province or territory meets the criteria, the entire feature is returned in the output.
Let me know if you're still seeing unexpected differences.
Many thanks! It worked.