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;
}







1















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?



enter image description here



Sorry about Finnish interface!



enter image description here










share|improve this question



























  • If you add a textfield to the feature containing something like 20,50 the offset works.

    – Erik
    22 hours ago


















1















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?



enter image description here



Sorry about Finnish interface!



enter image description here










share|improve this question



























  • If you add a textfield to the feature containing something like 20,50 the offset works.

    – Erik
    22 hours ago














1












1








1








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?



enter image description here



Sorry about Finnish interface!



enter image description here










share|improve this question
















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?



enter image description here



Sorry about Finnish interface!



enter image description here







qgis function






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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

















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










1 Answer
1






active

oldest

votes


















5














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)





share|improve this answer


























  • yes, exactly! Thanks very much! =)

    – Mickeler
    22 hours ago














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
});


}
});














draft saved

draft discarded


















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









5














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)





share|improve this answer


























  • yes, exactly! Thanks very much! =)

    – Mickeler
    22 hours ago
















5














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)





share|improve this answer


























  • yes, exactly! Thanks very much! =)

    – Mickeler
    22 hours ago














5












5








5







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)





share|improve this answer













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)






share|improve this answer












share|improve this answer



share|improve this answer










answered 22 hours ago









nirvnnirvn

2901 silver badge6 bronze badges




2901 silver badge6 bronze badges
















  • 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





yes, exactly! Thanks very much! =)

– Mickeler
22 hours ago


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...