NHE: Fix issues in common/geo and implement Polygon class

Bug #925332 reported by Anton Gritsay
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
High
Anton Gritsay

Bug Description

Polygon objects should represent an area on Earth surface and support covering the area with an uniformly-spaced grid.

Issues to be fixed:
* common.geo should use only one Geod object for all the geodetic transformations.
* Point.get_equally_spaced_points() calculates azimuth to target point only once and uses it to sequentially create intermediate points. That results in final point being off by latitude if source and/or destination points are not on equator.
* common.geo is not fully test-covered.
* Line object self-intersection check can fail with both false negative and false positive results if line crosses the international date line.
* Line and polygon objects should check that their points are spread no further than 180 degrees by longitude.

Anton Gritsay (angri)
description: updated
Anton Gritsay (angri)
description: updated
Anton Gritsay (angri)
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.