AIFDR / riab

Risk in a Box - main project
Other
17 stars 6 forks source link

centroids not accurate at the building footprint level #140

Closed uniomni closed 13 years ago

uniomni commented 13 years ago

Although centroids are computed correctly at e.g. village level, they are not right at the building footprint level. In some case they even appear outside the building.

uniomni commented 13 years ago

The reason is that small rounding errors for large values of coordinates (i.e. longitude = 106) accumulate. The solution is to normalise coordinates to their origins before calculating.