label vertices of polygon

555 views
Skip to first unread message

Barrett Higman

unread,
Jul 31, 2016, 8:51:38 PM7/31/16
to australian-qg...@googlegroups.com

Hi all,

 

Does anyone know if it is possible to label the vertices of a polygon (for example, with their coordinates) without having to turn them into a point layer first?

 

Cheers,

Barrett

 

 

 

Barrett Higman
GIS and Assets Officer  

(03) 5755 0555

Alpine Shire Council

ABN 14 821 390 281
2 Churchill Avenue, Bright
PO Box 139, Bright, VIC, 3741

This transmission is confidential. This email, including any attachments, is for the original addressees only. Any use, copying or disclosure by any other person is prohibited. If you have received this transmission in error, please delete this message and notify us by email immediately at in...@alpineshire.vic.gov.au 

 

Bryce Touchstone

unread,
Jul 31, 2016, 9:09:27 PM7/31/16
to australian-qg...@googlegroups.com
Gheez, that would be tricky.
Isn't there a way to label polygon vertices with a 0 or 1 depending on whether they are mid-points or end-points, respectively? 
Crap, that would still probably involve translating them.

I highly doubt it, Barrett, given that I'm not sure how to label parts of an individual feature separately, which is essentially what you are trying to do here.

Good luck,
Bryce

Bryce Touchstone
 
The prudent see danger and take refuge, but the simple keep going and suffer for it.
Proverbs 27:12


--
You received this message because you are subscribed to the Google Groups "Australian and New Zealand QGIS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To post to this group, send email to australian-qg...@googlegroups.com.
Visit this group at https://groups.google.com/group/australian-qgis-user-group.
To view this discussion on the web, visit https://groups.google.com/d/msgid/australian-qgis-user-group/907be35a0e7d41ae88c2a57a5a7941d8%40Exchange.alpineshire.vic.gov.au.
For more options, visit https://groups.google.com/d/optout.

Bill Williamson

unread,
Aug 1, 2016, 1:58:48 AM8/1/16
to Australian and New Zealand QGIS User Group
Don't have much a clue but I think we need more a real world example to understand the application Barrett. You've seen the Geometry Functions in the labelling dialog?


Barrett Higman

unread,
Aug 1, 2016, 2:11:38 AM8/1/16
to australian-qg...@googlegroups.com

I ended up going for the data conversion option as I had to get it out the door, however, I did discover the nodes_to_points function which possibly could have helped, I just didn’t have time to investigate… and now I’m on to other things J.

 

Bill – I just had someone ask for the coordinates of title boundary corners so that they could get an idea of where the boundary is when they’re out in the field with a GPS. They are reasonably old school so they just wanted a hardcopy map with coords labelled.

 

Incidentally I did have time to quickly muck around with transforming the CRS of the coord labels on-the-fly from their native Cartesian coords to lat/lon. In case anyone is interested I used the following:

 

round(x(transform($geometry , 'EPSG:28355', 'EPSG:4326')), 6)  ||  '\n'  || round(y(transform($geometry , 'EPSG:28355', 'EPSG:4326')), 6)

 

Cheers,

Barrett

 

 

Barrett Higman
GIS and Assets Officer  

(03) 5755 0555

Alpine Shire Council

ABN 14 821 390 281
2 Churchill Avenue, Bright
PO Box 139, Bright, VIC, 3741

This transmission is confidential. This email, including any attachments, is for the original addressees only. Any use, copying or disclosure by any other person is prohibited. If you have received this transmission in error, please delete this message and notify us by email immediately at in...@alpineshire.vic.gov.au 

 


This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient, please delete it and notify the sender. Views expressed in this message are those of the individual sender, and are not necessarily the views of their organisation.

--
You received this message because you are subscribed to the Google Groups "Australian and New Zealand QGIS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to australian-qgis-use...@googlegroups.com.
To post to this group, send email to australian-qg...@googlegroups.com.
Visit this group at https://groups.google.com/group/australian-qgis-user-group.

Bill Williamson

unread,
Aug 2, 2016, 1:58:18 AM8/2/16
to Australian and New Zealand QGIS User Group
Good to know, ta

Nyall Dawson

unread,
Aug 4, 2016, 5:53:53 PM8/4/16
to Australian and New Zealand QGIS User Group


On Monday, 1 August 2016 10:51:38 UTC+10, Barrett Higman wrote:

Hi all,

 

Does anyone know if it is possible to label the vertices of a polygon (for example, with their coordinates) without having to turn them into a point layer first?


Not yet - 

What's needed here is an equivalent of 2.14's symbology "geometry generators" (or was that introduced in 2.16? I lose track...), but for labeling.

If this was implemented then the geometry of a feature could be modified just when it is being used for the labeling engine, ie using the nodes_to_points function to convert a line/polygon's vertices into points, which are then labeled just like points would be.

This would open up a TON of possibilities for cartography in QGIS, such as using a smooth/simplify function on a line feature to get nicer curved labels, using a secondary geometry column for curved labels inside water bodies/oceans, etc.

It's been discussed a lot within the QGIS development community, but we're needing someone to raise their hand and provide funding so that this can get implemented. This could be a good opportunity for the Australian QGIS community to band together and support the project through this sponsorship!

Cheers,
Nyall

 
Reply all
Reply to author
Forward
0 new messages