public class CRSWriter extends Object implements Closeable
| Constructor and Description |
|---|
CRSWriter()
Constructor
|
CRSWriter(Writer writer)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Writer |
getWriter()
Get the writer
|
String |
toString() |
void |
write(AbridgedCoordinateTransformation transformation)
Write an abridged coordinate transformation
|
void |
write(Axis axis)
Write an axis to well-known text
|
void |
write(CoordinateSystem coordinateSystem)
Write a coordinate system to well-known text
|
static String |
write(CRS crs)
Write a coordinate reference system to well-known text
|
void |
write(CRSKeyword keyword)
Write a keyword
|
void |
write(DatumEnsemble datumEnsemble)
Write a datum ensemble to well-known text
|
void |
write(DatumEnsembleMember datumEnsembleMember)
Write a datum ensemble member to well-known text
|
void |
write(DerivingConversion derivingConversion)
Write a deriving conversion to well-known text
|
void |
write(Dynamic dynamic)
Write a dynamic to well-known text
|
void |
write(Ellipsoid ellipsoid)
Write an ellipsoid to well-known text
|
void |
write(Extent extent)
Write an extent to well-known text
|
void |
write(GeographicBoundingBox geographicBoundingBox)
Write a geographic bounding box to well-known text
|
void |
write(Identifier identifier)
Write an identifier to well-known text
|
void |
write(MapProjection mapProjection)
Write a map projection to well-known text
|
void |
write(Number number)
Write a number
|
void |
write(OperationMethod method)
Write an operation method to well-known text
|
void |
write(OperationParameter parameter)
Write an operation parameter to well-known text
|
void |
write(PrimeMeridian primeMeridian)
Write a prime meridian to well-known text
|
void |
write(ReferenceFrame referenceFrame)
Write a reference frame to well-known text
|
void |
write(TemporalDatum temporalDatum)
Write a temporal datum to well-known text
|
void |
write(TemporalExtent temporalExtent)
Write a temporal extent to well-known text
|
void |
write(Unit unit)
Write a unit to well-known text
|
void |
write(Usage usage)
Write a usage to well-known text
|
void |
write(VerticalExtent verticalExtent)
Write a vertical extent to well-known text
|
void |
writeAccuracy(double accuracy)
Write an operation accuracy
|
void |
writeAccuracy(String accuracy)
Write an operation accuracy
|
void |
writeAreaDescription(String areaDescription)
Write an area description to well-known text
|
void |
writeBound(BoundCoordinateReferenceSystem crs)
Write a bound CRS to well-known text
|
void |
writeCompound(CompoundCoordinateReferenceSystem crs)
Write a compound CRS to well-known text
|
void |
writeConcatenatedOperation(ConcatenatedOperation operation)
Write concatenated operation to well-known text
|
void |
writeCoordinateMetadata(CoordinateMetadata metadata)
Write coordinate metadata to well-known text
|
void |
writeCoordinateOperation(CoordinateOperation operation)
Write coordinate operation to well-known text
|
void |
writeCoordinateReferenceSystem(CRSKeyword keyword,
CoordinateReferenceSystem crs)
Write a coordinate reference system with the keyword
|
void |
writeCRS(CRS crs)
Write a CRS to well-known text
|
void |
writeDerived(DerivedCoordinateReferenceSystem crs)
Write a derived CRS to well-known text
|
void |
writeDerivedEngineeringCRS(DerivedCoordinateReferenceSystem crs)
Write a derived engineering CRS to well-known text
|
void |
writeDerivedGeoCRS(DerivedCoordinateReferenceSystem crs)
Write a derived geo CRS to well-known text
|
void |
writeDerivedParametricCRS(DerivedCoordinateReferenceSystem crs)
Write a derived parametric CRS to well-known text
|
void |
writeDerivedProjectedCRS(DerivedCoordinateReferenceSystem crs)
Write a derived projected CRS to well-known text
|
void |
writeDerivedTemporalCRS(DerivedCoordinateReferenceSystem crs)
Write a derived temporal CRS to well-known text
|
void |
writeDerivedVerticalCRS(DerivedCoordinateReferenceSystem crs)
Write a derived vertical CRS to well-known text
|
void |
writeEngineering(EngineeringCoordinateReferenceSystem crs)
Write an engineering CRS to well-known text
|
void |
writeGeo(GeoCoordinateReferenceSystem crs)
Write a geodetic or geographic CRS to well-known text
|
void |
writeIdentifiers(List<Identifier> identifiers)
Write identifiers to well-known text
|
void |
writeInterpolation(CoordinateReferenceSystem crs)
Write a interpolation coordinate reference system
|
void |
writeKeywordDelimitedQuotedText(CRSKeyword keyword,
String text)
Write a keyword delimited text
|
void |
writeLeftDelimiter()
Write a left delimiter
|
void |
writeNumberOrQuotedText(String text)
Write a number or quoted text if not a number
|
void |
writeParameters(List<OperationParameter> parameters)
Write operation parameters and operation parameter files to well-known
text
|
void |
writeParametric(ParametricCoordinateReferenceSystem crs)
Write a parametric CRS to well-known text
|
void |
writePointMotionOperation(PointMotionOperation operation)
Write point motion operation to well-known text
|
static String |
writePretty(CRS crs)
Write a coordinate reference system to well-known pretty text, 4 space
indents
|
static String |
writePretty(CRS crs,
String indent)
Write a coordinate reference system to well-known pretty text
|
static String |
writePretty(CRS crs,
String newline,
String indent)
Write a coordinate reference system to well-known pretty text
|
static String |
writePretty(String wkt)
Write well-known text to well-known pretty text, 4 space indents
|
static String |
writePretty(String wkt,
String indent)
Write well-known text to well-known pretty text
|
static String |
writePretty(String wkt,
String newline,
String indent)
Write well-known text to well-known pretty text
|
static String |
writePrettyNoIndent(CRS crs)
Write a coordinate reference system to well-known pretty text, no indents
|
static String |
writePrettyNoIndent(String wkt)
Write well-known text to well-known pretty text, no indents
|
static String |
writePrettyTabIndent(CRS crs)
Write a coordinate reference system to well-known pretty text, tab
indents
|
static String |
writePrettyTabIndent(String wkt)
Write well-known text to well-known pretty text, tab indents
|
void |
writeProjected(ProjectedCoordinateReferenceSystem crs)
Write a projected CRS to well-known text
|
void |
writeQuotedText(String text)
Write the text as quoted
|
void |
writeRemark(String remark)
Write a remark to well-known text
|
void |
writeRightDelimiter()
Write a right delimiter
|
void |
writeScope(String scope)
Write a scope to well-known text
|
void |
writeScopeExtentIdentifierRemark(ScopeExtentIdentifierRemark object)
Write the CRS usages (scope and extent), identifiers, and remark
|
void |
writeSeparator()
Write a separator
|
void |
writeSource(CoordinateReferenceSystem crs)
Write a source coordinate reference system
|
void |
writeTarget(CoordinateReferenceSystem crs)
Write a target coordinate reference system
|
void |
writeTemporal(TemporalCoordinateReferenceSystem crs)
Write a temporal CRS to well-known text
|
void |
writeUsages(List<Usage> usages)
Write usages to well-known text
|
void |
writeVersion(String version)
Write an operation version
|
void |
writeVertical(VerticalCoordinateReferenceSystem crs)
Write a vertical CRS to well-known text
|
public CRSWriter()
public CRSWriter(Writer writer)
writer - writerpublic static String write(CRS crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic static String writePretty(CRS crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic static String writePrettyTabIndent(CRS crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic static String writePrettyNoIndent(CRS crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic static String writePretty(CRS crs, String indent) throws IOException
crs - coordinate reference systemindent - indent stringIOException - upon failure to writepublic static String writePretty(CRS crs, String newline, String indent) throws IOException
crs - coordinate reference systemnewline - newline stringindent - indent stringIOException - upon failure to writepublic static String writePretty(String wkt) throws IOException
wkt - well-known textIOException - upon failure to writepublic static String writePrettyTabIndent(String wkt) throws IOException
wkt - well-known textIOException - upon failure to writepublic static String writePrettyNoIndent(String wkt) throws IOException
wkt - well-known textIOException - upon failure to writepublic static String writePretty(String wkt, String indent) throws IOException
wkt - well-known textindent - indent stringIOException - upon failure to writepublic static String writePretty(String wkt, String newline, String indent) throws IOException
wkt - well-known textnewline - newline stringindent - indent stringIOException - upon failure to writepublic Writer getWriter()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void writeCRS(CRS crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic void write(CRSKeyword keyword) throws IOException
keyword - keywordIOException - upon failure to writepublic void writeLeftDelimiter()
throws IOException
IOException - upon failure to writepublic void writeRightDelimiter()
throws IOException
IOException - upon failure to writepublic void writeSeparator()
throws IOException
IOException - upon failure to writepublic void writeQuotedText(String text) throws IOException
text - textIOException - upon failure to writepublic void write(Number number) throws IOException
number - numberIOException - upon failure to writepublic void writeNumberOrQuotedText(String text) throws IOException
text - textIOException - upon failure to writepublic void writeKeywordDelimitedQuotedText(CRSKeyword keyword, String text) throws IOException
keyword - keywordtext - textIOException - upon failure to writepublic void writeGeo(GeoCoordinateReferenceSystem crs) throws IOException
crs - geodetic or geographic coordinate reference systemIOException - upon failure to writepublic void writeProjected(ProjectedCoordinateReferenceSystem crs) throws IOException
crs - projected coordinate reference systemIOException - upon failure to writepublic void writeVertical(VerticalCoordinateReferenceSystem crs) throws IOException
crs - vertical coordinate reference systemIOException - upon failure to writepublic void writeEngineering(EngineeringCoordinateReferenceSystem crs) throws IOException
crs - engineering coordinate reference systemIOException - upon failure to writepublic void writeParametric(ParametricCoordinateReferenceSystem crs) throws IOException
crs - parametric coordinate reference systemIOException - upon failure to writepublic void writeTemporal(TemporalCoordinateReferenceSystem crs) throws IOException
crs - temporal coordinate reference systemIOException - upon failure to writepublic void writeDerived(DerivedCoordinateReferenceSystem crs) throws IOException
crs - temporal coordinate reference systemIOException - upon failure to writepublic void writeDerivedGeoCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived geo coordinate reference systemIOException - upon failure to writepublic void writeDerivedProjectedCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived projected coordinate reference systemIOException - upon failure to writepublic void writeDerivedVerticalCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived vertical coordinate reference systemIOException - upon failure to writepublic void writeDerivedEngineeringCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived engineering coordinate reference systemIOException - upon failure to writepublic void writeDerivedParametricCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived parametric coordinate reference systemIOException - upon failure to writepublic void writeDerivedTemporalCRS(DerivedCoordinateReferenceSystem crs) throws IOException
crs - derived temporal coordinate reference systemIOException - upon failure to writepublic void writeCompound(CompoundCoordinateReferenceSystem crs) throws IOException
crs - compound coordinate reference systemIOException - upon failure to writepublic void writeCoordinateMetadata(CoordinateMetadata metadata) throws IOException
metadata - coordinate metadataIOException - upon failure to writepublic void writeCoordinateOperation(CoordinateOperation operation) throws IOException
operation - coordinate operationIOException - upon failure to writepublic void writePointMotionOperation(PointMotionOperation operation) throws IOException
operation - point motion operationIOException - upon failure to writepublic void writeConcatenatedOperation(ConcatenatedOperation operation) throws IOException
operation - concatenated operationIOException - upon failure to writepublic void writeBound(BoundCoordinateReferenceSystem crs) throws IOException
crs - bound coordinate reference systemIOException - upon failure to writepublic void writeScopeExtentIdentifierRemark(ScopeExtentIdentifierRemark object) throws IOException
object - scope extent identifier remark objectIOException - upon failure to writepublic void write(ReferenceFrame referenceFrame) throws IOException
referenceFrame - reference frameIOException - upon failure to writepublic void write(DatumEnsemble datumEnsemble) throws IOException
datumEnsemble - datum ensembleIOException - upon failure to writepublic void write(DatumEnsembleMember datumEnsembleMember) throws IOException
datumEnsembleMember - datum ensemble memberIOException - upon failure to writepublic void write(Dynamic dynamic) throws IOException
dynamic - dynamicIOException - upon failure to writepublic void write(PrimeMeridian primeMeridian) throws IOException
primeMeridian - prime meridianIOException - upon failure to writepublic void write(Ellipsoid ellipsoid) throws IOException
ellipsoid - ellipsoidIOException - upon failure to writepublic void write(Unit unit) throws IOException
unit - unitIOException - upon failure to writepublic void writeIdentifiers(List<Identifier> identifiers) throws IOException
identifiers - identifiersIOException - upon failure to writepublic void write(Identifier identifier) throws IOException
identifier - identifierIOException - upon failure to writepublic void write(CoordinateSystem coordinateSystem) throws IOException
coordinateSystem - coordinate systemIOException - upon failure to writepublic void write(Axis axis) throws IOException
axis - axisIOException - upon failure to writepublic void writeRemark(String remark) throws IOException
remark - remarkIOException - upon failure to writepublic void writeUsages(List<Usage> usages) throws IOException
usages - usagesIOException - upon failure to writepublic void write(Usage usage) throws IOException
usage - usageIOException - upon failure to writepublic void writeScope(String scope) throws IOException
scope - scopeIOException - upon failure to writepublic void write(Extent extent) throws IOException
extent - extentIOException - upon failure to writepublic void writeAreaDescription(String areaDescription) throws IOException
areaDescription - area descriptionIOException - upon failure to writepublic void write(GeographicBoundingBox geographicBoundingBox) throws IOException
geographicBoundingBox - geographic bounding boxIOException - upon failure to writepublic void write(VerticalExtent verticalExtent) throws IOException
verticalExtent - vertical extentIOException - upon failure to writepublic void write(TemporalExtent temporalExtent) throws IOException
temporalExtent - temporal extentIOException - upon failure to writepublic void write(MapProjection mapProjection) throws IOException
mapProjection - map projectionIOException - upon failure to writepublic void write(OperationMethod method) throws IOException
method - operation methodIOException - upon failure to writepublic void write(OperationParameter parameter) throws IOException
parameter - operation parameterIOException - upon failure to writepublic void write(TemporalDatum temporalDatum) throws IOException
temporalDatum - temporal datumIOException - upon failure to writepublic void write(DerivingConversion derivingConversion) throws IOException
derivingConversion - deriving conversionIOException - upon failure to writepublic void writeParameters(List<OperationParameter> parameters) throws IOException
parameters - operation parametersIOException - upon failure to writepublic void writeVersion(String version) throws IOException
version - operation versionIOException - upon failure to writepublic void writeSource(CoordinateReferenceSystem crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic void writeTarget(CoordinateReferenceSystem crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic void writeInterpolation(CoordinateReferenceSystem crs) throws IOException
crs - coordinate reference systemIOException - upon failure to writepublic void writeCoordinateReferenceSystem(CRSKeyword keyword, CoordinateReferenceSystem crs) throws IOException
keyword - CRS keywordcrs - coordinate reference systemIOException - upon failure to writepublic void writeAccuracy(double accuracy)
throws IOException
accuracy - operation accuracyIOException - upon failure to writepublic void writeAccuracy(String accuracy) throws IOException
accuracy - operation accuracyIOException - upon failure to writepublic void write(AbridgedCoordinateTransformation transformation) throws IOException
transformation - abridged coordinate transformationIOException - upon failure to writeCopyright © 2021 National Geospatial-Intelligence Agency. All rights reserved.