Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Aggregation Problem - ValueError #468

Closed
vanpuk opened this Issue · 4 comments

3 participants

@vanpuk
Owner

Aggregation for:
Hazard: Maumere Tsunami
Exposure: buildings
by: village (desa)
data found: https://github.com/AIFDR/inasafe/blob/aggregation/files/Maumere.zip
Has come across and Error:
An exception occurred when post processing the results, Problem ValueError total size of new array must be unchanged
Diagnostic:
File "C:\Documents and Settings\vanpuk.qgis\python\plugins\inasafe-dev\safe_qgis\dock.py", line 1535, in postProcess
self._aggregateResults()
File "C:\Documents and Settings\vanpuk.qgis\python\plugins\inasafe-dev\safe_qgis\dock.py", line 1777, in _aggregateResults
self._aggregateResultsVector(myQGISImpactLayer)
File "C:\Documents and Settings\vanpuk.qgis\python\plugins\inasafe-dev\safe_qgis\dock.py", line 1925, in _aggregateResultsVector
check_input=True)
File "C:\Documents and Settings\vanpuk.qgis\python\plugins\inasafe-dev\safe\common\polygon.py", line 492, in in_and_outside_polygon
check_input=check_input)
File "C:\Documents and Settings\vanpuk.qgis\python\plugins\inasafe-dev\safe\common\polygon.py", line 120, in separate_points_by_polygon
points = numpy.reshape(points, (1, 2))
File "C:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\numpy\core\fromnumeric.py", line 170, in reshape
return reshape(newshape, order=order)

@mbernasocchi mbernasocchi was assigned
@vanpuk
Owner

Please note that the population aggregation for this scenario works perfectly!!!

@vanpuk vanpuk referenced this issue from a commit
@vanpuk vanpuk test data for issue #468 ff2187a
@mbernasocchi

@uniomni can you have a look at this?

@uniomni uniomni was assigned
@uniomni
Owner

Will do

@mbernasocchi

error not reproducible anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.