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))
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
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
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:
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
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
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
,
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