As the title, I start with a box which I eventually split into tiles. This box needs to be scaled, possibly moved all whilst maintaining the aspect ratio to fit into the reference box.
How should I proceed?
Cheers,
As the title, I start with a box which I eventually split into tiles. This box needs to be scaled, possibly moved all whilst maintaining the aspect ratio to fit into the reference box.
How should I proceed?
Cheers,
Using the BoundsExtractor, you can get xmin/max, ymin/max values of a bounding box. In addition, if your final purpose is the tiling processing, the Tiler might help you without scaling.
Takashi
to add to Takashi's suggestions: you can use the Offsetter to move your features given a relative offset distance (delta).
David
Not exactly knowing what you want to do with the boxes, but from my own practical experience: not managing the box boundaries, but managing the centroid with scale and aspect ratio (and a derived function delivering you the box dimensions), gives a much simpler approach and delivering a robust code solution.
Marc
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.