AddPageGeoViewport

ページプロパティ、測定と座標単位

説明

ISO 32000-2 §12.9 に従い、/Subtype /GEO 測定辞書、/GCS 座標系、4 隅の制御点(/LPTS と /GPTS)を備えたジオスペーシャル測定ビューポート(/VP)を選択ページへ追加します

構文

Delphi

Function AddPageGeoViewport(Left, Bottom, Right, Top: Double; EPSG: Integer; LatMin, LonMin, LatMax, LonMax: Double; Const Name: WideString): Integer;

ActiveX

Function PDFlib::AddPageGeoViewport(Left As Double, Bottom As Double, Right As Double, Top As Double, EPSG As Long, LatMin As Double, LonMin As Double, LatMax As Double, LonMax As Double, Name As String) As Long

DLL

int DLAddPageGeoViewport(int InstanceID, double Left, double Bottom, double Right, double Top, int EPSG, double LatMin, double LonMin, double LatMax, double LonMax, const wchar_t* Name);
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