Aligning road names in a row in QGIS
I am trying to align road names in a row, or column as much as possible in QGIS. I know it can be done in Adobe Illustrator with a mapping plugin, but I don't have the $$ for that.
I tried something like this but it didn't didn't seem to help.
This is an example:
It doesn't need to be exactly like that, but I'd like to do something similar.
qgis labeling
add a comment |
I am trying to align road names in a row, or column as much as possible in QGIS. I know it can be done in Adobe Illustrator with a mapping plugin, but I don't have the $$ for that.
I tried something like this but it didn't didn't seem to help.
This is an example:
It doesn't need to be exactly like that, but I'd like to do something similar.
qgis labeling
add a comment |
I am trying to align road names in a row, or column as much as possible in QGIS. I know it can be done in Adobe Illustrator with a mapping plugin, but I don't have the $$ for that.
I tried something like this but it didn't didn't seem to help.
This is an example:
It doesn't need to be exactly like that, but I'd like to do something similar.
qgis labeling
I am trying to align road names in a row, or column as much as possible in QGIS. I know it can be done in Adobe Illustrator with a mapping plugin, but I don't have the $$ for that.
I tried something like this but it didn't didn't seem to help.
This is an example:
It doesn't need to be exactly like that, but I'd like to do something similar.
qgis labeling
qgis labeling
edited 1 hour ago
Vince
14.4k32747
14.4k32747
asked 2 hours ago
Troy BuergeTroy Buerge
375
375
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
(1) Draw a line as the guide for the label position.
In this example this guideline
layer has an id field "fid"
with only one value (1
).
(2) Go to the Layer properties | Labels | Placement
.
There you will find Data defined | Coordinate X and Y
. Select Edit from each pull-down menu.
(3) Give an expression:
x
: x(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
y
: y(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
(4) As the final step, please hide the guideline. Select the guideline layer and change the symbology to No Symbols
.
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 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%2f309643%2faligning-road-names-in-a-row-in-qgis%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
(1) Draw a line as the guide for the label position.
In this example this guideline
layer has an id field "fid"
with only one value (1
).
(2) Go to the Layer properties | Labels | Placement
.
There you will find Data defined | Coordinate X and Y
. Select Edit from each pull-down menu.
(3) Give an expression:
x
: x(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
y
: y(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
(4) As the final step, please hide the guideline. Select the guideline layer and change the symbology to No Symbols
.
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 mins ago
add a comment |
(1) Draw a line as the guide for the label position.
In this example this guideline
layer has an id field "fid"
with only one value (1
).
(2) Go to the Layer properties | Labels | Placement
.
There you will find Data defined | Coordinate X and Y
. Select Edit from each pull-down menu.
(3) Give an expression:
x
: x(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
y
: y(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
(4) As the final step, please hide the guideline. Select the guideline layer and change the symbology to No Symbols
.
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 mins ago
add a comment |
(1) Draw a line as the guide for the label position.
In this example this guideline
layer has an id field "fid"
with only one value (1
).
(2) Go to the Layer properties | Labels | Placement
.
There you will find Data defined | Coordinate X and Y
. Select Edit from each pull-down menu.
(3) Give an expression:
x
: x(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
y
: y(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
(4) As the final step, please hide the guideline. Select the guideline layer and change the symbology to No Symbols
.
(1) Draw a line as the guide for the label position.
In this example this guideline
layer has an id field "fid"
with only one value (1
).
(2) Go to the Layer properties | Labels | Placement
.
There you will find Data defined | Coordinate X and Y
. Select Edit from each pull-down menu.
(3) Give an expression:
x
: x(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
y
: y(intersection($geometry, geometry(get_feature('guideline', 'fid', '1'))))
(4) As the final step, please hide the guideline. Select the guideline layer and change the symbology to No Symbols
.
answered 28 mins ago
KazuhitoKazuhito
14.7k31576
14.7k31576
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 mins ago
add a comment |
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 mins ago
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 mins ago
I'm always amazed at what we can do with the different functions/expressions. Another use case to remember!
– Gabriel C.
16 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%2f309643%2faligning-road-names-in-a-row-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