方法
方法概述
åç§° | 返回值类型 | æè¿° |
---|---|---|
project |
Geometry
|
Array.<Geometry>
|
|
方法详情
# 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
})
)