1

I need to add polygon centroids to vector grid but I can't... I have output grid like polygon, but I can't choose layer to make centroids

I need it for R studio and pollution model of city.

QGIS 2,4,0

QGIS Polygon centroids

  • I am not sure what do you want but perhaps you need gCentroid from rgeos package in R. With this,if you have a polygon you can find the centroid of it. – geo_dd Mar 10 '15 at 16:37
  • ive made vector grid and i need to make centeroid in each cell but with vector > geometry tools > polygon centeroids i cant choose grid layer – ABCD Mar 10 '15 at 16:57
4

Your grid is not made of polygons. I suspect its lines. Check the "geometry type" section of the metadata section of the layer properties. I'll wager its not "Polygon"...

If you made it with the "Vector Grid" tool then you should have ticked "Output grid as polygons" instead of "Output grid as lines".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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