IMAGINE Discussions

Discuss and share topics of interest using ERDAS IMAGINE the world’s leading geospatial data authoring system.
Showing results for 
Search instead for 
Do you mean 
Reply
Valued Contributor
Posts: 577
Registered: ‎10-27-2015

Convert to Features Operator and thematic images

Dear all,

today I have done some tests using the "Convert to Features" in simple models like these:

model.PNG

The attribute of the raster are these:

attribute.PNG

This is the raster:
raster.PNG

If the 'isClumped' flag is set to false the feature in output does not contain all the attribute fields from the raster:

not_clump.PNG

Capture.PNG

If I set the 'isClumped' flag to true the output feature contains the raster attributes:

clump.PNG
Capture_01.PNG

Why If the 'isClumped' flag is set to false the attribute are not available?
If I use the Raster to Shapefile button in the ribbon it works. 
I have tested this issue with different thematic images on the both the ERDAS VERSION, 2016 and 2018.

Thank you very much
Regards
Giuseppe M.

Technical Evangelist
Posts: 130
Registered: ‎07-04-2016

Re: Convert to Features Operator and thematic images

Hello Giuseppe,

 

That's because of the way how Clump function has always worked. It doesn't transfer attributes to the output image. 

 

So, in case of Convert to Features operator, if you turn the IsClumped to False, the Convert to Features operator has to perform a Clump and does not attempt to transfer attributes. There is an idea placed for Convert to Features operator - https://community.hexagongeospatial.com/t5/Product-Ideas/Allow-Convert-to-Features-operator-transfer...

 

There are 2 solutions meanwhile:

 

  1. Use rastertoshape executable via Command Line operator

2018-03-29 11_04_43-Untitled_1 - ERDAS IMAGINE 2018.png

 

2018-03-29 11_05_37-Command Operator.png

 

2. If you intend to use model in Smart M.Apps environment, so it will not allow you to run executable via Command Line. You can do Clump before converting to features. After Clump, you need to reattach attributes. Below is an example of how to transfer Class Names to the output raster. You can do the same for other classes you need. Then try to convert to features with IsClumped option turned to True

 

2018-03-29 11_07_16-Untitled_1 - ERDAS IMAGINE 2018.png

Kind Regards,
Marina Vardovska
Hexagon Geospatial Support
Technical Evangelist
Posts: 130
Registered: ‎07-04-2016

Re: Convert to Features Operator and thematic images

Hello Giuseppe,

 

Just was lightened by another idea. Same way as you re-add attributes after Clump, you can re-attach attributes after Convert to Features operator. Here is an example:

 

2018-03-29 11_20_30-Untitled_1 - ERDAS IMAGINE 2018.png

 

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

Re: Convert to Features Operator and thematic images

This Spatial Recipe utilises the approach Marina suggests above to transfer attributes from an original raster to derived point features.

 

https://community.hexagongeospatial.com/t5/Spatial-Recipes/Map-The-Location-of-Pixels-with-Max-DN-Va...

 

Ian Anderson
Chief Product Owner, Desktop Remote Sensing
Hexagon Geospatial