Hexagon Geospatial
MENU

Spatial Modeler

Discuss topics with other Hexagon Geospatial Product pioneers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 7
Registered: ‎12-05-2018
Accepted Solution

Two rasters with overlay: how to keep the overlay area as a new raster (Spatial Modeler)

Hi!

 

I have two rasters with an overlay area and I want to keep only this area in a new raster. How can I do it?

 

After that, I would like to create a shapefile or other vector format from this overlay raster, to use as a boundary. Is that possible?

 

(Both things, using Spatial Modeler)

 

Thanks!

 

 

Technical Evangelist
Posts: 665
Registered: ‎10-01-2015

Re: Two rasters with overlay: how to keep the overlay area as a new raster (Spatial Modeler)

Do you mean like a combination of these two models?:

 

http://community.hexagongeospatial.com/t5/Spatial-Modeler-Tutorials/Generate-Footprint-for-Ortho-ima...

 

http://community.hexagongeospatial.com/t5/Spatial-Modeler-Tutorials/Subset-Image-by-Polygonal-Geomet...

 

Cheers

 

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial
Highlighted
Staff
Posts: 115
Registered: ‎07-04-2016

Re: Two rasters with overlay: how to keep the overlay area as a new raster (Spatial Modeler)

Dear Deckard,

 

You can use the Define Processing Area (DPA) operator with the Window Rule: Intersection of Inputs to get the raster output only for the overlay area.

 

Then there is a good model in our Tutorials to generate a footprint out of raster http://community.hexagongeospatial.com/t5/Spatial-Modeler-Tutorials/Generate-Footprint-for-Ortho-ima...

 

The process depends on what you want to achieve at the end, because if you need to get just the boundary coordinates of overlay area for further processing, so after DPA operator, you can use Raster Information.

Kind Regards,
Marina Vardovska
Hexagon Geospatial Support
Technical Evangelist
Posts: 665
Registered: ‎10-01-2015

Re: Two rasters with overlay: how to keep the overlay area as a new raster (Spatial Modeler)

Oh - overlap, not overlay? I thought that you had two raster layers and then a third layer that was a vector overlay. 

 

Yes - if you want the intersection area of two rasters then Define Processing Area will do that.

 

If the overlap is an irregular area then you can get fancy using conditional operators and masks. 

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial
Occasional Contributor
Posts: 7
Registered: ‎12-05-2018

Re: Two rasters with overlay: how to keep the overlay area as a new raster (Spatial Modeler)

Thanks, it worked!!!

Polls
Please register to vote
Do you need immediate support?
If you encounter a critical issue and need immediate assistance please submit a Service Request through our Support Portal.