Skip to main content

Hi,

I've a polygon/square ( 4 corners). The left

side should be extended to 2 metres to the left/east.

I tried offsetter, but it moves the

complete polygon. I only need 2 points/coordinates).

Is this somehow possible?

Hi @fst​ ,

Definitely, you could accomplish this by breaking the geometry down into vertices, then offsetting the points and rebuilding the polygon.

 

Here is an example where I break a box down into points, then offset the eastern most points .1 degrees to the east.

2021-07-08_9-16-35This method should be pretty bulletproof as you can set the logic to move points that are greater than/less than the xmin/xmax that was calculated on the original polygon. The key thing here is to calculate the bounds first, then break down the geometry and extract the vertex coordinates so you can build the expression accordingly.

 

If you wanted to simplify it a bit, you could also simply break the geometry into points then use a counter. The vertices should be counted counter clockwise starting from the bottom left vertex.

2021-07-08_9-25-41I've included both workspaces so you can see how both work.


If you know the indices for the left side vertices, you could also use the VertexCreator in mode "Replace point at index".


Thank you for the answers. It's working.


thanks for the awesome information.

https://ometv.onl https://chatroulette.top https://omegle.wtf https://bazoocam.cam


Reply