Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

In QGIS, if I have some nodes with a name attribute is there a way to display only one node that would be in the middle of this group of nodes having the same name?

For example, let's say i have 3 nodes with an attribute "ABC" I would like to display one node what would be in the middle of this group.

share|improve this question

2 Answers 2

A static solution would be to use Vector-->Geoprocessing tools-->Convex hull(s); Select 'Create convex hulls based on input values' and select your attribute field; Then change the style of the polygons to 'Centroid field', or create centroids from the polygons. The latter option is one extra step, but will probably give you better options for labeling.

If you need a dynamic solution, I beleive this could be handled py postGis or spatiaLite pretty easily.

share|improve this answer

Thank you for your answer but it's not working exactly like what I was waiting for.

If i filter them by the name attribute, let's say create a Convex hull withe all the nodes having the same name, it will create those Convex hulls, but it will not keep attributes, not even the name, and then creating centroid fields i only get a few nodes not corresponding at all with the nodes areas I already have.

I will ask a friend of mine if he know a SQL command for this to make a rule based rendering directly in QGIS.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.