Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 862 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 862 Bytes

Polish address points PRG dataset XML to SQL importer.

This repository holds a script for importing Polish address points obtained from PRG (Państwowy Rejestr Granic) from XML format into a MySQL table.

As of 11/2018, the input files for this script can be downloaded here.

They are the PRG – punkty adresowe dataset in *.GML format.

The script creates a table punkty_adresowe in the given DB & schema.

Usage

$ php importer.php DIR HOST USERNAME PASSWORD SCHEMA
  • DIR - directory holding unpacked XML files from PRG, without trailing slash
  • HOST - MySQL host to connect to (e.g. localhost)
  • USERNAME - MySQL username
  • PASSWORD - MySQL password
  • SCHEMA - MySQL schema to insert data into