提取、转换并加载到openstreetmap。
etl2osm的Python项目详细描述
etl2osm
==
提取、转换并加载到openstreetmap
[![构建状态](https://travis-ci.org/osmottawa/etl2osm.svg?branch=master)(https://travis ci.org/osmottawa/etl2osm)
[![覆盖状态](https://coveralls.io/repos/osmottawa/etl2osm/badge.svg?branch=master&service=github)(https://coveralls.io/github/osmottawa/etl2osm?branch=master)
----
-从多种格式提取和加载数据:
-shapefile
-geojson
-osm
-kml(即将推出)
-replace direction fields(ne>;northeast,sw>;southwest)
-replace street suffix fields(ave>;avenue,st>;street)
-change&;删除属性名
-将文本字段转换为适当的标题库(渥太华安大略省
-将数据转换为wgs84(epsg:4326)
api概述
----
data=etl2osm.extract(“infile.shp”)
>;>data.transform(“config.json”)
>; ````
“outfile.osm”)
````
标准输出将采用GeoJSON格式。
``bash
$etl2osm“infile.shp”--config“config.json”--outfile“outfile.osm”
```
参见[示例](https://github.com/osmottawa/etl2osm/tree/master/examples)了解更多信息。
转换,包括json格式的配置文件。
“maxspeed”:“maxspeed”:“function”:“mph”,“field”:“speed\limi”}
“maxspeed”:“maxspeed”:“function”:“mph”,“field”:“speph”,“field”:“speed”speed“limi”}
“conform”:{“addr:addr:addr:addr:addr:addr:number“{”addr:addr:addr:field“}”addr我是说,
{“function”:“title”,“field”:“st suffix”},
{“function”:“suffix”,“field”:“stsuffix”}
],
“addr:postcode”:{“int”:“true”,“field”:“邮政编码”},
“addr:unit”:“unit”
}
“gdal&;安装fiona
etl2osm依赖于gdal,fiona&lxml;来使用windows安装这些包。
从[用于python扩展包的非官方windows二进制文件](http://www.lfd.uci.edu/~gohlke/pythonlibs/)下载与python版本(python27/34)&;64/32位匹配的适当库。
``bash
$cd包
$pipinstall lxml‑3.4.4‑cp27‑none‑win32.whl
$ pip install Fiona-1.6.2-cp27-none-win32.whl
$ pip install GDAL-1.11.3-cp27-none-win32.whl
```
### PyPi Install
Install ETL2OSM from PyPi's online packages.
```bash
$ pip install etl2osm
```
### GitHub Install
Install the latest version直接从github获得。
`` bash
$git clone https://github.com/osmottawa/etl2osm/
$cd etl2osm
$pip安装。
```
==
提取、转换并加载到openstreetmap
[![构建状态](https://travis-ci.org/osmottawa/etl2osm.svg?branch=master)(https://travis ci.org/osmottawa/etl2osm)
[![覆盖状态](https://coveralls.io/repos/osmottawa/etl2osm/badge.svg?branch=master&service=github)(https://coveralls.io/github/osmottawa/etl2osm?branch=master)
----
-从多种格式提取和加载数据:
-shapefile
-geojson
-osm
-kml(即将推出)
-replace direction fields(ne>;northeast,sw>;southwest)
-replace street suffix fields(ave>;avenue,st>;street)
-change&;删除属性名
-将文本字段转换为适当的标题库(渥太华安大略省
-将数据转换为wgs84(epsg:4326)
api概述
----
data=etl2osm.extract(“infile.shp”)
>;>data.transform(“config.json”)
>;
“outfile.osm”)
````
标准输出将采用GeoJSON格式。
``bash
$etl2osm“infile.shp”--config“config.json”--outfile“outfile.osm”
```
参见[示例](https://github.com/osmottawa/etl2osm/tree/master/examples)了解更多信息。
转换,包括json格式的配置文件。
“maxspeed”:“maxspeed”:“function”:“mph”,“field”:“speed\limi”}
“maxspeed”:“maxspeed”:“function”:“mph”,“field”:“speph”,“field”:“speed”speed“limi”}
“conform”:{“addr:addr:addr:addr:addr:addr:number“{”addr:addr:addr:field“}”addr我是说,
{“function”:“title”,“field”:“st suffix”},
{“function”:“suffix”,“field”:“stsuffix”}
],
“addr:postcode”:{“int”:“true”,“field”:“邮政编码”},
“addr:unit”:“unit”
}
“gdal&;安装fiona
etl2osm依赖于gdal,fiona&lxml;来使用windows安装这些包。
从[用于python扩展包的非官方windows二进制文件](http://www.lfd.uci.edu/~gohlke/pythonlibs/)下载与python版本(python27/34)&;64/32位匹配的适当库。
``bash
$cd包
$pipinstall lxml‑3.4.4‑cp27‑none‑win32.whl
$ pip install Fiona-1.6.2-cp27-none-win32.whl
$ pip install GDAL-1.11.3-cp27-none-win32.whl
```
### PyPi Install
Install ETL2OSM from PyPi's online packages.
```bash
$ pip install etl2osm
```
### GitHub Install
Install the latest version直接从github获得。
`` bash
$git clone https://github.com/osmottawa/etl2osm/
$cd etl2osm
$pip安装。
```