AddPageGeoViewportA
頁面屬性、測量和座標單位
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 AddPageGeoViewport 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
依 ISO 32000-2 §12.9 在所選頁面附加地理量測視埠(/VP),帶 /Subtype /GEO 量測字典、/GCS 座標系統與四角控制點(/LPTS 與 /GPTS)
語法
Delphi
Function DLAddPageGeoViewportA(InstanceID: Integer; Left, Bottom, Right, Top: Double; EPSG: Integer; LatMin, LonMin, LatMax, LonMax: Double; Name: PAnsiChar): Integer;
DLL
int DLAddPageGeoViewportA(int InstanceID, double Left, double Bottom, double Right, double Top, int EPSG, double LatMin, double LonMin, double LatMax, double LonMax, const char* Name);
參數
| Left | 視埠包圍盒的頁面左側座標 |
|---|---|
| Bottom | 視埠包圍盒的頁面底部座標 |
| Right | 視埠包圍盒的頁面右側座標 |
| Top | 視埠包圍盒的頁面頂部座標 |
| EPSG | 座標系統 EPSG 代碼(例如 WGS 84 為 4326,Web Mercator 為 3857);代碼 4000 到 4999 寫為地理座標系統(/GEOGCS),其餘代碼寫為投影座標系統(/PROJCS),僅透過 /EPSG 識別 |
| LatMin | 地理包圍盒的最小緯度(度) |
| LonMin | 地理包圍盒的最小經度(度) |
| LatMax | 地理包圍盒的最大緯度(度) |
| LonMax | 地理包圍盒的最大經度(度) |
| Name | 選配的視埠名稱,寫入 /Name |
傳回值
地理視埠成功附加到所選頁面時為 1,失敗時為 0
另請參閱
PagePointToLatLon, LatLonToPagePoint, AddPageMeasureViewport