Skip to main content
Question

geometry coercer


franco69
Contributor
Forum|alt.badge.img+6

I have country border lines as a polygon and want to convert them in polylines....but the result should be that tere is only one line on a common border.....so no double lines...

 

Thanks and Greetz

 

Franco

10 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 10, 2014
Coerce the polygons to lines.

 

Use topologybuilder, input the lines.

 

 

Output lines is result u wish.

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 10, 2014
i tried that....he splits the polygons in polylines...thats ok...but i have two lines on a acommon border...can i remove that when they are same in geometry?

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 10, 2014
You can use the matcher. Match 2D and set lenient matching to yes.

 

Output sinlgematched and not matched.

takashi
Influencer
  • October 10, 2014
The TopologyBuilder generates a single line for a shared boundary of adjacent areas if the boundary lines exactly match. I guess there are slight gaps between them.

 

If so, the Matcher doesn't work as expected unfortunately.

 

Firstly check if there are such gaps.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 10, 2014
Hi Takshi,

 

 

You would expect that, but it is not true.

 

If i use topology builder on community dataset (community borders), wich is  topoligy correct, no gaps no overlaps, it does create 2x the edges where they match.

 

Franco is right, so a matcher is required. Also it must be set to lenient matching else it will not match (wich i find strange).

 

 

Maybe the transformer is flawed?

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 10, 2014
Hi all,

 

 

the interesting thing that the result is that sometimes there is only one line, sometimes there are two lines....hmmm...

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • October 10, 2014
correction.

 

 

When u enter the areas in the topologybuilder this is true, u get 1 line at borders. (wich is where Takashi is right..)

 

When u coerce them first to polylines and enter the polylines in the topology builder, you get double lines at borders..

 

 

 


takashi
Influencer
  • October 10, 2014
Really?

 

I always can get single lines for common boundaries, if those are exactly match.

 

Strange.

franco69
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • October 10, 2014
Right....without coercer it works...;-))

takashi
Influencer
  • October 10, 2014
Ah, the doubt has been cleared ;)

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