linestring splits lines in google maps

263 views
Skip to first unread message

Bird

unread,
Oct 23, 2009, 9:52:21 AM10/23/09
to KML Developer Support - Getting Started with KML
Hi,

I'm sorry if this is a noob question, but unfortunately that's what I
am right now. I'm creating a kml file to show animal movement data
over a fairly large area with a sinle continuous line using
<linestring>. In one movement there are about 1700 coordinates
covering about 200 000 km2. I've created the kml file and it displays
fine in Google Earth, but when I add it to Google - My Maps it splits
the line into 5 segments. I can't see any reason for the splitting
(it's not at intersections of itself, nor at defined changes in Lat/
Long). I've tried creating it both with multigeometry tags and
without but have not had much success.

Right now I'm generating the kml file using a text editor, but have
tried it with shp2kml and through ArgGIS 3d Analyst and the results
are even worse (many more line segments).

Any tips that can be provided would be fantastic.
Thanks in advance,
K.

barryhunter (KML Guru)

unread,
Oct 23, 2009, 7:21:11 PM10/23/09
to KML Developer Support - Getting Started with KML
Google Maps splits lines into multiple Placemarks each 500 points
long.

You can't stop this 'splitting' unless you can simplify the line to
have less than 500 coordiantes.


(Note you might not even have to use 'My Maps' - you can paste the URL
of a KML file right into the search box - you can send a link to this
map too)

Bird

unread,
Oct 24, 2009, 3:49:19 PM10/24/09
to KML Developer Support - Getting Started with KML
Thanks for taking the time to respond Barry. It's good to know what
the restrictions are. I'll make some adjustments and simplify the
lines if possible.

The reason for using 'my maps' is to try copy the map code and place
the output onto my own website, but restrict it so that others do not
have access to the data.

Cheers,
K

barryhunter (KML Guru)

unread,
Oct 24, 2009, 5:38:43 PM10/24/09
to KML Developer Support - Getting Started with KML
On Oct 24, 8:49 pm, Bird wrote:
> Thanks for taking the time to respond Barry. It's good to know what
> the restrictions are.  I'll make some adjustments and simplify the
> lines if possible.
>
> The reason for using 'my maps' is to try copy the map code and place
> the output onto my own website, but restrict it so that others do not
> have access to the data.

'My Maps' isnt going to help you there. To embed a map, you need to
use the msid - and with that anyone can export your data easily as
a .kml file. Google even provide a link right alongside the map!

With Google Maps - if the data is on screen its pretty easy to get
access to the raw data.
Reply all
Reply to author
Forward
0 new messages