Closed crisjf closed 3 years ago
@RELNO you might also want to take a look at this
How can I reproduce it? How do I produce a grid with no height? I don't understand how it can impact the envelope
function
@crisjf
In general, the height will not be specified in GEOGRID
I actually think it does, see https://cityio.media.mit.edu/api/table/dungeonmaster/GEOGRID
@agrignard point the model to the table dungeona
@RELNO, see this table: https://cityio.media.mit.edu/api/table/dungeona/GEOGRID
@crisjf -- I do see height
attr, am I missing something?
Not all of them have height, which breaks the envelope
function.
I think this has to do with the table constructor allowing for some types not to declare a height. See the example below, where Park
does not have a height.
I'm gonna close this for now. The error is still there with dungeona
but I've tried to reproduce it with three other fresh tables and I've gotten no error so far.
The line:
geometry shape <- envelope(geogrid);
breaks when the geogrid object has no height. In general, the height will not be specified inGEOGRID
, so we need to make sure the model does not crash if this is the case.I created a table called
dungeona
to test this. This table has some cells with height and some cells without height.dungeonmaster
happens to have all cells with height initially.