Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Possible Duplicate:
Automated correction of parcel geometry based on area measure

I need a function to modify area polygon in postgres the major probleme is automated correction of parcel geometry based
on area measure, so i need to modify area polygone in postgres any help is welcome thanks in advance.

share|improve this question

marked as duplicate by underdark Sep 26 '11 at 17:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
the major probleme is automated correction of parcel geometry based on area measure, so i need to modify area polygone in postgres any help is welcome thanks in advance. –  geo_mte Sep 26 '11 at 15:54

1 Answer 1

I suppose that you have a column area which contains old data. In that case you could: remove the column and calculate the area directly when you need it, or (if your dataset is not changing anymore) you could update the area column specifically:

UPDATE mydata set area=ST_area(geometry) WHERE xxx;
share|improve this answer

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