lmec
所属分类:教育系统应用
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2022-03-30 14:52:58
上 传 者:
sh-1993
说明: Leventhal地图和教育中心
(Leventhal Map & Education Center)
文件列表:
data/ (0, 2022-03-30)
data/bpl-mapwarper_control-points-data_1639766994.json (4140483, 2022-03-30)
data/manifests.ndjson (152420, 2022-03-30)
data/maps.ndjson (2070614, 2022-03-30)
package-lock.json (5869, 2022-03-30)
package.json (434, 2022-03-30)
src/ (0, 2022-03-30)
src/gcps.js (919, 2022-03-30)
src/manifests.js (296, 2022-03-30)
src/read-data.js (199, 2022-03-30)
# LMEC Map Warper data to Allmaps
This repository contains scripts that convert data from the Map Warper instance at the Leventhal Map & Education Center at the Boston Public Library (LMEC) to the [Allmaps API](https://github.com/allmaps/annotation/tree/develop) format.
Source data:
- [LMEC's Map Warper ground control points (GCPs)](./data/bpl-mapwarper_control-points-data_1639766994.json)
Conversion:
npm install
npm run gcps
npm run manifests
Resulting files:
- [`maps.ndjson`](./data/maps.ndjson)
- [`manifests.ndjson`](./data/manifests.ndjson)
These files can be uploaded to the Allmaps API using the following commands. To run them, first install [HTTPie](https://httpie.io/cli) and [jq](https://stedolan.github.io/jq/).
jq -s < ./data/manifests.ndjson | http POST http://dev.api.allmaps.org/maps
jq -s < ./data/manifests.ndjson | http POST http://dev.api.allmaps.org/manifests
_Note: these API calls are currently for internal use only._
近期下载者:
相关文件:
收藏者: