Creating a kml file from a mysql database with php

后端 未结 3 1648
花落未央
花落未央 2021-01-18 08:02

I hope there is a php genius here somewhere who can help me with this. I have a database table called baeir, it has the following fields:

b_id (primary k

3条回答
  •  醉话见心
    2021-01-18 09:00

    kml has nothing to do with your php. Your kml file is basically an xml file which is specifically used in google earth ang google map applications. Your Kml file needs to pass a validity test in order for you to use it. You can use the following link to validate your kml file. Kml validator. Your kml file will contain the predefined tags like point coordinate description so that it can be parsed. If you want to take a look as to how the kml file looks like, here you go

    Sample Kml File

    Needless to say your KML should contain the info in the proper tags and then you need to parse it. e-g lat and lng can go in to the coordinate tag. description tag can hold your text description, say comment.

提交回复
热议问题