Skip to content

Pavel-Demidyuk/kml_to_mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kml_to_mysql

PHP: KML to Mysql

Basically all you need is just setup file name and credentials to your mysql database in parser.php.

Mysql table:

--
-- Table structure for table `regions`
--
CREATE TABLE IF NOT EXISTS `regions` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` text COLLATE utf8_unicode_ci NOT NULL,
  `polygons` polygon NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--

I've tested this on regions of Mother Russia, see it in regions2010_wgs.KML (downloaded from http://gis-lab.info/qa/rusbounds-rosreestr.html)

Script createed for http://keytoday.net.

Releases

No releases published

Packages

No packages published

Languages