Skip to main content
Solved

Check image inside polygon

  • May 3, 2019
  • 1 reply
  • 9 views

i want to check if the polygon is full with a image

in this case, the polygon has image

 

and here the grey area is missing.

is there a way to solve this?

Best answer by jdh

You have a couple of options, if you just want the rectangular footprint of the image you can use the boundingBoxReplacer. Alternatively you can the RasterExtentsCoercer to get just the portion of the image that has data (excluding the white edges in the above image).

 

 

In either case you end up with a polygon representing the raster, that you can then check against your AOI polygon. You could use a spatialRelator (AOI is within Raster), or get more detailed results using the AreaOnAreaOverlayer in combination with other transformers. For example what percentage of the AOI is covered by the image.
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.

1 reply

jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • May 3, 2019

You have a couple of options, if you just want the rectangular footprint of the image you can use the boundingBoxReplacer. Alternatively you can the RasterExtentsCoercer to get just the portion of the image that has data (excluding the white edges in the above image).

 

 

In either case you end up with a polygon representing the raster, that you can then check against your AOI polygon. You could use a spatialRelator (AOI is within Raster), or get more detailed results using the AreaOnAreaOverlayer in combination with other transformers. For example what percentage of the AOI is covered by the image.