Skip to content

andyg2/parse-gadm-kml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse gadm.org KML to Google Maps Polygon

For this example I downloaded the Philippines KMZ level 3 file from here: https://gadm.org/download_country_v3.html

I used 7-Zip to extract the gadm36_PHL_3.kml file to produce gadm36_PHL_3.kml.

On line 3 of parse.php - The level I want to generate (based on the KML level):

$level = 3;

On line 4 of parse.php - The first part of the filename you want to parse

$file_part = 'gadm36_PHL_';

This will parse the entries of gadm36_PHL_3.kml into the cords_3 directory structure in this repo.

Coordinates to Map overlay Polygon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages