AddPageGeoViewport

页面属性、测量和坐标单位

描述

按 ISO 32000-2 §12.9 向所选页面追加地理空间测量视口(/VP),带 /Subtype /GEO 测量字典、/GCS 坐标系和四角控制点(/LPTS 与 /GPTS)

语法

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