Error creating rupture enclosing polygon from area source
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Critical
|
Lars Butler |
Bug Description
Traceback (most recent call last):
File "bin/openquake", line 467, in <module>
main()
File "bin/openquake", line 447, in main
args.
File "bin/openquake", line 219, in run_hazard
completed_job = engine2.
File "/usr/local/
return _run_calc(job, log_level, log_file, exports, calc, 'hazard')
File "/usr/local/
_do_
File "/usr/local/
calc.
File "/usr/local/
self.
File "/usr/local/
src_
File "/usr/lib/
res = func(*args, **kwargs)
File "/usr/local/
geom = nhlib_src.
File "/usr/local/
return self.polygon.
File "/usr/local/
return type(self)
File "/usr/local/
xx, yy = numpy.transpose
File "/usr/lib/
"Multi-part geometries do not provide a coordinate sequence")
NotImplementedE
This error originated from an area source, represented by a polygon which is rather convex. When we tried to dilate the polygon (`get_rupture_
There are two possible actions to address this error:
1) Give a more precise error message to the user, explaining which source, including ID and name, caused the error.
2) If the rupture enclosing polygon is a multipolygon, take the exterior of the shape so as to not include the hole. This is valid because the rupture enclosing polygon is only considered in site-to-source distance filtering.
Changed in openquake: | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Lars Butler (lars-butler) |
milestone: | none → 0.9.0 |
status: | Confirmed → In Progress |
Changed in openquake: | |
importance: | High → Critical |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
Patch: https:/ /github. com/gem/ nhlib/pull/ 83