Adjusting flow map styles in QGISRepresenting network flows?Selecting features with same geometry in one...
Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?
Do my Windows system binaries contain sensitive information?
Table enclosed in curly brackets
How would an AI self awareness kill switch work?
What is better: yes / no radio, or simple checkbox?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
Can a person refuse a presidential pardon?
Eww, those bytes are gross
Where is this triangular-shaped space station from?
Finding ratio of the area of triangles
How to mitigate "bandwagon attacking" from players?
How do Japanese speakers determine the implied topic when none has been mentioned?
Avoiding morning and evening handshakes
Is my plan for fixing my water heater leak bad?
Why didn't Eru and/or the Valar intervene when Sauron corrupted Númenor?
What's the rationale behind the objections to these measures against human trafficking?
Find the number of ways to express 1050 as sum of consecutive integers
Naming things the POV character doesn't know
Why is my solution for the partial pressures of two different gases incorrect?
If I delete my router's history can my ISP still provide it to my parents?
Finding an integral using a table?
What is the purpose of easy combat scenarios that don't need resource expenditure?
How Should I Define/Declare String Constants
Should I choose Itemized or Standard deduction?
Adjusting flow map styles in QGIS
Representing network flows?Selecting features with same geometry in one shapefileFlow map from aggregate data with QGIS?Flow Mapping Lines by MagnitudeCreating distributive flow line map showing movement of passengers from bus terminal to several destinations?What are good colour schemes for large density flow maps?Error in creating a flow mapHow to create flow maps in QgisCreating flow map with matrix table using QGIS?Qgis Flow Mapper weighted linesFlow map with QGIS 3ArcMap Flow Map lines get cut off
In a project, I am trying to adopt marvellous styles for a flow map created by Anita Graser a.k.a. @underdark.
At this moment I have the following outputs.
The sample of data can be found here. Styles in QML-format can be upload from this link.
Shapefile was created with the usage of Flow maps (Oursins) plugin).
Lines have different directions, i.e. the starting point of first is the ending point of the second and vice versa. So basically the table includes lines with both directions but without any description of directions.
However, I faced several problems
1. Proper allocation of arrows.
I am using an expression for Arrow type > Plain
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN 1 ELSE 2 END
still, I can not properly allocate orange halves of Arrows on the opposite side of blues.
2. The width of the arrows.
I want to adjust the line width accordingly to the values of a field "FLUX"
.
For that reason, I am using an expression for Arrow width
.
scale_linear( "FLUX" ,0,10,0.1,3) * CASE WHEN "FLUX" > 1000 THEN 1 ELSE 0 END
3. Varying buffers size.
Buffers around points shall inherit values from a different layer, i.e. they are not the same size.
Do I need to apply layer_property()
function if I want to extract the value from a different layer or there is a much more efficient way of doing that? Right now the buffers around points defined with the following expression
`difference(
difference(
$geometry,
buffer( start_point($geometry), 500 )
),
buffer( end_point( $geometry), 500 )
)`
How to adjust 500 to other values that come from a different layer?
How shall I handle those issues?
My desired output should look like this, curved lines can be ignored.
References:
- QGIS-resource-collections
- Details of good flow maps
- New style: flow map arrows
- Representing network flows?
- Selecting features with same geometry in one shapefile
cartography qgis-2 flow-map
This question has an open bounty worth +50
reputation from Taras ending in 6 days.
This question has not received enough attention.
I would like to understand the way of adjusting styles for some layers programmatically.
add a comment |
In a project, I am trying to adopt marvellous styles for a flow map created by Anita Graser a.k.a. @underdark.
At this moment I have the following outputs.
The sample of data can be found here. Styles in QML-format can be upload from this link.
Shapefile was created with the usage of Flow maps (Oursins) plugin).
Lines have different directions, i.e. the starting point of first is the ending point of the second and vice versa. So basically the table includes lines with both directions but without any description of directions.
However, I faced several problems
1. Proper allocation of arrows.
I am using an expression for Arrow type > Plain
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN 1 ELSE 2 END
still, I can not properly allocate orange halves of Arrows on the opposite side of blues.
2. The width of the arrows.
I want to adjust the line width accordingly to the values of a field "FLUX"
.
For that reason, I am using an expression for Arrow width
.
scale_linear( "FLUX" ,0,10,0.1,3) * CASE WHEN "FLUX" > 1000 THEN 1 ELSE 0 END
3. Varying buffers size.
Buffers around points shall inherit values from a different layer, i.e. they are not the same size.
Do I need to apply layer_property()
function if I want to extract the value from a different layer or there is a much more efficient way of doing that? Right now the buffers around points defined with the following expression
`difference(
difference(
$geometry,
buffer( start_point($geometry), 500 )
),
buffer( end_point( $geometry), 500 )
)`
How to adjust 500 to other values that come from a different layer?
How shall I handle those issues?
My desired output should look like this, curved lines can be ignored.
References:
- QGIS-resource-collections
- Details of good flow maps
- New style: flow map arrows
- Representing network flows?
- Selecting features with same geometry in one shapefile
cartography qgis-2 flow-map
This question has an open bounty worth +50
reputation from Taras ending in 6 days.
This question has not received enough attention.
I would like to understand the way of adjusting styles for some layers programmatically.
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? LikeCASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use1
instead of0.5
). Or is that not desirable for your intended style?
– Erik
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago
add a comment |
In a project, I am trying to adopt marvellous styles for a flow map created by Anita Graser a.k.a. @underdark.
At this moment I have the following outputs.
The sample of data can be found here. Styles in QML-format can be upload from this link.
Shapefile was created with the usage of Flow maps (Oursins) plugin).
Lines have different directions, i.e. the starting point of first is the ending point of the second and vice versa. So basically the table includes lines with both directions but without any description of directions.
However, I faced several problems
1. Proper allocation of arrows.
I am using an expression for Arrow type > Plain
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN 1 ELSE 2 END
still, I can not properly allocate orange halves of Arrows on the opposite side of blues.
2. The width of the arrows.
I want to adjust the line width accordingly to the values of a field "FLUX"
.
For that reason, I am using an expression for Arrow width
.
scale_linear( "FLUX" ,0,10,0.1,3) * CASE WHEN "FLUX" > 1000 THEN 1 ELSE 0 END
3. Varying buffers size.
Buffers around points shall inherit values from a different layer, i.e. they are not the same size.
Do I need to apply layer_property()
function if I want to extract the value from a different layer or there is a much more efficient way of doing that? Right now the buffers around points defined with the following expression
`difference(
difference(
$geometry,
buffer( start_point($geometry), 500 )
),
buffer( end_point( $geometry), 500 )
)`
How to adjust 500 to other values that come from a different layer?
How shall I handle those issues?
My desired output should look like this, curved lines can be ignored.
References:
- QGIS-resource-collections
- Details of good flow maps
- New style: flow map arrows
- Representing network flows?
- Selecting features with same geometry in one shapefile
cartography qgis-2 flow-map
In a project, I am trying to adopt marvellous styles for a flow map created by Anita Graser a.k.a. @underdark.
At this moment I have the following outputs.
The sample of data can be found here. Styles in QML-format can be upload from this link.
Shapefile was created with the usage of Flow maps (Oursins) plugin).
Lines have different directions, i.e. the starting point of first is the ending point of the second and vice versa. So basically the table includes lines with both directions but without any description of directions.
However, I faced several problems
1. Proper allocation of arrows.
I am using an expression for Arrow type > Plain
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN 1 ELSE 2 END
still, I can not properly allocate orange halves of Arrows on the opposite side of blues.
2. The width of the arrows.
I want to adjust the line width accordingly to the values of a field "FLUX"
.
For that reason, I am using an expression for Arrow width
.
scale_linear( "FLUX" ,0,10,0.1,3) * CASE WHEN "FLUX" > 1000 THEN 1 ELSE 0 END
3. Varying buffers size.
Buffers around points shall inherit values from a different layer, i.e. they are not the same size.
Do I need to apply layer_property()
function if I want to extract the value from a different layer or there is a much more efficient way of doing that? Right now the buffers around points defined with the following expression
`difference(
difference(
$geometry,
buffer( start_point($geometry), 500 )
),
buffer( end_point( $geometry), 500 )
)`
How to adjust 500 to other values that come from a different layer?
How shall I handle those issues?
My desired output should look like this, curved lines can be ignored.
References:
- QGIS-resource-collections
- Details of good flow maps
- New style: flow map arrows
- Representing network flows?
- Selecting features with same geometry in one shapefile
cartography qgis-2 flow-map
cartography qgis-2 flow-map
edited 1 min ago
Taras
asked 2 days ago
TarasTaras
2,1172725
2,1172725
This question has an open bounty worth +50
reputation from Taras ending in 6 days.
This question has not received enough attention.
I would like to understand the way of adjusting styles for some layers programmatically.
This question has an open bounty worth +50
reputation from Taras ending in 6 days.
This question has not received enough attention.
I would like to understand the way of adjusting styles for some layers programmatically.
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? LikeCASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use1
instead of0.5
). Or is that not desirable for your intended style?
– Erik
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago
add a comment |
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? LikeCASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use1
instead of0.5
). Or is that not desirable for your intended style?
– Erik
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? Like
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use 1
instead of 0.5
). Or is that not desirable for your intended style?– Erik
2 days ago
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? Like
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use 1
instead of 0.5
). Or is that not desirable for your intended style?– Erik
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago
add a comment |
0
active
oldest
votes
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%2f314057%2fadjusting-flow-map-styles-in-qgis%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f314057%2fadjusting-flow-map-styles-in-qgis%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
Thinking loud: Could you half the width of your arrows and then place them on one or the other side of your line? Like
CASE WHEN x(start_point($geometry)) - x(end_point($geometry)) < 0 THEN -0.5 ELSE 0.5 END
entered as "offset"-value (or use1
instead of0.5
). Or is that not desirable for your intended style?– Erik
2 days ago
Unfortunately, not that much, I have to have a good looking map for further investigations and research. Your idea makes sense, but not what I dream about.
– Taras
2 days ago
What's wrong with the direction and width of the arrows? It would help if you added an image of what you want the arrows to look like.
– csk
2 days ago