Map - bitmap roads to paths

Post questions on how to use or achieve an effect in Inkscape.
User avatar
Bucic
Posts: 128
Joined: Fri Apr 24, 2009 2:50 am
Location: Poland

Map - bitmap roads to paths

Postby Bucic » Wed Mar 31, 2010 12:31 pm

Let's say we have the following image

Image

Is it possible to, for example, automatically draw single-line curves along all the roads (in red) from the map? If not then is it possible in some other application?
!!! Support wishlist: A new perspective / transformation tool http://tinyurl.com/3uacua4
* Inkscape Tutorial Basics A different approach... http://tinyurl.com/3pextp3
* What do I use Inkscape for http://tinyurl.com/3pbna6l

pbureau
Posts: 22
Joined: Mon Mar 22, 2010 7:27 am
Contact:

Re: Map - bitmap roads to paths

Postby pbureau » Wed Mar 31, 2010 6:10 pm

I guess you could use gimp to select the roads by color, extract the road network in a separated bitmap and then vectorize it with autotrace. The problem I see is that there are many details (text, road numbers, ...) to complicate the road extraction work...

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Map - bitmap roads to paths

Postby sas » Wed Mar 31, 2010 6:16 pm

I've heard that AutoTrace can do this sort of thing. However, I haven't tried it, so I don't know how well it works. See also the earlier thread on AutoTrace.

(Actually, looking at the map more closely, I don't think this is very feasible. It would probably be easier to trace the roads by hand.)

User avatar
Bucic
Posts: 128
Joined: Fri Apr 24, 2009 2:50 am
Location: Poland

Re: Map - bitmap roads to paths

Postby Bucic » Wed Mar 31, 2010 6:51 pm

Unfortunately I also think that it would be best to do by hand. But, just maybe... For example - how to turn a shape similar to stroke of the :tool_calligraphic: to single line :tool_pen: . If such operation is possible then there are some possibilities of automation.
!!! Support wishlist: A new perspective / transformation tool http://tinyurl.com/3uacua4
* Inkscape Tutorial Basics A different approach... http://tinyurl.com/3pextp3
* What do I use Inkscape for http://tinyurl.com/3pbna6l

User avatar
RobA
Posts: 335
Joined: Fri Aug 10, 2007 1:22 am

Re: Map - bitmap roads to paths

Postby RobA » Thu Apr 01, 2010 2:03 am

Sas is correct. potrace (the default tracer) does not have the ability to find centerlines.

Autotrace does, and I beleive the linked post includes instructions on getting autotrace enabled under linux. Autotrace may be available as a standalone application under Windows.

-Rob A.

User avatar
Bucic
Posts: 128
Joined: Fri Apr 24, 2009 2:50 am
Location: Poland

Re: Map - bitmap roads to paths

Postby Bucic » Thu Apr 01, 2010 2:19 am

Got it! I thought it's for linux only. I'll give those roads a try one day and will report. Anyone, please post your results if you've tried already.
!!! Support wishlist: A new perspective / transformation tool http://tinyurl.com/3uacua4
* Inkscape Tutorial Basics A different approach... http://tinyurl.com/3pextp3
* What do I use Inkscape for http://tinyurl.com/3pbna6l


Return to “Help with using Inkscape”