Skip to main content
Solved

Avoid overlap when using CurveFitter?

  • April 29, 2021
  • 2 replies
  • 20 views

aron
Enthusiast
Forum|alt.badge.img+16
  • Enthusiast
  • 136 replies

I am trying to use CurveFitter on a set of contour lines but am not getting useful results. As you can see some of the lines overlap, even after a very light processing. How can this be avoided? I tried both settings of Preserve boundries, but that did not make much difference.

 

contour overlap

Best answer by markatsafe

@aron​ CurveFitter doesn't have a constraint algorithm to prevent overlaps. As @caracadrian​ suggests, you can try tweaking the (many) CurveFitter parameters.

You could try the SherbendGeneralizer. It doesn't fit curves but it will generalize your contours preserving the spatial relationships. Perhaps a combination of the two will give you the results you need.

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.

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • April 29, 2021

You have to play with the parameters a little more.

Precision defines the maximum deviation allowed between the input and the output.

Preserve Shared Boundaries is used on area features only.

My favorite transformer for generalizing contour lines is the Generalizer set to NURBfit, so try this one to.

Also, by the looks of it, your contours were overlaping before the CorveFitter.


Forum|alt.badge.img+2
  • 1891 replies
  • Best Answer
  • April 29, 2021

@aron​ CurveFitter doesn't have a constraint algorithm to prevent overlaps. As @caracadrian​ suggests, you can try tweaking the (many) CurveFitter parameters.

You could try the SherbendGeneralizer. It doesn't fit curves but it will generalize your contours preserving the spatial relationships. Perhaps a combination of the two will give you the results you need.