Skip to content

Instantly share code, notes, and snippets.

@zuo1188
Created October 21, 2017 11:33
Show Gist options
  • Save zuo1188/13ce52635db431e59f3d8364a1854b0f to your computer and use it in GitHub Desktop.
Save zuo1188/13ce52635db431e59f3d8364a1854b0f to your computer and use it in GitHub Desktop.
1. 启动elasticsearch
2. 启动API项目 及打开DEMO 准备数据测试
3. 修改 ~/pelias.json最后 sw中
"sw":{
"datapath": "/Users/hanzhongjian/mapdesign/data/xz"
}
将路径修改为 数据的路径即可
4. 开始修改sw项目中 sw2json/sw2json.py
1. 修改文件名称 95行
poiPath = rootdir + os.path.sep + "fuyangPOI.shp"
poiInfoPath = rootdir + os.path.sep + "fuyangPOI.dbf"
2. 修改字段对应值 105, 119 , 121行 分别对应的是字段在shp文件中的位置 从0开始
5. 在sw根目录下输入命令 node index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment