CRSWriter
Objective-C
@interface CRSWriter : NSObject
Swift
class CRSWriter : NSObject
Well-Known Text writer
-
Write a coordinate reference system to well-known pretty text
Declaration
Objective-C
+ (NSString *)writePretty:(CRSObject *)crs withIndent:(NSString *)indent;
Swift
class func writePretty(_ crs: CRSObject!, withIndent indent: String!) -> String!
Parameters
crs
coordinate reference system
indent
indent string
Return Value
well-known pretty text
-
Write a coordinate reference system to well-known pretty text
Declaration
Objective-C
+ (NSString *)writePretty:(CRSObject *)crs withNewline:(NSString *)newline andIndent:(NSString *)indent;
Swift
class func writePretty(_ crs: CRSObject!, withNewline newline: String!, andIndent indent: String!) -> String!
Parameters
crs
coordinate reference system
newline
newline string
indent
indent string
Return Value
well-known pretty text
-
Write well-known text to well-known pretty text, 4 space indents
Declaration
Objective-C
+ (NSString *)writePrettyWithText:(NSString *)wkt;
Swift
class func writePretty(withText wkt: String!) -> String!
Parameters
wkt
well-known text
Return Value
well-known pretty text
-
Write well-known text to well-known pretty text, tab indents
Declaration
Objective-C
+ (NSString *)writePrettyTabIndentWithText:(NSString *)wkt;
Swift
class func writePrettyTabIndent(withText wkt: String!) -> String!
Parameters
wkt
well-known text
Return Value
well-known pretty text
-
Write well-known text to well-known pretty text, no indents
Declaration
Objective-C
+ (NSString *)writePrettyNoIndentWithText:(NSString *)wkt;
Swift
class func writePrettyNoIndent(withText wkt: String!) -> String!
Parameters
wkt
well-known text
Return Value
well-known pretty text
-
Write well-known text to well-known pretty text
Declaration
Objective-C
+ (NSString *)writePrettyWithText:(NSString *)wkt andIndent:(NSString *)indent;
Swift
class func writePretty(withText wkt: String!, andIndent indent: String!) -> String!
Parameters
wkt
well-known text
indent
indent string
Return Value
well-known pretty text
-
Write well-known text to well-known pretty text
Declaration
Objective-C
+ (NSString *)writePrettyWithText:(NSString *)wkt andNewline:(NSString *)newline andIndent:(NSString *)indent;
Swift
class func writePretty(withText wkt: String!, andNewline newline: String!, andIndent indent: String!) -> String!
Parameters
wkt
well-known text
newline
newline string
indent
indent string
Return Value
well-known pretty text
-
Create
Declaration
Objective-C
+ (CRSWriter *)create;
Swift
class func create() -> CRSWriter!
Return Value
new instance
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new instance
-
Initializer
Declaration
Objective-C
- (instancetype)initWithText:(NSMutableString *)text;
Swift
init!(text: NSMutableString!)
Parameters
text
mutable string
-
Get the well-known text
Declaration
Objective-C
- (NSMutableString *)text;
Swift
func text() -> NSMutableString!
Return Value
text
-
Write a CRS to well-known text
Parameters
crs
coordinate reference system
-
Write a keyword type
Declaration
Objective-C
- (void)writeKeywordType:(enum CRSKeywordType)keyword;
Swift
func write(_ keyword: CRSKeywordType)
Parameters
keyword
keyword type
-
Write a keyword
Declaration
Objective-C
- (void)writeKeyword:(CRSKeyword *)keyword;
Swift
func write(_ keyword: CRSKeyword!)
Parameters
keyword
keyword
-
Write a left delimiter
Declaration
Objective-C
- (void)writeLeftDelimiter;
Swift
func writeLeftDelimiter()
-
Write a right delimiter
Declaration
Objective-C
- (void)writeRightDelimiter;
Swift
func writeRightDelimiter()
-
Write a separator
Declaration
Objective-C
- (void)writeSeparator;
Swift
func writeSeparator()
-
Write the text as quoted
Declaration
Objective-C
- (void)writeQuotedText:(NSString *)text;
Swift
func writeQuotedText(_ text: String!)
Parameters
text
text
-
Write a number
Declaration
Objective-C
- (void)writeNumber:(NSNumber *)number;
Swift
func write(_ number: NSNumber!)
Parameters
number
number
-
Write a number or quoted text if not a number
Declaration
Objective-C
- (void)writeNumberOrQuotedText:(NSString *)text;
Swift
func writeNumberOrQuotedText(_ text: String!)
Parameters
text
text
-
Write a double
Declaration
Objective-C
- (void)writeDouble:(double)value;
Swift
func write(_ value: Double)
Parameters
value
double value
-
Write an int
Declaration
Objective-C
- (void)writeInt:(int)value;
Swift
func write(_ value: Int32)
Parameters
value
int value
-
Write a keyword type delimited text
Declaration
Objective-C
- (void)writeKeywordType:(enum CRSKeywordType)keyword withDelimitedQuotedText:(NSString *)text;
Swift
func write(_ keyword: CRSKeywordType, withDelimitedQuotedText text: String!)
Parameters
keyword
keyword type
text
text
-
Write a keyword delimited text
Declaration
Objective-C
- (void)writeKeyword:(CRSKeyword *)keyword withDelimitedQuotedText:(NSString *)text;
Swift
func write(_ keyword: CRSKeyword!, withDelimitedQuotedText text: String!)
Parameters
keyword
keyword
text
text
-
Write a geodetic or geographic CRS to well-known text
Declaration
Objective-C
- (void)writeGeo:(CRSGeoCoordinateReferenceSystem *)crs;
Swift
func writeGeo(_ crs: CRSGeoCoordinateReferenceSystem!)
Parameters
crs
geodetic or geographic coordinate reference system
-
Write a projected CRS to well-known text
Declaration
Objective-C
- (void)writeProjected:(CRSProjectedCoordinateReferenceSystem *)crs;
Swift
func writeProjected(_ crs: CRSProjectedCoordinateReferenceSystem!)
Parameters
crs
projected coordinate reference system
-
Write a vertical CRS to well-known text
Declaration
Objective-C
- (void)writeVertical:(CRSVerticalCoordinateReferenceSystem *)crs;
Swift
func writeVertical(_ crs: CRSVerticalCoordinateReferenceSystem!)
Parameters
crs
vertical coordinate reference system
-
Write an engineering CRS to well-known text
Declaration
Objective-C
- (void)writeEngineering:(CRSEngineeringCoordinateReferenceSystem *)crs;
Swift
func writeEngineering(_ crs: CRSEngineeringCoordinateReferenceSystem!)
Parameters
crs
engineering coordinate reference system
-
Write a parametric CRS to well-known text
Declaration
Objective-C
- (void)writeParametric:(CRSParametricCoordinateReferenceSystem *)crs;
Swift
func writeParametric(_ crs: CRSParametricCoordinateReferenceSystem!)
Parameters
crs
parametric coordinate reference system
-
Write a temporal CRS to well-known text
Declaration
Objective-C
- (void)writeTemporal:(CRSTemporalCoordinateReferenceSystem *)crs;
Swift
func writeTemporal(_ crs: CRSTemporalCoordinateReferenceSystem!)
Parameters
crs
temporal coordinate reference system
-
Write a derived CRS to well-known text
Declaration
Objective-C
- (void)writeDerived:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerived(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
temporal coordinate reference system
-
Write a derived geo CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedGeoCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedGeoCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived geo coordinate reference system
-
Write a derived projected CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedProjectedCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedProjectedCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived projected coordinate reference system
-
Write a derived vertical CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedVerticalCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedVerticalCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived vertical coordinate reference system
-
Write a derived engineering CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedEngineeringCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedEngineeringCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived engineering coordinate reference system
-
Write a derived parametric CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedParametricCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedParametricCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived parametric coordinate reference system
-
Write a derived temporal CRS to well-known text
Declaration
Objective-C
- (void)writeDerivedTemporalCRS:(CRSDerivedCoordinateReferenceSystem *)crs;
Swift
func writeDerivedTemporalCRS(_ crs: CRSDerivedCoordinateReferenceSystem!)
Parameters
crs
derived temporal coordinate reference system
-
Write a compound CRS to well-known text
Declaration
Objective-C
- (void)writeCompound:(CRSCompoundCoordinateReferenceSystem *)crs;
Swift
func writeCompound(_ crs: CRSCompoundCoordinateReferenceSystem!)
Parameters
crs
compound coordinate reference system
-
Write coordinate metadata to well-known text
Declaration
Objective-C
- (void)writeCoordinateMetadata:(CRSCoordinateMetadata *)metadata;
Swift
func write(_ metadata: CRSCoordinateMetadata!)
Parameters
metadata
coordinate metadata
-
Write coordinate operation to well-known text
Declaration
Objective-C
- (void)writeCoordinateOperation:(CRSCoordinateOperation *)operation;
Swift
func write(_ operation: CRSCoordinateOperation!)
Parameters
operation
coordinate operation
-
Write point motion operation to well-known text
Declaration
Objective-C
- (void)writePointMotionOperation:(CRSPointMotionOperation *)operation;
Swift
func write(_ operation: CRSPointMotionOperation!)
Parameters
operation
point motion operation
-
Write concatenated operation to well-known text
Declaration
Objective-C
- (void)writeConcatenatedOperation:(CRSConcatenatedOperation *)operation;
Swift
func write(_ operation: CRSConcatenatedOperation!)
Parameters
operation
concatenated operation
-
Write a bound CRS to well-known text
Declaration
Objective-C
- (void)writeBound:(CRSBoundCoordinateReferenceSystem *)crs;
Swift
func writeBound(_ crs: CRSBoundCoordinateReferenceSystem!)
Parameters
crs
bound coordinate reference system
-
Write the CRS usages (scope and extent), identifiers, and remark
Declaration
Objective-C
- (void)writeScopeExtentIdentifierRemark: (NSObject<CRSScopeExtentIdentifierRemark> *)object;
Swift
func write(_ object: (any CRSScopeExtentIdentifierRemark)!)
Parameters
object
scope extent identifier remark object
-
Write a reference frame to well-known text
Declaration
Objective-C
- (void)writeReferenceFrame:(CRSReferenceFrame *)referenceFrame;
Swift
func write(_ referenceFrame: CRSReferenceFrame!)
Parameters
referenceFrame
reference frame
-
Write a datum ensemble to well-known text
Declaration
Objective-C
- (void)writeDatumEnsemble:(CRSDatumEnsemble *)datumEnsemble;
Swift
func write(_ datumEnsemble: CRSDatumEnsemble!)
Parameters
datumEnsemble
datum ensemble
-
Write a datum ensemble member to well-known text
Declaration
Objective-C
- (void)writeDatumEnsembleMember:(CRSDatumEnsembleMember *)datumEnsembleMember;
Swift
func write(_ datumEnsembleMember: CRSDatumEnsembleMember!)
Parameters
datumEnsembleMember
datum ensemble member
-
Write a dynamic to well-known text
Declaration
Objective-C
- (void)writeDynamic:(CRSDynamic *)dynamic;
Swift
func write(_ dynamic: CRSDynamic!)
Parameters
dynamic
dynamic
-
Write a prime meridian to well-known text
Declaration
Objective-C
- (void)writePrimeMeridian:(CRSPrimeMeridian *)primeMeridian;
Swift
func write(_ primeMeridian: CRSPrimeMeridian!)
Parameters
primeMeridian
prime meridian
-
Write an ellipsoid to well-known text
Declaration
Objective-C
- (void)writeEllipsoid:(CRSEllipsoid *)ellipsoid;
Swift
func write(_ ellipsoid: CRSEllipsoid!)
Parameters
ellipsoid
ellipsoid
-
Write a unit to well-known text
Parameters
unit
unit
-
Write identifiers to well-known text
Declaration
Objective-C
- (void)writeIdentifiers:(NSArray<CRSIdentifier *> *)identifiers;
Swift
func write(_ identifiers: [CRSIdentifier]!)
Parameters
identifiers
identifiers
-
Write an identifier to well-known text
Declaration
Objective-C
- (void)writeIdentifier:(CRSIdentifier *)identifier;
Swift
func write(_ identifier: CRSIdentifier!)
Parameters
identifier
identifier
-
Write a coordinate system to well-known text
Declaration
Objective-C
- (void)writeCoordinateSystem:(CRSCoordinateSystem *)coordinateSystem;
Swift
func write(_ coordinateSystem: CRSCoordinateSystem!)
Parameters
coordinateSystem
coordinate system
-
Write an axis to well-known text
Parameters
axis
axis
-
Write a remark to well-known text
Declaration
Objective-C
- (void)writeRemark:(NSString *)remark;
Swift
func writeRemark(_ remark: String!)
Parameters
remark
remark
-
Write a usage to well-known text
Parameters
usage
usage
-
Write a scope to well-known text
Declaration
Objective-C
- (void)writeScope:(NSString *)scope;
Swift
func writeScope(_ scope: String!)
Parameters
scope
scope
-
Write an area description to well-known text
Declaration
Objective-C
- (void)writeAreaDescription:(NSString *)areaDescription;
Swift
func writeAreaDescription(_ areaDescription: String!)
Parameters
areaDescription
area description
-
Write a geographic bounding box to well-known text
Declaration
Objective-C
- (void)writeGeographicBoundingBox: (CRSGeographicBoundingBox *)geographicBoundingBox;
Swift
func write(_ geographicBoundingBox: CRSGeographicBoundingBox!)
Parameters
geographicBoundingBox
geographic bounding box
-
Write a vertical extent to well-known text
Declaration
Objective-C
- (void)writeVerticalExtent:(CRSVerticalExtent *)verticalExtent;
Swift
func write(_ verticalExtent: CRSVerticalExtent!)
Parameters
verticalExtent
vertical extent
-
Write a temporal extent to well-known text
Declaration
Objective-C
- (void)writeTemporalExtent:(CRSTemporalExtent *)temporalExtent;
Swift
func write(_ temporalExtent: CRSTemporalExtent!)
Parameters
temporalExtent
temporal extent
-
Write a map projection to well-known text
Declaration
Objective-C
- (void)writeMapProjection:(CRSMapProjection *)mapProjection;
Swift
func write(_ mapProjection: CRSMapProjection!)
Parameters
mapProjection
map projection
-
Write an operation method to well-known text
Declaration
Objective-C
- (void)writeOperationMethod:(CRSOperationMethod *)method;
Swift
func write(_ method: CRSOperationMethod!)
Parameters
method
operation method
-
Write an operation parameter to well-known text
Declaration
Objective-C
- (void)writeOperationParameter:(CRSOperationParameter *)parameter;
Swift
func write(_ parameter: CRSOperationParameter!)
Parameters
parameter
operation parameter
-
Write a temporal datum to well-known text
Declaration
Objective-C
- (void)writeTemporalDatum:(CRSTemporalDatum *)temporalDatum;
Swift
func write(_ temporalDatum: CRSTemporalDatum!)
Parameters
temporalDatum
temporal datum
-
Write a deriving conversion to well-known text
Declaration
Objective-C
- (void)writeDerivingConversion:(CRSDerivingConversion *)derivingConversion;
Swift
func write(_ derivingConversion: CRSDerivingConversion!)
Parameters
derivingConversion
deriving conversion
-
Write operation parameters and operation parameter files to well-known text
Declaration
Objective-C
- (void)writeOperationParameters:(NSArray<CRSOperationParameter *> *)parameters;
Swift
func write(_ parameters: [CRSOperationParameter]!)
Parameters
parameters
operation parameters
-
Write an operation version
Declaration
Objective-C
- (void)writeVersion:(NSString *)version;
Swift
func writeVersion(_ version: String!)
Parameters
version
operation version
-
Write a source coordinate reference system
Declaration
Objective-C
- (void)writeSource:(CRSCoordinateReferenceSystem *)crs;
Swift
func writeSource(_ crs: CRSCoordinateReferenceSystem!)
Parameters
crs
coordinate reference system
-
Write a target coordinate reference system
Declaration
Objective-C
- (void)writeTarget:(CRSCoordinateReferenceSystem *)crs;
Swift
func writeTarget(_ crs: CRSCoordinateReferenceSystem!)
Parameters
crs
coordinate reference system
-
Write a interpolation coordinate reference system
Declaration
Objective-C
- (void)writeInterpolation:(CRSCoordinateReferenceSystem *)crs;
Swift
func writeInterpolation(_ crs: CRSCoordinateReferenceSystem!)
Parameters
crs
coordinate reference system
-
Write a coordinate reference system with the keyword
Declaration
Objective-C
- (void)writeCoordinateReferenceSystem:(CRSCoordinateReferenceSystem *)crs withKeywordType:(enum CRSKeywordType)keyword;
Swift
func write(_ crs: CRSCoordinateReferenceSystem!, with keyword: CRSKeywordType)
Parameters
keyword
CRS keyword
crs
coordinate reference system
-
Write an operation accuracy
Declaration
Objective-C
- (void)writeAccuracy:(double)accuracy;
Swift
func writeAccuracy(_ accuracy: Double)
Parameters
accuracy
operation accuracy
-
Write an abridged coordinate transformation
Declaration
Objective-C
- (void)writeAbridgedCoordinateTransformation: (CRSAbridgedCoordinateTransformation *)transformation;
Swift
func write(_ transformation: CRSAbridgedCoordinateTransformation!)
Parameters
transformation
abridged coordinate transformation