I have a set of lines I want to 'fit'/shrink into another object's bounding box.
Both features have the same LL coord.
I have tried the RubberSheeter and AffineWarper, but the result is just rotated.
Any help would be appreciated.
Itay
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
I would try to calculate the difference in size ratios between the BBox and bounding box of the lines you want inside, then send the lines to the Scaler.
The AffineWraper is the right tool for this, unfortunately some of the features fail with an error message about the transformer missing the minimal 4 control features needed. Any ideas on how to check and make sure all mecessary inputs are available?
Hi Itay, As David mentioned, I also think the Scaler can do that. But it will be necessary to move the coordinate system, so that the origin matches with left-bottom of the bounding box. In other words, offset the target geometry before / after scaling. offset (-xmin, -ymin) --> scale --> offset (+xmin, +ymin).
(-xmin, -ymin) is left-bottom of the bounding box.