parser-gml
v0.2.2
Published
将gml转为geojson,gml to geojson
Downloads
31
Readme
parser-gml
Intro
将地理空间数据gml格式转为geojson
gml to geojson
Installation
npm install parser-gml
yarn add parser-gml
Api
- getGeoJson(data,options?)
/*
* data:data,//gml data,string/xml,必须,否则解析结果为null
* option:{
shape:"shape",空间数据字段,默认包含geometry,geom,the_geom,shape,空间字段是其不包含以上在这配置,忽略大小写
} //配置参数,可选
* */
Usage
import {getGeoJson} from 'parser-gml';
let result=getGeoJson(data)
Html use CDN
<script src='https://unpkg.com/parser-gml/dist/parser-gml.js' ></script>
<script src='https://unpkg.com/parser-gml/dist/parser-gml.min.js' ></script>
<script>
var result=parserGml.getGeoJson(data)
</script>