02-14-2018 08:51 AM
I would like to create a model to extract geometric information (coordinates of the central point ,area, ecc) from an AOI (selected in the 2D view by the user).
I need this information from the user in order to run other submodels.
I did something like this:
The operator Raster Input 2 is connected with a static image, not selected by the user. If for example the AOI of the user is somewhere in Italy, Raster Input 2 willcover all the italian territory.
It works but is a bit slow. Do you know any quicker solution?
Thank you very much
02-21-2018 01:24 AM - edited 02-21-2018 01:44 AM
To make it process faster, you would need to use shapefile or Boundary Box as input instead of AOI. Using the AOI would just replace area out of it with NoData maintaining the raster size(height and width) and if you are using big data input, so it will be time-consuming to process.
There is a good idea that can be posted on our Ideation board: to read AOI through Features Input so that via Features Information operator you would be able to force boundary recalculation.
So if that would be appropriate for you, you can use the same approach but with an Inquire Box snapped to the AOI. You bring it to your model via Boundary Input operator or just as I did below. Then the user will be able to bring coordinates via the Inquire Box from the Viewer.
OR you can use both inquire box and AOI, not very convenient as you would need to set the extent via Inquire Box each time you wanted to run the model with a different AOI.
03-01-2018 02:38 AM
There is separate Boundary Input operator
As well as in Properties of Raster Input operator you can activate MapBoundary or FileBoundary input ports.
And then you are attaching Port Input to the one you've picked and when running your model, you can or manually specify coordinates or get from Inquire Box in the Viewer.