Skip to content

Latest commit

 

History

History
executable file
·
25 lines (15 loc) · 400 Bytes

README.kml2wkt2json.md

File metadata and controls

executable file
·
25 lines (15 loc) · 400 Bytes

KML to WKT/JSON

Introduction

Turn a KML file into a WKT/JSON file for Athena geofence with the following format:

{"boundaryshape":"POLYGON ((LNG LAT, ...))","name":"POLYGON_NAME","locality":"LOCALITY"}

Requirements

  • PHP7.3+

Installation

None

Usage

php kml2wkt2json.php POLYGONS_FILE.kml LOCALITY

The output file is saved under input_file_name.kml.wkt.json.