Skip to main content
Solved

Extract a raster subset from a polygon

  • October 4, 2022
  • 7 replies
  • 20 views

Hello,

 

I want to extract roof textures from an imagery raster.

 

In input I have a raster and a polygon.

In output I would like to have the image I could use to texture the polygon.

 

Is there any transformer for that?

 

Thanks!

Best answer by david_r

Did you try using the Clipper?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

david_r
Celebrity
  • 8391 replies
  • Best Answer
  • October 4, 2022

Did you try using the Clipper?


  • Author
  • 21 replies
  • October 4, 2022

Thank you very much David, that is the transformer I was looking for!


  • Author
  • 21 replies
  • October 4, 2022

Actually I'm not sure if I am using it correctly. I have 1.507 geometries in input of my Clipper node. I would like to output 1.507 clipped rasters. I don't understand why there is only 872 outputs, I think I'm missing something important here.

 

Screenshot


david_r
Celebrity
  • 8391 replies
  • October 4, 2022

Actually I'm not sure if I am using it correctly. I have 1.507 geometries in input of my Clipper node. I would like to output 1.507 clipped rasters. I don't understand why there is only 872 outputs, I think I'm missing something important here.

 

Screenshot

First thing to do is to check that the Clipper and Clippee overlaps properly. You can send both to an Inspector and check visually. If they don't, it could be a projection / coordinate system issue.


  • Author
  • 21 replies
  • October 4, 2022

First thing to do is to check that the Clipper and Clippee overlaps properly. You can send both to an Inspector and check visually. If they don't, it could be a projection / coordinate system issue.

Thank you again, it helped!


  • Author
  • 21 replies
  • October 4, 2022

Sorry to bother again; is there anything I need to take care of before being able to apply the clipped raster as a texture with `AppearanceSetter`? I struggle a little bit with only `EXTRA_APPEARANCE_FEATURE` rejections. I guess this is a texture coordinates issue, but that's only a guess as I cannot find any documentation about that rejection code.


david_r
Celebrity
  • 8391 replies
  • October 4, 2022

Sorry to bother again; is there anything I need to take care of before being able to apply the clipped raster as a texture with `AppearanceSetter`? I struggle a little bit with only `EXTRA_APPEARANCE_FEATURE` rejections. I guess this is a texture coordinates issue, but that's only a guess as I cannot find any documentation about that rejection code.

I've not much experience with appearances, so perhaps someone else can chime in. If you don't get any replies, consider posting it as a separate question.