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
Highlighted
New Contributor
Posts: 2
Registered: ‎03-20-2017
Accepted Solution

Create new raster by attibute

Hi,

 

I work with Spatial Model and I want to create a new raster where a pixel value will be equal to an specified attribute (it's integer value) in original raster.
How I can to do it, to transfer an attribute value to a pixel value? I tried "Expression" operator using "Conditional" and "Read attribute" functions but it make a table-type output.

 

Thanks in advance.

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

Re: Create new raster by attibute

Hi,

 

I think you should just be able to perform a "Direct Lookup" (with the Operator of the same name) of the raster stream through the Table you have generated:

 

http://community.hexagongeospatial.com/t5/Spatial-Recipes/Direct-Lookup-Model/ta-p/762

 

Or "Attribute Lookup" might bea simpler approahc for what you describe:

 

http://community.hexagongeospatial.com/t5/Spatial-Recipes/Stretch-Image-through-Saved-Lookup-Table-L...

 

Or an example using "Lookup":

 

http://community.hexagongeospatial.com/t5/Spatial-Recipes/Clump-and-Sieve-2016/ta-p/5227

 

Cheers

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial
New Contributor
Posts: 2
Registered: ‎03-20-2017

Re: Create new raster by attibute

Huge thanks! 

Attribute Lookup is exactly what I looked for! 

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