GeoJson

Methods

(static) fixFeature(feature)

Description:
  • 将feature对象处理成标准geojson格式
Source:
  • dataProcess/GeoJsonDataProcess.js, line126
Parameters:
Name Type Description
feature object geojson的feature对象

(static) getGeoFeatures(feature, projectionName)

Description:
  • 获取geojson里的features数组
Source:
  • dataProcess/GeoJsonDataProcess.js, line16
Parameters:
Name Type Description
feature object geojson数据
projectionName string 投影方式名

(static) getProcessedPolygonData(geoJson) → {Array}

Description:
  • 处理成UE蓝图方便操作的Polygon json数据
Source:
  • dataProcess/GeoJsonDataProcess.js, line37
Parameters:
Name Type Description
geoJson * 标准的PolygonData
Returns:
[{点,三角形},{点,三角形}]
Type
Array

(static) multiLineStringToLineStrings(feature, projectionName)

Description:
  • MultiLineString拆成多个单个LineString
Source:
  • dataProcess/GeoJsonDataProcess.js, line192
Parameters:
Name Type Description
feature object geojson的feature对象
projectionName string 投影方式名

(static) multiPointToPoints(feature, projectionName)

Description:
  • MultiPoint拆成多个单个Point
Source:
  • dataProcess/GeoJsonDataProcess.js, line236
Parameters:
Name Type Description
feature object geojson的feature对象
projectionName string 投影方式名

(static) multiPolygonToPolygons(feature, projectionName)

Description:
  • MultiPolygon拆成多个单个Polygon
Source:
  • dataProcess/GeoJsonDataProcess.js, line151
Parameters:
Name Type Description
feature object geojson的feature对象
projectionName string 投影方式名

(inner) fixCoordiates(coords, level)

Description:
  • 将二维坐标数组转为三维坐标数组,将Z补上0
Source:
  • dataProcess/GeoJsonDataProcess.js, line106
Parameters:
Name Type Description
coords Array.<number> 坐标数组
level number 到坐标数组的深度层级

(inner) getPolygonUV(vertices) → {array}

Description:
  • 计算多边形的UV坐标
Source:
  • dataProcess/GeoJsonDataProcess.js, line281
Parameters:
Name Type Description
vertices array 多边形的顶点数组
Returns:
返回一个包含多边形UV坐标的数组
Type
array