(static) fixFeature(feature)
将feature对象处理成标准geojson格式
参数说明:
Name | Type | Description |
---|---|---|
feature |
object | geojson的feature对象 |
(static) getGeoFeatures(feature, projectionName)
获取geojson里的features数组
参数说明:
Name | Type | Description |
---|---|---|
feature |
object | geojson数据 |
projectionName |
string | 投影方式名 |
(static) getProcessedPolygonData(geoJson) → {Array}
处理成UE蓝图方便操作的Polygon json数据
参数说明:
Name | Type | Description |
---|---|---|
geoJson |
* | 标准的PolygonData |
Returns:
[{点,三角形},{点,三角形}]
- Type
- Array
(static) multiLineStringToLineStrings(feature, projectionName)
MultiLineString拆成多个单个LineString
参数说明:
Name | Type | Description |
---|---|---|
feature |
object | geojson的feature对象 |
projectionName |
string | 投影方式名 |
(static) multiPointToPoints(feature, projectionName)
MultiPoint拆成多个单个Point
参数说明:
Name | Type | Description |
---|---|---|
feature |
object | geojson的feature对象 |
projectionName |
string | 投影方式名 |
(static) multiPolygonToPolygons(feature, projectionName)
MultiPolygon拆成多个单个Polygon
参数说明:
Name | Type | Description |
---|---|---|
feature |
object | geojson的feature对象 |
projectionName |
string | 投影方式名 |
(inner) fixCoordiates(coords, level)
将二维坐标数组转为三维坐标数组,将Z补上0
参数说明:
Name | Type | Description |
---|---|---|
coords |
Array.<number> | 坐标数组 |
level |
number | 到坐标数组的深度层级 |
(inner) getPolygonUV(vertices) → {array}
计算多边形的UV坐标
参数说明:
Name | Type | Description |
---|---|---|
vertices |
array | 多边形的顶点数组 |
Returns:
返回一个包含多边形UV坐标的数组
- Type
- array
module: GeoJson