Solved

Check image inside polygon

  • 3 May 2019
  • 1 reply
  • 1 view

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?

icon

Best answer by jdh 3 May 2019, 16:31

View original

1 reply

Badge +22

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.

Reply