Closed mattia-leone closed 5 years ago
An alternative would be to allow users to choose an area as long as part of it is within a city area. Not sure if the calculations woudl perform properly in this case -- @humerh , WDYT?
@therter Is that error message coming from the map component? Why is it even possible, to select a study area outside of the city polygon?
From my side I see no problem.
I can import the envelope of the city polygon instead of the detailed polygon. This should solve the problem. Should I do this?
This should solve the problem.
I don't think so. What happens if somebody selects a study area in the gulf of Naples? What would the model calculate then? Nothing useful I suppose.
As Denis suggested we should check whether the study area intersects with the city polygon. ATM you are checking for "contains", right?
As Denis suggested we should check whether the study area intersects with the city polygon. ATM you are checking for "contains", right?
That is right, but I can change this.
So this is done?
Yes, this is done
Selecting a box with a portion in the sea creates this issue
The portion of sea should be included in the city borders to perform the study