Skip to main content
Question

Reading from WMS image - How to maintain a consistent height and width of image with varying bounding boxes without stretching the image..

  • October 3, 2023
  • 1 reply
  • 32 views

Forum|alt.badge.img

I have a workspace that inputs property polygons and bounding boxes from an oracle database and it feeds into a WMS feature reader to obtain a raster image. It then overlays property boundary as a redline on top of the image. How do I maintain constant height and width of the image without stretching it?

 

The WMS I am reading from does not have scale hint, nor does it have scale denominator in its implementation.

1 reply

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • October 6, 2023

Hi @generationn00b​,

I created a custom transform to replace a feature's geometry with a bounding box that has a fixed aspect ratio: https://hub.safe.com/publishers/safe-lab/transformers/fixedaspectratioboundingboxreplacer. Send your polygons through this transformer with the desired image size set in the Horizontal and Vertical Components values, then use the resulting bounding boxes in the WMS feature reader.


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