Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.31 KB

README.md

File metadata and controls

29 lines (15 loc) · 1.31 KB

AnyChart AMAP to GeoJSON Converter

Description

This Python-based converter allows you to convert any AnyMap 4.x, 5.x and 6.x amap map source files to AnyMap 7.x GeoJSON based JavaScript, pure GeoJSON and SHP format.

You might have obtained .amap files from the set of maps AnyChart provided with old versions or created yourself with AnyChart SHP to AMAP Converter.

AnyChart 7.x maps collection can be found in AnyChart CDN Maps Collection.

Converter generates AnyMap 7.x GeoJSON based JavaScript (.js), pure GeoJSON (.json) and SHP (.shp, .shx and .dbf) formats in the specified output folder.

After you converted .amap file you can use .js or .json files directly in the new HTML5 AnyMap or tune .json or .shp files further as described in AnyMap Custom GeoJSON Maps Tutorial.

Setup

pip install -r requirements

Convert single amap file

python converter.py amap-path.amap output-base-name 

e.g. python converter.py states.amap out/states

Batch conversion

./convert-batch src-folder output-folder

e.g. ./convert-batch maps out