Using double offset in QGIS Expression String Builder?QGIS 2.2 expression string builder removes...
A torrent of foreign terms
Is this curved text blend possible in Illustrator?
Super Duper Vdd stiffening required on 555 timer, what is the best way?
How can God warn people of the upcoming rapture without disrupting society?
Generate Brainfuck for the numbers 1–255
Is there a SQL/english like language that lets you define formulations given some data?
Loading military units into ships optimally, using backtracking
Graphs for which a calculus student can reasonably compute the arclength
AsyncDictionary - Can you break thread safety?
How far did Gandalf and the Balrog drop from the bridge in Moria?
Specific: effect of rm -r /./*
Is there a standardised way to check fake news?
How can this older-style irrigation tee be replaced?
Is this n-speak?
Is there a command to install basic applications on Ubuntu 16.04?
How can I export the "available software to download" to a file?
How many people would you need to pull a whale over cobblestone streets?
Word for an event that will likely never happen again
How are you supposed to know the strumming pattern for a song from the "chord sheet music"?
Is it okay for a ticket seller in the USA to refuse to give you your change, keep it for themselves and claim it's a tip?
What is this "Table of astronomy" about?
TEMPO: play a sound in animated GIF/PDF/SVG
Simplification of numbers
Why command hierarchy, if the chain of command is standing next to each other?
Using double offset in QGIS Expression String Builder?
QGIS 2.2 expression string builder removes bracketsUsing expression string builder to ignore NULL values in QGIS?QGIS Expression builder cannot filterExpression string builder QGISUsing QGIS Expression String Builder to display selected multiple layers in a map in print composerRule-based symbols and Expression String BuilderHow to re-use an expression, stored as a string, in QGIS Field CalculatorQGIS Expression string builder has buggy textClipping Lines Using Expression in QGIS?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I need to dynamically translate points 20 metres from their original point to a suitable cartographic position. I have a rotation value stored in a rotation attribute.
I cannot use this tool right because I cannot give values when using the function cos ("rotation") * 20 or sin ("rotation") * 20
Only number inside '
(single quotation marks) are accepted. How I can use function inside double offset definition?
Sorry about Finnish interface!
qgis function
add a comment |
I need to dynamically translate points 20 metres from their original point to a suitable cartographic position. I have a rotation value stored in a rotation attribute.
I cannot use this tool right because I cannot give values when using the function cos ("rotation") * 20 or sin ("rotation") * 20
Only number inside '
(single quotation marks) are accepted. How I can use function inside double offset definition?
Sorry about Finnish interface!
qgis function
If you add a textfield to the feature containing something like20,50
the offset works.
– Erik
22 hours ago
add a comment |
I need to dynamically translate points 20 metres from their original point to a suitable cartographic position. I have a rotation value stored in a rotation attribute.
I cannot use this tool right because I cannot give values when using the function cos ("rotation") * 20 or sin ("rotation") * 20
Only number inside '
(single quotation marks) are accepted. How I can use function inside double offset definition?
Sorry about Finnish interface!
qgis function
I need to dynamically translate points 20 metres from their original point to a suitable cartographic position. I have a rotation value stored in a rotation attribute.
I cannot use this tool right because I cannot give values when using the function cos ("rotation") * 20 or sin ("rotation") * 20
Only number inside '
(single quotation marks) are accepted. How I can use function inside double offset definition?
Sorry about Finnish interface!
qgis function
qgis function
edited 14 hours ago
csk
14.1k13 silver badges37 bronze badges
14.1k13 silver badges37 bronze badges
asked 23 hours ago
MickelerMickeler
759 bronze badges
759 bronze badges
If you add a textfield to the feature containing something like20,50
the offset works.
– Erik
22 hours ago
add a comment |
If you add a textfield to the feature containing something like20,50
the offset works.
– Erik
22 hours ago
If you add a textfield to the feature containing something like
20,50
the offset works.– Erik
22 hours ago
If you add a textfield to the feature containing something like
20,50
the offset works.– Erik
22 hours ago
add a comment |
1 Answer
1
active
oldest
votes
You need to transform each number into string representations, and combine those with a comma. Based on your screenshot above, the proper expression would be:
to_string(cos("rotation")*20) || ',' || to_string(sin("rotation")*20)
yes, exactly! Thanks very much! =)
– Mickeler
22 hours 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%2f331699%2fusing-double-offset-in-qgis-expression-string-builder%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
You need to transform each number into string representations, and combine those with a comma. Based on your screenshot above, the proper expression would be:
to_string(cos("rotation")*20) || ',' || to_string(sin("rotation")*20)
yes, exactly! Thanks very much! =)
– Mickeler
22 hours ago
add a comment |
You need to transform each number into string representations, and combine those with a comma. Based on your screenshot above, the proper expression would be:
to_string(cos("rotation")*20) || ',' || to_string(sin("rotation")*20)
yes, exactly! Thanks very much! =)
– Mickeler
22 hours ago
add a comment |
You need to transform each number into string representations, and combine those with a comma. Based on your screenshot above, the proper expression would be:
to_string(cos("rotation")*20) || ',' || to_string(sin("rotation")*20)
You need to transform each number into string representations, and combine those with a comma. Based on your screenshot above, the proper expression would be:
to_string(cos("rotation")*20) || ',' || to_string(sin("rotation")*20)
answered 22 hours ago
nirvnnirvn
2901 silver badge6 bronze badges
2901 silver badge6 bronze badges
yes, exactly! Thanks very much! =)
– Mickeler
22 hours ago
add a comment |
yes, exactly! Thanks very much! =)
– Mickeler
22 hours ago
yes, exactly! Thanks very much! =)
– Mickeler
22 hours ago
yes, exactly! Thanks very much! =)
– Mickeler
22 hours 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%2f331699%2fusing-double-offset-in-qgis-expression-string-builder%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
If you add a textfield to the feature containing something like
20,50
the offset works.– Erik
22 hours ago