Hi,
I'm currently drawing a map, and I'm stuck with on how to draw the streets properly. The streets should consist of parallel lines with a defined fill color and a somewhat darker stroke color. I already read what Tavmjong wrote in his book:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Creating.html#Paths-Bezie...
Basically, I understand the approach and got it to work drawing one comparatively simple stroke, but how do I get the lines being exactly parallel and smooth? I only manage to get it right with a lot of tweaking, but this way too time-consuming when I want to draw an entire map. Can anybody help?
TIA,
Claus
Hi again,
I found the solution myself:
Instead of using th 'brush stroke' tool, now I've been unsing the bezier tool instead with a comparably broad stroke value (6). After that, I disabled 'fill color', and then set the stroke width back to '1'.
That basically does it. Now I only have to get rid of the strokes at both ends, which only seems to work with brush strokes. Maybe I can will have to convert the bezier first, in order to be able to delete the strokes at the end.
Claus
Claus Cyrny wrote:
Hi,
I'm currently drawing a map, and I'm stuck with on how to draw the streets properly. The streets should consist of parallel lines with a defined fill color and a somewhat darker stroke color. I already read what Tavmjong wrote in his book:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Creating.html#Paths-Bezie...
Basically, I understand the approach and got it to work drawing one comparatively simple stroke, but how do I get the lines being exactly parallel and smooth? I only manage to get it right with a lot of tweaking, but this way too time-consuming when I want to draw an entire map. Can anybody help?
TIA,
Claus
I'd probably use stacked shapes to do it, ie draw the fill, then add a linked offset that sits below it in the tree that does the 'stroke' Any changes to the fill shape will get automatically put into the stroke.
2008/6/7 Claus Cyrny <claus.cyrny@...22...>:
Hi again,
I found the solution myself:
Instead of using th 'brush stroke' tool, now I've been unsing the bezier tool instead with a comparably broad stroke value (6). After that, I disabled 'fill color', and then set the stroke width back to '1'.
That basically does it. Now I only have to get rid of the strokes at both ends, which only seems to work with brush strokes. Maybe I can will have to convert the bezier first, in order to be able to delete the strokes at the end.
Claus
Claus Cyrny wrote:
Hi,
I'm currently drawing a map, and I'm stuck with on how to draw the streets properly. The streets should consist of parallel lines with a defined fill color and a somewhat darker stroke color. I already read what Tavmjong wrote in his book:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Creating.html#Paths-Bezie...
Basically, I understand the approach and got it to work drawing one comparatively simple stroke, but how do I get the lines being exactly parallel and smooth? I only manage to get it right with a lot of tweaking, but this way too time-consuming when I want to draw an entire map. Can anybody help?
TIA,
Claus
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Claus Cyrny wrote:
Hi again,
I found the solution myself:
Instead of using th 'brush stroke' tool, now I've been unsing the bezier tool instead with a comparably broad stroke value (6). After that, I disabled 'fill color', and then set the stroke width back to '1'.
That basically does it. Now I only have to get rid of the strokes at both ends, which only seems to work with brush strokes. Maybe I can will have to convert the bezier first, in order to be able to delete the strokes at the end.
Claus
Here's what I did: draw the streets with the pencil tool until you have them all completed. Then, according to the street importance (State/County Level/whatever), set the stroke with to whatever seems appropriate. Now do a clone (Ctrl+D), set the stroke to something a bit smaller (e.g. 14 px for the lower, 13 px for the clone, set the color to white (or yellow/red/whatever) and you have a perfectly nice street. If you grouped all the streets before, you can make sure that all the lower-level streets are below and all the narrower upper parts are above, so on junctions everything looks fine.
Additionally, you can make another clone, set the width to 0.5 or 1 and the color back to black, to get street marks.
There certainly are a million other ways to do it, but I found it quite nice first using the tablet do draw the streets without fiddling around much at first, then later simplifying them, group them by importance and apply the thing I mentioned above.
Unfortunately, (at least that I know of), there's no way to join the points of the stroke together afterwards, so if you move either the rim or the center line of the street, the other ones have to be moved as well.
On Sat, 2008-06-07 at 19:15 +0200, Claus Cyrny wrote:
Hi again,
I found the solution myself:
Instead of using th 'brush stroke' tool, now I've been unsing the bezier tool instead with a comparably broad stroke value (6). After that, I disabled 'fill color', and then set the stroke width back to '1'.
That basically does it. Now I only have to get rid of the strokes at both ends, which only seems to work with brush strokes. Maybe I can will have to convert the bezier first, in order to be able to delete the strokes at the end.
Draw the road using the Bezier tool. Set the stroke width to a wide value (eg: 0.1 in), the Join to curve, and the Cap to Butt. Choose Path->Stroke to Path. Set the fill color (eg: yellow) and disable the stroke color. Duplicate (Ctrl+D). Set the stroke color to black and its width to something small (eg. 0.01 in). Choose the "Edit paths by nodes tool" and select the two pints at one end. Choose "Split path between two non-endpoint nodes" from the Command Bar. Do the same at the other end.
2008/6/7 Claus Cyrny <claus.cyrny@...22...>:
Hi again,
I found the solution myself:
Instead of using th 'brush stroke' tool, now I've been unsing the bezier tool instead with a comparably broad stroke value (6). After that, I disabled 'fill color', and then set the stroke width back to '1'.
That basically does it. Now I only have to get rid of the strokes at both ends, which only seems to work with brush strokes. Maybe I can will have to convert the bezier first, in order to be able to delete the strokes at the end.
I have not tried this, but maybe create a bezier for the road, then duplicate it, and change the width of the duplicate to make it thinner, and also change the colour. If you have square ends, it should leave them open.
It may be worth having a look at openstreetmap.org as they use inkscape to generate one of their tilesets.
Just draw all the roads with the bezzier tool, unset stroke and no fill. Group them all. Set the stroke to the width and colour of the outer lines (i.e.5 px). Duplicate the group and set the width and colour for the "fill". This will give you (I think) what is desired.
See the attached sample...
-Rob A>
participants (6)
-
Alexander Roalter
-
Claus Cyrny
-
john cliff
-
Mr. Shawn H. Corey
-
Philip Stubbs
-
Rob Antonishen