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:
java.io.Serializable
public class MeasureGeospatial extends Measure
Geospatial Measure dictionary.- Since:
- 5.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MeasureGeospatial()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) PdfName
getSubType()
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
setCoordinateSystem(CoordinateSystem cs)
A projected or geographic coordinate system dictionary.void
setDisplayCoordinateSystem(GeographicCoordinateSystem cs)
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
-
-
-
-
Method Detail
-
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
public 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.- Parameters:
bounds
-
-
setCoordinateSystem
public void setCoordinateSystem(CoordinateSystem cs)
A projected or geographic coordinate system dictionary.- Parameters:
cs
-
-
setDisplayCoordinateSystem
public void setDisplayCoordinateSystem(GeographicCoordinateSystem cs)
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
public 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.- Parameters:
l
-s
-a
-
-
setGPTS
public void setGPTS(NumberArray pairedpoints)
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
public void setLPTS(NumberArray pairedpoints)
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
-
-
-