com.itextpdf.text.pdf.spatial
Class CoordinateSystem
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.spatial.CoordinateSystem
- Direct Known Subclasses:
- GeographicCoordinateSystem, ProjectedCoordinateSystem
public abstract class CoordinateSystem
- extends PdfDictionary
The value of the GCS or DCS entry of a geospatial measure dictionary.
Can be a GeographicCoordinateSystem or a ProjectedCoordinateSystem.
- Since:
- 5.1.0
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary |
CoordinateSystem(PdfName type)
Creates a specific type of CoordinateSystem:
GEOGCS (GeographicCoordinateSystem) or PROJCS (ProjectedCoordinateSystem). |
Method Summary |
void |
setEPSG(int epsg)
Sets the EPSG code. |
void |
setWKT(String wkt)
Sets the Well Known Text. |
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 |
CoordinateSystem
public CoordinateSystem(PdfName type)
- Creates a specific type of CoordinateSystem:
GEOGCS (GeographicCoordinateSystem) or PROJCS (ProjectedCoordinateSystem).
setEPSG
public void setEPSG(int epsg)
- Sets the EPSG code.
- Parameters:
epsg
-
setWKT
public void setWKT(String wkt)
- Sets the Well Known Text.
- Parameters:
wkt
- a String that will be converted to a PdfString in ASCII.
Copyright © 2015. All Rights Reserved.