Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

If I load a polygon layer and make a new column, how do I fill that column with the 1) area of each polygon and another column with 2) the length of the perimeter of each polygon?

share|improve this question

2 Answers

up vote 9 down vote accepted

Open field calculator, select the new column and type the following expression

  • For area: $area
  • For perimeter: $perimeter

Make sure your layer is in a projected coordinate system (not lat/long ) and in correct units. ( i.e. if your layer's projection has 'meters' as units, your area will be square meters )

share|improve this answer
Are there other functions that begin with $? – HealthMaps Jul 24 '12 at 4:58
1  
Many actually, you'll see them in the field calculator. in QGIS 1.8, it's nicely organized under 'function list' in field calculator – spatialthoughts Jul 24 '12 at 5:49

You also can use fTools: Vector menu -> Geometry Tools -> Export/Add geometry columns

It updates your layer automatically by adding AREA and PERIMETER columns.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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