Re: [Qgis-user] Centroid of polygon

2014-08-05 Thread Andreas Neumann
Hi, For me it is very strange that x(centroid($geometry)) y(centroid($geometry)) does not work in the QGIS expressions. There is a $x and $y - but this does only work directly on a current feature if it is a point feature. The workaround with xmin/ymin xmin(centroid($geometry))

[Qgis-user] Centroid of polygon

2014-08-04 Thread Jonathan Moules
Hi list, Quick question, how do you use the Field Calculator to get the centroid as an attribute? I'm aware of this question answer: http://gis.stackexchange.com/questions/11705/using-field-calculator-in-qgis-to-update-columns-with-centroid-coordinates - but want to do it using just the field

Re: [Qgis-user] Centroid of polygon

2014-08-04 Thread Carlos Cerdán
Jonathan Not a nice sentence, but you can use min or max: ymin( centroid( $geometry ) ) xmin( centroid( $geometry ) ) Carlos 2014-08-04 11:28 GMT-05:00 Jonathan Moules jonathanmou...@warwickshire.gov.uk: Hi list, Quick question, how do you use the Field Calculator to get the

Re: [Qgis-user] Centroid of polygon

2014-08-04 Thread Goyo
This works in master: xmin(centroid($geometry)) ymin(centroid($geometry)) Goyo 2014-08-04 18:28 GMT+02:00 Jonathan Moules jonathanmou...@warwickshire.gov.uk: Hi list, Quick question, how do you use the Field Calculator to get the centroid as an attribute? I'm aware of this question answer:

Re: [Qgis-user] Centroid error

2013-09-02 Thread Bernd Vogelgesang
Hi Paddy, i doubt that you can set a tolerance somewhere. As a general hint: use functions provided by SEXTANTE-plugin/Processing. Most of the time, they perform much better than the standard ftools functions, and you don't litter your project with tons of test-files as the output is

Re: [Qgis-user] Centroid error

2013-09-02 Thread Pat Brown
Thanks Bernd, I will look at the options you suggested and give them a try. Paddy On 2 September 2013 20:39, Bernd Vogelgesang bernd.vogelges...@gmx.dewrote: Hi Paddy, i doubt that you can set a tolerance somewhere. As a general hint: use functions provided by

Re: [Qgis-user] centroid

2009-02-16 Thread G. Allegri
is there any autocomplete for a line to create polygons from lines to adjacent polygon. In GRASS you can use: # v.type in=input_lines out=output_boundary type=line,boundary and then add centroids to the created boundaries with something like (I'm going with memory, you should check the

Re: [Qgis-user] centroid

2009-02-16 Thread John C. Tull
, John CC: qgis-user@lists.osgeo.org; gioha...@gmail.com From: john.t...@wildnevada.org To: ambi...@hotmail.com Subject: Re: [Qgis-user] centroid Date: Mon, 16 Feb 2009 18:24:36 -0800 I think this is the solution you wanted. You were not clear about doing this with the GRASS Tools plugin