Skip to content

AnyChart/amap-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •