Opened 14 years ago
Closed 13 years ago
#810 closed enhancement (fixed)
Increare accuracy of area calculation
Reported by: | hopfgartner | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
In the case of polygons which are "far" away from the origin, as happens frequently in projected SRS, the applied change may increase the accuracy of the area calculation by some order of magnitude. Doing some tests on UTM32N geometries and comparing the result with the result calculated with a routine written with http://de.php.net/manual/en/book.bc.php the accuracy improved by 4 to 5 orders of magnitude. The patch is against PostGIS 1.5.2.
Attachments (2)
Change History (7)
by , 14 years ago
Attachment: | postgis-area.patch added |
---|
comment:1 by , 13 years ago
Milestone: | PostGIS 1.5.3 → PostGIS 2.0.0 |
---|
comment:2 by , 13 years ago
Version: | 1.5.X → trunk |
---|
by , 13 years ago
Attachment: | lwpoly.c.diff added |
---|
comment:3 by , 13 years ago
This implements the same formula as the patches submitted to JTS, http://sourceforge.net/mailarchive/forum.php?thread_name=4E8F2EE8.6010505%40telus.net&forum_name=jts-topo-suite-user, and GEOS, http://trac.osgeo.org/geos/ticket/485.
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sounds good to me. Would you feel like attaching an updated patch against trunk and make sure the regression test still passes all ? Even better if you could _add_ a test in the existing tickets.sql file.