方法
# static project(geometry, outSpatialReference)
将几何对象投影到指定坐标系中
参数:
| 名称 | 类型 | 描述 | 
|---|---|---|
| geometry | Geometry | Array.<geometry> | 要投影的几何或几何数组 | 
| outSpatialReference | SpatialReference | 目标参考系 | 
示例
const projectedGeometry = zondy.geometry.Projection.project(
  new zondy.geometry.Extent({
    xmin: 12062959.621822732,
    ymin: 3379793.138124517,
    xmax: 12927637.10614421,
    ymax: 3931626.287996913,
    spatialReference: new zondy.SpatialReference({
      wkid: 3857
    })
  }),
  new zondy.SpatialReference({
    wkid: 4326
  })
)const projectedGeometry = zondy.geometry.Projection.project(
  new zondy.geometry.Extent({
    xmin: -45257.10778559791,
    ymin: 3212885.1836444484,
    xmax: 705989.8953363781,
    ymax: 3691623.86404564,
    spatialReference: new zondy.SpatialReference({
      wkid: 4547,
      wkt: '+proj=tmerc +lat_0=0 +lon_0=114 +k=1 +x_0=500000 +y_0=0 +ellps=GRS80 +units=m +no_defs'
    })
  }),
  new zondy.SpatialReference({
    wkid: 4326
  })
)