[Qgis-user] extracting coordinates for multiple points
Alex Mandel
tech_dev at wildintellect.com
Tue Jul 28 16:11:55 PDT 2009
Jens Kruger wrote:
> Hi,
>
> I have digitised some points on a map. I have edited the attribute table
> to hold columns named latitude and longitude. I would like to fill these
> columns with the corresponding coordinates of the points. Something like
> 'update column latitude with centroid(y) from object'.
>
> I can work around this using the 'coordinate capture' plugin, but it is
> really not suitable as I have many points.
>
> If there is no straight forward solution perhaps Python can help? But I
> would be unsure where to start.
>
> Many thanks in advance for your help, Jens
>
> ----------------
> Jens Kruger
The ftools plugin can handle this under Tools-> Geometry Tools ->
Export/Add geometry column. This won't do centroids though it's just x,y
for points I think.
So yes whatever you want can be done via python.
Alex
More information about the Qgis-user
mailing list