/** * Export the geocentric/geographic CRS to it's appropriate deegree-crs-definitions form. * * @param geoGraphicCRS * to be exported * @param xmlWriter * to export the geographic CRS to. * @throws XMLStreamException */ @Override protected void export( IGeographicCRS geoGraphicCRS, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( geoGraphicCRS != null ) { xmlWriter.writeStartElement( CRSNS, "GeographicCRS" ); exportAbstractCRS( geoGraphicCRS, xmlWriter ); xmlWriter.writeStartElement( CRSNS, "UsedDatum" ); xmlWriter.writeCharacters( geoGraphicCRS.getDatum().getCode().getOriginal().toLowerCase() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }
/** * Export the geocentric/geographic CRS to it's appropriate deegree-crs-definitions form. * * @param geoGraphicCRS * to be exported * @param xmlWriter * to export the geographic CRS to. * @throws XMLStreamException */ protected void export( IGeographicCRS geoGraphicCRS, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( geoGraphicCRS != null ) { xmlWriter.writeStartElement( CRSNS, "geographicCRS" ); exportAbstractCRS( geoGraphicCRS, xmlWriter ); xmlWriter.writeStartElement( CRSNS, "usedDatum" ); xmlWriter.writeCharacters( geoGraphicCRS.getDatum().getCode().toString() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }
/** * Export the geocentric CRS to it's appropriate deegree-crs-definitions form. * * @param geocentricCRS * to be exported * @param xmlWriter * to export the geocentric CRS to. * @throws XMLStreamException */ @Override protected void export( IGeocentricCRS geocentricCRS, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( geocentricCRS != null ) { xmlWriter.writeStartElement( CRSNS, "GeocentricCRS" ); exportAbstractCRS( geocentricCRS, xmlWriter ); xmlWriter.writeStartElement( CRSNS, "UsedDatum" ); xmlWriter.writeCharacters( geocentricCRS.getDatum().getCode().getOriginal().toLowerCase() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }
/** * Export the geocentric CRS to it's appropriate deegree-crs-definitions form. * * @param geocentricCRS * to be exported * @param xmlWriter * to export the geocentric CRS to. * @throws XMLStreamException */ protected void export( IGeocentricCRS geocentricCRS, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( geocentricCRS != null ) { xmlWriter.writeStartElement( CRSNS, "geocentricCRS" ); exportAbstractCRS( geocentricCRS, xmlWriter ); xmlWriter.writeStartElement( CRSNS, "usedDatum" ); xmlWriter.writeCharacters( geocentricCRS.getDatum().getCode().toString() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }