Skip to main content
Question

Aggregator and OffsetCurveGenerator throwing strange results. How to solve?

  • February 7, 2025
  • 4 replies
  • 43 views

aron
Supporter
Forum|alt.badge.img+16
  • Supporter

I am getting some really strange results when trying to offset aggregated lines. The fat red lines below are aggregated. This is sent to an OffsetCurveGenerator, thin pink lines. In this instance it seems like the OffsetCurveGenerator treats the lines as individual parts and offsets them to different sides (I am looking at only left channel out here). In other cases it fuses the lines into unities that can not be restored afterwards with a Deaggregator.

Any ideas on how to resolve this, or workarounds?

Edit: I went back and checked the geometries in the examples below, there where to complaints in the GeometrValidator.

 

This is a spinoff from my previous thread: 

 

 

 

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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.

4 replies

david_r
Celebrity
  • February 7, 2025
  1. Are you sure about using the OffsetCurveGenerator and not the Offsetter?
  2. The aggregates looks like regular lines. Have you tried/considered using the LineJoiner rather than the Aggregator, when possible?

aron
Supporter
Forum|alt.badge.img+16
  • Author
  • Supporter
  • February 7, 2025
david_r wrote:
  1. Are you sure about using the OffsetCurveGenerator and not the Offsetter?
  2. The aggregates looks like regular lines. Have you tried/considered using the LineJoiner rather than the Aggregator, when possible?

 

  1. Yes, I believe so, unless there are settings in the Offsetter that I am unaware of? I want to offset lines, not move them in one given direction. Se example using the Offsetter below.
  2. Thing is that I need to restore the original parts once they have been offsett. The lines are a road network and each feature/segment holds different attributes. Using the aggregator, or trying to anyway, is in an attempt do the offsetts clanly in one go by treating the lines as units. And then parting them once they are offsett.

 


aron
Supporter
Forum|alt.badge.img+16
  • Author
  • Supporter
  • February 7, 2025

I solved it. 

The solution was to place an Orientor before aggregating. Then things started to look like expected. 

If anyone @safe is reading this, I think the OffsetCurveGenerator could need an overview. I have previously noticed other issues with this tranformer when it comes to the orientation of linework.


aron
Supporter
Forum|alt.badge.img+16
  • Author
  • Supporter
  • February 7, 2025

Well… My last post was a bit preemptive.

 

It is some sort of Orientation issue. The OffsetCurveGenerator can’t correctly manage aggregates with mixed orientations. But looking at a larger sample the Orientor was not the solution. 

Will have to digg further to see if I can find a solution to this. 


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