[OpenLayers-Users] Wrong area calculation

Dragan Podvezanec dragan.podvezanec at gmail.com
Wed Feb 17 03:40:51 EST 2010


Hi all.

I have one WFS layer from EPSG:31275, which is then reprojected to 900913
and overlayed on Google layer.

I noticed that polygon areas caculated with feature.geometry.getArea() are
wrong. Original layer is stored in database, and uses same units (meters),
so I'm sure about original feature area in DB.

What is strange is that areas are always 

those from DB * 2

For example: 

Original polygon area from DB: 812m2
Area calculated by feature.geometry.getArea(): 1624m2

Can someone point me what is wrong here? Is this due to reprojection, or
something else?
-- 
View this message in context: http://n2.nabble.com/Wrong-area-calculation-tp4584951p4584951.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list