當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


JavaScript ArcGIS normalizeUtils.getDenormalizedExtent用法及代碼示例

基本信息

以下是所在類或對象的基本信息。

AMD: require(["esri/geometry/support/normalizeUtils"], (normalizeUtils) => { /* code goes here */ });

ESM: import * as normalizeUtils from "@arcgis/core/geometry/support/normalizeUtils";

對象: esri/geometry/support/normalizeUtils

自從:用於 JavaScript 4.3 的 ArcGIS API

用法說明

normalizeUtils.getDenormalizedExtent函數(或屬性)的定義如下:

getDenormalizedExtent (geometry) {Extent}


自從:ArcGIS 適用於 JavaScript 4.21 的 API

如果日期線上包含幾何圖形,則返回小於歸一化寬度的日期線上的 extent。輸入幾何圖形必須經過規範化,並且其spatialReference 必須是 Web Mercator 或 WGS84。

參數:

類型說明
geometry Geometry

用於創建非規範化範圍的幾何圖形。幾何圖形應該是 polygonpolylinemultipoint 幾何圖形。如果將隻有一個點的 pointmultipoint 用作輸入幾何,則此方法返回 null。如果將 extent 用作輸入幾何,它將返回克隆範圍。

返回:

類型 說明
Extent 非規範化範圍。新範圍與幾何的正常範圍相同或較小。

例子:

// create an extent that goes over the dateline
// as the points are cross the dateline
const multipoint = new Multipoint({
  points: [
    [158.6082458495678, 59.91028747107214],
    [-145.98220825200923, 60.23981116998903]
  ]
});
const extent = normalizeUtils.getDenormalizedExtent(multipoint);

相關用法


注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 normalizeUtils.getDenormalizedExtent。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。