Skip to main content
Solved

Check image inside polygon

  • May 3, 2019
  • 1 reply
  • 7 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.
View original
Did this help you find an answer to your question?

1 reply

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • 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.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings