Support for KML & google map points

Post questions on how to use or achieve an effect in Inkscape.
embedded
Posts: 6
Joined: Sat Sep 25, 2010 10:05 pm

Support for KML & google map points

Postby embedded » Sat Sep 25, 2010 10:09 pm

I've been using inkscape now for some time. And it's awesome.

Now i'd really need a option to import shapes from kml / google maps points / route file that are made with gps.
Not the map itself, just the route.

Is there any way to convert or import them ?

nick_h
Posts: 8
Joined: Fri Apr 17, 2009 4:25 am

Re: Support for KML & google map points

Postby nick_h » Sun Sep 26, 2010 4:06 am

For KML to SVG there is this (I've no idea if it works or not).

http://kml2svg.free.fr/index.php

Regards.

embedded
Posts: 6
Joined: Sat Sep 25, 2010 10:05 pm

Re: Support for KML & google map points

Postby embedded » Tue Sep 28, 2010 3:40 am

Thanks! worked nicely!

No i've got another problem. How can i make forest-like map shapes. Free shaped areas that has curly edges ?
something like clouds but the edges have smaller roundings and more of them..

kmino
Posts: 8
Joined: Wed Jan 23, 2013 9:44 pm

Re: Support for KML & google map points

Postby kmino » Wed Jan 30, 2013 7:50 pm

Hello,

I also need to get an .svg from a .kml, but this site (http://kml2svg.free.fr/) apparently is not functional ("website in maintenance"). I tried anyway with a small .kml, but when passing to "step 2" I get a "document not found". By now I contacted them to check what's wrong (the maintenance has been going on for some time, at least since december).
However, I wanted to know if there's some other workaround to get svg from kml, or at least a guide for doing that manually.

thanks!

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Support for KML & google map points

Postby ragstian » Thu Jan 31, 2013 5:39 am

Hi

If you want to get your hands "dirty' you can go the python route - use mapnik and cairo - see links;
http://python.org/
http://stackoverflow.com/questions/3568458/programmatically-converting-kml-to-image
https://github.com/mapnik/mapnik/wiki

If you go this route I recommend you stick with python 2.7... as there are more ready made libraries than for the 3.3... version.

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

kmino
Posts: 8
Joined: Wed Jan 23, 2013 9:44 pm

Re: Support for KML & google map points

Postby kmino » Thu Jan 31, 2013 10:38 pm

I will give it a try, but that would mean starting from zero knowledge in programming... how much time would it take?

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Support for KML & google map points

Postby ragstian » Fri Feb 01, 2013 11:21 am

Hi.

By studying some of the online python tutorials / books and using downloaded example code you can write something useful in a day or two.
Keep us posted on the progress, there are others in the same boat that might find a KML to SVG converter useful!

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

kmino
Posts: 8
Joined: Wed Jan 23, 2013 9:44 pm

Re: Support for KML & google map points

Postby kmino » Fri Feb 01, 2013 7:09 pm

Ok, I'll let you know!

Thanks!

kmino
Posts: 8
Joined: Wed Jan 23, 2013 9:44 pm

Re: Support for KML & google map points

Postby kmino » Wed Feb 27, 2013 12:53 am

I am giving up guys...
I started with a nice python tutorial, I could say that I even like it. Now I'm quite struggling about how functions work, I guess I should have more time to exercise, but I don't.
In the meantime, I tried to install mapnik through the osgeo4w-whatever it is. Now I can say that I do not absolutely know if I made it or not.
I am very frustrated and wasting time about this stuff, I'll eventually do the thing in the raw manner (pasting screenshots and manually overlaying the lines) or try a turnaround with different converters.

Thank you anyway for the suggestion!

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Support for KML & google map points

Postby ragstian » Wed Feb 27, 2013 1:18 am

Hi.

Dont give up! ; http://www.youtube.com/watch?v=Wv_NwsCfmUs

Here are links to a few more tools that might come in handy.
http://www.gpsvisualizer.com/
http://www.gpsvisualizer.com/map_input?form=googleearth

An excellent plotting package that will output to SVG (as well as other formats); http://home.gna.org/veusz/
Can we get your GPS data? We might be able to help you along the way.

RGDS Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

kmino
Posts: 8
Joined: Wed Jan 23, 2013 9:44 pm

Re: Support for KML & google map points

Postby kmino » Wed Feb 27, 2013 2:09 am

Well, Ragnar, suddenly you got me the solution!
With the GPS visualizer I finally made it. My lines (geological boundaries) were rapidly converted, also preserving each line's identity, so that I can manage color, thickness and stuff.
The only downside is that each line gets converted to a group composed of a series of detached segments devoid of nodes.
Nodes can be still be applied by ctrl+shift+C, but at this point I should join each individual segment with the next to get real lines: talking of some thousands of segments, I guess I won't give it a try.
I see that they look like real lines when exported on a A4 at 300dpi, and that's fine to me, since this whole procedure was intended to edit a printable geological map.
I guess the owners of GPS visualizer should publicize more the capabilities of their tool!

Anyway, THANK YOU so much again.

EDIT: actually, there is an option to have real lines, but in this case they have some little problems: stroke parameters cannot be modified; despite being distinctly colored, no color shows up in the lower left fill/stroke icon. Manually adding a color for the stroke makes them editable as usual (inlcuding stroke shape, thickness and so on).


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 15 guests