Sir, I have a label by showing three fields, for example: coalesce("Field1",'') || ' ' || coalesce("Field2",'') || ' ' || coalesce("Field3",''). I'd like to display different font sizes for the three fields (say, Field1 18, Field2 15, Field3 10), how could this be done in expression?
Thx you very much for this video! I have a question about the New version 3.14: A new function was added, although placement in x y is choosed, qgis let move label while i'm moving on the map, just for visual. Do you know how we can cancel this functionnality ?
Awesome and timely as I style my MTB maps, long video but full of nuggets of great info. Trying to force as many trail names to display is tricky. Some words are hidden even though there is space to show them. Still not sure what magic setting will reveal them. Anyone know?
Thanks for your video. i want the road labels of my map to become bigger while I zoom in and become smaller while I zoom out when the map is exported as JPG or PNG. (My map scale is 1:440016). Pls how can I achieve this? What I have done, Reduce font size to 6pts. Set placement mode to "curved" Placement position "above the line" Overlapping mode to "all overlaps without penalty" What I want, While zooming in or out, the label of the exported map become bigger or smaller respectively.
How about multilabeling big polygons. I can't find solution for labeling big polygons more than one. There is such option for lines but not for polygons.
You can do that with placement through the geometry generator (QGIS 3.12). Using: "combine( centroid($geometry), pole_of_inaccessibility($geometry,3))" will generate two points at the centroid and the pole of inaccessibility. You can build your own multipoint geometry and use that for placement, but you can also generate multiline or multipolygon geometries if that better suits your needs.
Good Video Klas. Thank you. One thing I was hoping to learn was how to position the start of text on a curved path. The Label toolbar doesn't seem to address this. Currently my workaround is to draw a curve specifically for placing text. Also, while your video focused on the Map View, I think it would have been useful to note that working at the same scale as the map in Print Layout can help get predictable text placement for output.
Well, using 3.12 you could use the geometry generator for label placement: line_substring( $geometry, $length/3, 2*$length/3) The above expression will place the label on the middle third of the line (starting at 1/3 and ending at 2/3).
@@KlasKarlsson The line substring geometry expression is helpful. Thank you. I'm able to label curved lines globally using layer styling using this method. From the Label Properties in Label Tools, I don't see a geometry generator option for a specific text string. Thanks for your reply though.
The point with offsetting labels and using labels is to move labels to a place where they work better. This is usually individual, and therefor require manual placement. If you want to move all labels the same way you can use a geometry generator with a "project()" function for the label placement, and the same function with the original point and "make_line()" function in another geometry generator for the point style. That way all your labels will be offset with a leader. This can be individualized by modifying the expressions, but that will also require individual handling, more or less.
You need to select a "primary key" that is unique for every single label. This is the value that is referenced to the new location. If more than one label is referenced (the same key value) they all will be assigned the new location. If your layer have a "id" field that is unique and indexed you should use that as primary key. All edits will be stored in the project file in a database (*.qgd) and the original data will be untouched.
I'm not sure what you mean. The labels are created using the texts and values in the attribute table. If the the table have text in Spanish, the labels will be Spanish. There's no function in QGIS to translate languages. If you have some "translating" API you could edit the attribute table and add columns with texts in another language. That is however not a QGIS issue and you may want to look for it some where else.
THANK YOU SO MUSH ... i have very important (Q) WHEN I EXPORT MY MAP with qgis2web many of my label not show until i zoom in to max level of zoom ...please can you help me i spent 1 month and cant solve the problem
In the layer properties dialogue you can "save style as default" with a button in the lower part of the window. Depending on the layer file format this will save the style (including label) in the file database or as a side-car file with the same file name. As long as the files/database is opened in QGIS, the saved default style will be applied. This have to be done after any export to shape.
I switch some, but this was probably something Gnome based and pretty likely also based on Ubuntu. At the moment I use Pop!_OS normally and Zorin for streaming and recording.
Layer Rendering settings: set "refresh" layer at interval (like 1 s). And Label Rendering settings "Show label" with data defined override like: "second(now())%2" This will "blink" the label with 1 second frequency.
To Mr. Karlsson or any other kind soul: The formula x = (offset)*sin("rotation") & y= (offset)*cos("rotation"). This is to align an offset label for a point that has been rotated with the field "rotation". i would like to know what's the logic behind it or a place where there's an explanation to for it. Please >;D
I think your channel is one of the best for QGIS students. Thank you very much!
Impressive lesson! Crammed with info and you make it so enjoyable and easy to understand.
Thank you very much for this!
I'm only halfway through, but this already deserves an Oscar.
It's a fantastic video. Every time I watch one of your video tutorials I learn new things. Thank you
This is a great video. I have learnt so much about a very complex aspect. Many Many thanks for producing it
I wish we were friends! Thanks for great content! I just subscribed! Greetings from Jämtland!
Very helpful video tutorials! Thank you for your time. I have QGIS 3.4.4 Madeira and I don't have CALLOUTS.
I did reach the end of the video. Excellent work. Thank you :)
Fantastisk video. Tack!
Greetings from Colombia! I learned a lot.
me too
you channel is very good for students in qgis thank you
Thank Klas! It's always a delight, tons of new insights!
Thank you again. I learned a lot from this video. I would like to see something in interfacing with databases. DBManager etc.
Tack tack de bra lessor. Clear for first time user
You are a very good teacher! Congratulations!
You are a really good teacher! I would love to be in one your class!
Pretty good...thanks for your time on it!!!
Sir Your knowledge helped me alott for Completing my Assignment. Thankyouu very Muchhh... Love from India.❣️❣️
your channel is fantastic! Thank you!
👍Thank you for your detailed explanation!
Can I Uniq ID label automatically from northwest to southeast for adjacent polygons
Great stuff. Can you automate callout placement to check for overlaps and adjust?
Sir, I have a label by showing three fields, for example: coalesce("Field1",'') || '
' || coalesce("Field2",'') || '
' || coalesce("Field3",''). I'd like to display different font sizes for the three fields (say, Field1 18, Field2 15, Field3 10), how could this be done in expression?
Thx you very much for this video!
I have a question about the New version 3.14:
A new function was added, although placement in x y is choosed, qgis let move label while i'm moving on the map, just for visual. Do you know how we can cancel this functionnality ?
Dear Klas, I want to show FID code on map, but want to show in legend like this 1.School etc please do a video on this too.
Hello, can you kindly tell me how to give the index number (map sheets) for topographic 100K?
Awesome and timely as I style my MTB maps, long video but full of nuggets of great info. Trying to force as many trail names to display is tricky. Some words are hidden even though there is space to show them. Still not sure what magic setting will reveal them. Anyone know?
Another great video - thanks Klas!
Good Videos. Can I request to you for a video showing Spot Mapping of Houses in a certain town using coordinates? Thankyou.
Hi Mr. Klas, may you help me with obtaining a nice colour map of bathymetric data from a PTS file (x,y,z)?
Thanks for your video. i want the road labels of my map to become bigger while I zoom in and become smaller while I zoom out when the map is exported as JPG or PNG. (My map scale is 1:440016). Pls how can I achieve this?
What I have done,
Reduce font size to 6pts.
Set placement mode to "curved"
Placement position "above the line"
Overlapping mode to "all overlaps without penalty"
What I want,
While zooming in or out, the label of the exported map become bigger or smaller respectively.
Experiment with font size in "map units" instead of pts.
Ca someone direct me to the time sot for hiding individual labels? Thanks!
How about multilabeling big polygons.
I can't find solution for labeling big polygons more than one. There is such option for lines but not for polygons.
You can do that with placement through the geometry generator (QGIS 3.12).
Using: "combine( centroid($geometry), pole_of_inaccessibility($geometry,3))" will generate two points at the centroid and the pole of inaccessibility. You can build your own multipoint geometry and use that for placement, but you can also generate multiline or multipolygon geometries if that better suits your needs.
Good Video Klas. Thank you. One thing I was hoping to learn was how to position the start of text on a curved path. The Label toolbar doesn't seem to address this. Currently my workaround is to draw a curve specifically for placing text. Also, while your video focused on the Map View, I think it would have been useful to note that working at the same scale as the map in Print Layout can help get predictable text placement for output.
Well, using 3.12 you could use the geometry generator for label placement:
line_substring( $geometry, $length/3, 2*$length/3)
The above expression will place the label on the middle third of the line (starting at 1/3 and ending at 2/3).
@@KlasKarlsson The line substring geometry expression is helpful. Thank you. I'm able to label curved lines globally using layer styling using this method. From the Label Properties in Label Tools, I don't see a geometry generator option for a specific text string. Thanks for your reply though.
can you make a video about bringing a qgis project with a wms service online? with qgis server or geoserver
How I could use the callouts but automatically?? for example when I have large amounts of points? thanks a lot!
The point with offsetting labels and using labels is to move labels to a place where they work better. This is usually individual, and therefor require manual placement. If you want to move all labels the same way you can use a geometry generator with a "project()" function for the label placement, and the same function with the original point and "make_line()" function in another geometry generator for the point style. That way all your labels will be offset with a leader. This can be individualized by modifying the expressions, but that will also require individual handling, more or less.
@@KlasKarlsson thanks a lot
Anyone know how to label date in dd.mmm.yyyy format? It shows 5 digit number like 44539 when i need 09.12.2021
docs.qgis.org/testing/en/docs/user_manual/expressions/functions_list.html#format-date
How I will change a particular lebel ?
I have this problem, when I try to move one label to a new location all other labels move to that new location, what could be happening?
You need to select a "primary key" that is unique for every single label. This is the value that is referenced to the new location. If more than one label is referenced (the same key value) they all will be assigned the new location. If your layer have a "id" field that is unique and indexed you should use that as primary key. All edits will be stored in the project file in a database (*.qgd) and the original data will be untouched.
@@KlasKarlsson oh god it was so simple, I didn't notice it. Thank you so much! Solved
Sir, how we do change the Labels Languages in QGIS. Without edit the Database/Dataset manually
Perhaps we should add several details such as few formula in Expression settings or ...... ??
I'm not sure what you mean. The labels are created using the texts and values in the attribute table. If the the table have text in Spanish, the labels will be Spanish. There's no function in QGIS to translate languages. If you have some "translating" API you could edit the attribute table and add columns with texts in another language. That is however not a QGIS issue and you may want to look for it some where else.
thanks sir
THANK YOU SO MUSH ... i have very important (Q) WHEN I EXPORT MY MAP with qgis2web many of my label not show until i zoom in to max level of zoom ...please can you help me i spent 1 month and cant solve the problem
You need to look for answers at github.com/tomchadwin/qgis2web/wiki
Hi! how do you export a shapefile with the labels on? Thanks!
In the layer properties dialogue you can "save style as default" with a button in the lower part of the window. Depending on the layer file format this will save the style (including label) in the file database or as a side-car file with the same file name. As long as the files/database is opened in QGIS, the saved default style will be applied. This have to be done after any export to shape.
@@KlasKarlsson hi im trying to export it as geojson but the labels were gone
Intriguing as always👍🏻👍🏻👍🏻, keep it up. Can anyone tell me how to make multi polygons raster using just long/lat coordinates point from CSV data file?
Hi. Thanks a lot for the knowledge sharing, love your work. May I ask which operating system do you use?
I switch some, but this was probably something Gnome based and pretty likely also based on Ubuntu. At the moment I use Pop!_OS normally and Zorin for streaming and recording.
@@KlasKarlsson thanks :) keep up the good work :)
Sir pls make a playlist on different topic so that we can learn from basic function to advanced
Thank you
Sir please tell me
How to create blinking of layer text
Layer Rendering settings: set "refresh" layer at interval (like 1 s).
And Label Rendering settings "Show label" with data defined override like: "second(now())%2"
This will "blink" the label with 1 second frequency.
@@KlasKarlsson thnq sir
Sir i have a problem
When iam applied for one layer ..but another layers also blinking automatically
Thanks, great! nice fiction.
Can u pls guide me How to Give measured offset from Centerline to both sides just like Arc/gis ?
Do you have an example to show what you mean?
@@KlasKarlsson yes actually I drawed a road Centerline and I need both side 3 metres offset I am using offset curve tool but that's not working
Can I get your email so that I could sent you screen shot
@@sharmamanish024 try the "Array of offset" function with only one array using + and - 3 meters as offset.
@@KlasKarlsson Hiii I wanted to show u array function it's not working how can I show you screenshot ?
To Mr. Karlsson or any other kind soul: The formula x = (offset)*sin("rotation") & y= (offset)*cos("rotation"). This is to align an offset label for a point that has been rotated with the field "rotation". i would like to know what's the logic behind it or a place where there's an explanation to for it. Please >;D
thanks again and again
Tack Klas!