QGIS: use geometry from different layer in symbology expressionCopying Symbology between layers with...
What do you call a fact that doesn't match the settings?
How should I handle players who ignore the session zero agreement?
What makes the Forgotten Realms "forgotten"?
Why did Jodrell Bank assist the Soviet Union to collect data from their spacecraft in the mid 1960's?
Avoiding morning and evening handshakes
What is the time complexity of enqueue and dequeue of a queue implemented with a singly linked list?
What are the advantages of using `make` for small projects?
Why is button three on trumpet almost never used alone?
What is the wife of a henpecked husband called?
Why do neural networks need so many training examples to perform?
Unwarranted claim of higher degree of accuracy in zircon geochronology
QGIS: use geometry from different layer in symbology expression
Do authors have to be politically correct in article-writing?
Eww, those bytes are gross
How can I improve my fireworks photography?
What is a good way to foreshadow that magic is actually very advanced technology?
Quenching swords in dragon blood; why?
"On one hand" vs "on the one hand."
Why zero tolerance on nudity in space?
It took me a lot of time to make this, pls like. (YouTube Comments #1)
Can a hotel cancel a confirmed reservation?
Strange Sign on Lab Door
How do you funnel food off a cutting board?
What is the purpose of easy combat scenarios that don't need resource expenditure?
QGIS: use geometry from different layer in symbology expression
Copying Symbology between layers with different numbers of featuresWhere are the Expression-based Labeling options in QGIS?How to Display Overlapping Lines?QGIS expression: select from <layer> possible?Applying symbology to a layer with python, How to only have symbology in TOC that the sub layer hasCreating symbology for polygon layer which has opaque outlines but transparent colored fills using ArcGIS for Desktop?Arcpy ApplySymbologyFromLayer color problems with extentIs there a way to assign a feature from the majority of points to a polygon with *join attribute by location* QGIS 2.18Polygon layer symbology not displaying correctly in QGIS 3Create multipoint layer from array by expression
I have a project with multiple layers.
The purple dots are from a pointfile with the symbology-expression:
z($geometry)> '14.5'
. (so it only displays a purple dot when the Z-value is more than 14.5m).
I have a second layer with polygons, visible as the partly-transparent arc-area in red.
The next step i want to make in my project is to:
have the purple dots appear only if:
z($geometry)>'14.5' AND
the x-y of that spot is within the geographical extent of the polygon from the second layer
What step do i have to take to get this done.
qgis symbology z-value
add a comment |
I have a project with multiple layers.
The purple dots are from a pointfile with the symbology-expression:
z($geometry)> '14.5'
. (so it only displays a purple dot when the Z-value is more than 14.5m).
I have a second layer with polygons, visible as the partly-transparent arc-area in red.
The next step i want to make in my project is to:
have the purple dots appear only if:
z($geometry)>'14.5' AND
the x-y of that spot is within the geographical extent of the polygon from the second layer
What step do i have to take to get this done.
qgis symbology z-value
add a comment |
I have a project with multiple layers.
The purple dots are from a pointfile with the symbology-expression:
z($geometry)> '14.5'
. (so it only displays a purple dot when the Z-value is more than 14.5m).
I have a second layer with polygons, visible as the partly-transparent arc-area in red.
The next step i want to make in my project is to:
have the purple dots appear only if:
z($geometry)>'14.5' AND
the x-y of that spot is within the geographical extent of the polygon from the second layer
What step do i have to take to get this done.
qgis symbology z-value
I have a project with multiple layers.
The purple dots are from a pointfile with the symbology-expression:
z($geometry)> '14.5'
. (so it only displays a purple dot when the Z-value is more than 14.5m).
I have a second layer with polygons, visible as the partly-transparent arc-area in red.
The next step i want to make in my project is to:
have the purple dots appear only if:
z($geometry)>'14.5' AND
the x-y of that spot is within the geographical extent of the polygon from the second layer
What step do i have to take to get this done.
qgis symbology z-value
qgis symbology z-value
edited 3 hours ago
Matthias Kuhn
18.9k14890
18.9k14890
asked 3 hours ago
CaptainAhabCaptainAhab
656
656
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Your question is very similar to what I've done here recently.
I used expression:
if(
within($geometry,geometry(get_feature(layer,attribute,value))),
result_when_true,
result_when_false
)
In your case step 1: filter data table by
z($geometry)> '14.5'
step 2: paste expression in point symbology layer (see gif to find where)
if(
within($geometry,geometry(get_feature('your_polygon_layer_name','the_layers_field','feature_data'))),
1,
0
)
You can use the same expression for labels but must change 1 and 0 values to "label_field_name" and to null.
That's it.
Good answer! Would it work to drop the if-part completely and just usewithin(...)
?
– Matthias Kuhn
52 mins ago
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%2f314167%2fqgis-use-geometry-from-different-layer-in-symbology-expression%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your question is very similar to what I've done here recently.
I used expression:
if(
within($geometry,geometry(get_feature(layer,attribute,value))),
result_when_true,
result_when_false
)
In your case step 1: filter data table by
z($geometry)> '14.5'
step 2: paste expression in point symbology layer (see gif to find where)
if(
within($geometry,geometry(get_feature('your_polygon_layer_name','the_layers_field','feature_data'))),
1,
0
)
You can use the same expression for labels but must change 1 and 0 values to "label_field_name" and to null.
That's it.
Good answer! Would it work to drop the if-part completely and just usewithin(...)
?
– Matthias Kuhn
52 mins ago
add a comment |
Your question is very similar to what I've done here recently.
I used expression:
if(
within($geometry,geometry(get_feature(layer,attribute,value))),
result_when_true,
result_when_false
)
In your case step 1: filter data table by
z($geometry)> '14.5'
step 2: paste expression in point symbology layer (see gif to find where)
if(
within($geometry,geometry(get_feature('your_polygon_layer_name','the_layers_field','feature_data'))),
1,
0
)
You can use the same expression for labels but must change 1 and 0 values to "label_field_name" and to null.
That's it.
Good answer! Would it work to drop the if-part completely and just usewithin(...)
?
– Matthias Kuhn
52 mins ago
add a comment |
Your question is very similar to what I've done here recently.
I used expression:
if(
within($geometry,geometry(get_feature(layer,attribute,value))),
result_when_true,
result_when_false
)
In your case step 1: filter data table by
z($geometry)> '14.5'
step 2: paste expression in point symbology layer (see gif to find where)
if(
within($geometry,geometry(get_feature('your_polygon_layer_name','the_layers_field','feature_data'))),
1,
0
)
You can use the same expression for labels but must change 1 and 0 values to "label_field_name" and to null.
That's it.
Your question is very similar to what I've done here recently.
I used expression:
if(
within($geometry,geometry(get_feature(layer,attribute,value))),
result_when_true,
result_when_false
)
In your case step 1: filter data table by
z($geometry)> '14.5'
step 2: paste expression in point symbology layer (see gif to find where)
if(
within($geometry,geometry(get_feature('your_polygon_layer_name','the_layers_field','feature_data'))),
1,
0
)
You can use the same expression for labels but must change 1 and 0 values to "label_field_name" and to null.
That's it.
edited 1 hour ago
answered 2 hours ago
VitruviusVitruvius
429210
429210
Good answer! Would it work to drop the if-part completely and just usewithin(...)
?
– Matthias Kuhn
52 mins ago
add a comment |
Good answer! Would it work to drop the if-part completely and just usewithin(...)
?
– Matthias Kuhn
52 mins ago
Good answer! Would it work to drop the if-part completely and just use
within(...)
?– Matthias Kuhn
52 mins ago
Good answer! Would it work to drop the if-part completely and just use
within(...)
?– Matthias Kuhn
52 mins ago
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%2f314167%2fqgis-use-geometry-from-different-layer-in-symbology-expression%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