This project has moved and is read-only. For the latest updates, please go here.

How i can merge lines?

Oct 28, 2010 at 5:54 PM


how  can i merge two lines?

i have a city map.its street lines aren't merge and cover by themselves.

please check this link to see an example:

rectangles are my problem.

and my another problem is my custom themes, outline doesn't can i draw outline?

thanks alot,


Oct 28, 2010 at 7:39 PM
Edited Oct 29, 2010 at 11:28 AM

Hello Shahin,

There is a simple way to prevent this if you are using db providers. just set your provider to a view instead of a table, in which you use ORDER BY road category. Setting the StartCap and EndCap properties of the pen to draw the line with to Round might help, too.

If you still feel you need to merge linestrings, have a look at NetTopologySuite. It has a LineMerger class.

Note: You will get faster results if you create a layer for each road category since you do not have to apply theming.

To enable outline you must set the EnableOutline property to true

Hth FObermaier

P.S. I'd care for your compass


Oct 29, 2010 at 8:33 AM

It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks


culver city plumber

plumbers culver city

plumbers in culver city