Skip to main content

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.

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.


Reply