Package com.itextpdf.text.pdf.spatial
Class MeasureGeospatial
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.spatial.Measure
com.itextpdf.text.pdf.spatial.MeasureGeospatial
- All Implemented Interfaces:
Serializable
Geospatial Measure dictionary.
- Since:
- 5.1.0
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) PdfName
Gets the subtype.void
setBounds
(NumberArray bounds) An array of numbers that shall be taken pairwise to define a series of points that describes the bounds of an area for which geospatial transformations are valid.void
A projected or geographic coordinate system dictionary.void
Optional coordinate system that allows a document to be authored to display values in a coordinate system other than that associated with the source data.void
setDisplayUnits
(Linear l, Square s, Angular a) Three names that identify in order a linear display unit, an area display unit, and an angular display unit.void
setGPTS
(NumberArray pairedpoints) An array of numbers that shall be taken pairwise, defining points in geographic space as degrees of latitude and longitude.void
setLPTS
(NumberArray pairedpoints) An array of numbers that shall be taken pairwise to define points in a 2D unit square.Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
Constructor Details
-
MeasureGeospatial
public MeasureGeospatial()
-
-
Method Details
-
getSubType
PdfName getSubType()Gets the subtype. In this case RL for a rectalinear coordinate system.- Specified by:
getSubType
in classMeasure
- Returns:
- the name of the SubType.
-
setBounds
An array of numbers that shall be taken pairwise to define a series of points that describes the bounds of an area for which geospatial transformations are valid.- Parameters:
bounds
-
-
setCoordinateSystem
A projected or geographic coordinate system dictionary.- Parameters:
cs
-
-
setDisplayCoordinateSystem
Optional coordinate system that allows a document to be authored to display values in a coordinate system other than that associated with the source data. For example, a map may be created in a state plane coordinate system based on a 1927 datum, but it is possible to display its latitude and longitude values in the WGS84 datum corresponding to values reported by a GPS device.- Parameters:
cs
-
-
setDisplayUnits
Three names that identify in order a linear display unit, an area display unit, and an angular display unit.- Parameters:
l
-s
-a
-
-
setGPTS
An array of numbers that shall be taken pairwise, defining points in geographic space as degrees of latitude and longitude. These values shall be based on the geographic coordinate system described in the GCS dictionary.- Parameters:
pairedpoints
-
-
setLPTS
An array of numbers that shall be taken pairwise to define points in a 2D unit square. The unit square is mapped to the rectangular bounds of theViewport
, image XObject, or forms XObject that contains the measure dictionary. This array shall contain the same number of number pairs as the GPTS array; each number pair is the unit square object position corresponding to the geospatial position in the GPTS array.- Parameters:
pairedpoints
-
-