3

I want to use Centroid option in field calculator in QGis .How to access it?

Arun
  • 1,462
  • 6
  • 21
  • 37

2 Answers2

2

Try this post as a very similar question was asked:

Using Field Calculator in QGIS to update columns with centroid coordinates

Seems back then it wasn't possible to use field calculator in this way for polygons, but Underdark published a work round.

ian
  • 1,713
  • 1
  • 11
  • 21
  • I'm interested in seeing if there's a 'real' answer (without a workaround) to this question now, as I see there's a 'centroid' function in the field calculator which I don't think was there before. However, I played with it, and am also unclear on the syntax. Perhaps there is a better answer to this question after all, using 1.9.0 Master.) – Darren Cope Aug 30 '13 at 12:17
-2

right-click on vector layer in TOC --> open attribute table --> toggle editing mode (blue pencil icon) --> open field calculator

have you seen the following post: How to determine the centroid of polygons?

geo derek
  • 505
  • 1
  • 4
  • 19
  • that and all even i know but inside field calculator what sql command i should give i am asking that? – Arun Aug 29 '13 at 12:05