KML file import

New home Forums Pro Add-on KML file import

Tagged: , ,

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #32511
    Lee BASC
    Member

    Hi

    Ive purchased the Pro version of the plugin and want to import some mapping data we have in KML format. The problem is the file is 96mb as it covers most of the country. We have been supplied the KML file by a third party. Is there a any advice you could give to be able to get the file to import?

    If they can break the file down, is it possible to import multiple KML files onto one map? as a work around to file sizes?

    Lee

    #32534
    SupportTeam
    Moderator

    Hi Lee,

    Thank you for getting in touch with us.

    Unfortunately KML layers has some limitations as described here: https://developers.google.com/maps/documentation/javascript/kmllayer#restrictions

    Could you upload KML file to pc cloud and share with us so we can figure out possible solutions? You can mark you response as private to protect your data.

    Thank you for your time in this.

    Best regards

    #32535
    Lee BASC
    Member
    This reply has been marked as private.
    #32542
    SupportTeam
    Moderator
    This reply has been marked as private.
    #32549
    Perry
    Moderator

    Hi there Lee,

    My name is Perry, I’m one of the lead developers on WP Google Maps, pleased to meet you!

    Jarek brought this to my attention earlier, I have a few suggestions.

    96mb is an awful lot of KML data, you are aware of the bandwidth and performance impact this will have on your visitors correct?

    There are two options here:

    1) I can help you convert the KML file into a CSV of polygons, swapping the coordinates and formatting appropriately along the way, then passing you the resulting CSV for import. This can be done automatically, there’s no need to swap your coordinates by hand, that would takes months on a 96mb file!

    Or

    2) If you’re open to trying beta software, our upcoming release has the OpenStreetMap / OpenLayers engine built in, which also features a KML layer – off the top of my head I don’t think theirs is subject to the same size restrictions as Google (presumably they use a 3rd party KML renderer whereas Google’s actually transmits the KML data to Google servers, hence the restrictions). Please note that this engine has restrictions of it’s own (no directions box, no themes)

    See here for more information on Googles KML layer limits:

    https://developers.google.com/maps/documentation/javascript/kmllayer#restrictions

    Please let me know if either of those sounds acceptable?

    Kind regards
    – Perry

    #32742
    Lee BASC
    Member
    This reply has been marked as private.
    #32759
    Perry
    Moderator

    Hi Lee

    I tried that file out in v7 beta using the OpenStreetMap engine but nothing is displayed – I’m going to have to look further into this.

    I also tried zipping the 4mb file to make a KMZ file and then using the Google engine, but nothing is displayed, I’m guessing this still doesn’t get past their restrictions.

    I’ll go ahead and convert this data if you would like?

    Purely out of curiosity, may I ask what this data displays? I was just wondering because some of the polygons are very close to where I live, I actually cycled past one of these areas not so long ago (near Glastonbury)!

    Let me know how you’d like to proceed,

    Kind regards
    – Perry

    #32762
    Lee BASC
    Member
    This reply has been marked as private.
    #32768
    Perry
    Moderator

    Hi Lee,

    I’m looking at your polygon data and potentially converting it and I notice that you have some polygons with inner boundaries (eg holes). Our plugin currently doesn’t support holes in polygons, will that be a problem?

    Kind regards
    – Perry

    #33206
    Lee BASC
    Member

    Hi

    could you let me know one of the polygons that has a hole in so we can check against our information. If the holes are water areas then it wount be a problem.

    Cheers

    Lee

    #33215
    Perry
    Moderator

    Hi Lee

    See the picture I’ve attached for an example, near Horton just outside the London ring road (West)

    We do have plans to support polygons with holes in the future but at the moment there is no support for this.

    If that’s a problem then I’m terribly sorry for the inconvenience.

    Kind regards
    – Perry

    #33961
    Lee BASC
    Member

    Hi

    Ive spoken to my colleagues and they would like another (possibly) two examples of the polygons with holes that wont show. The reason is we may be able to go ahead with the entire area covered. But we would need to see a large hole in a polygon.

    If you could send this that would be a great help

    #33964
    Perry
    Moderator

    Hi Lee

    I didn’t see any in the smallest KML file,

    In the 4.2mb file here are the polygons with holes:

    – Weston Turville Reservoir
    – Wraysbury No. 1 Gravel Pit
    – West Pennine Moors

    There may be more in the 96mb file

    Does that help?

    Kind regards
    – Perry

    #35815
    Lee BASC
    Member

    Hi Perry

    sorry for a delay in getting back to you on this. Lots of people, having lots of input, Causing lots of probelms 🙂

    Is it possible to convert the kmls so we can use them even though the holes arent included? We will put a disclaimer on the page explaining this.

    If this could be done that would be brilliant.
    Many tHanks

    Lee

    #35824
    Perry
    Moderator

    Hi Lee

    Yes we can do that certainly, I have code at my end to perform the conversion as long as you’re aware that holes aren’t supported at the moment.

    Please send me your KML and I’ll get that converted as soon as possible.

    Kind regards
    – Perry

Viewing 15 posts - 1 through 15 (of 18 total)
  • You must be logged in to reply to this topic.