public String getOrientationAsString() { return getReferencedObject().getOrientationAsString(); }
/** * Export an axis to xml in the crs-definitions schema layout. * * @param axis * to be exported. * @param elName * the name of the element, either 'Axis' or 'heightAxis' * @param xmlWriter * to export to. * @throws XMLStreamException */ protected void export( IAxis axis, String elName, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( axis != null ) { xmlWriter.writeStartElement( CRSNS, elName ); // axis name xmlWriter.writeStartElement( CRSNS, "name" ); xmlWriter.writeCharacters( axis.getName() ); xmlWriter.writeEndElement(); // axis units export( axis.getUnits(), xmlWriter ); // axis orientation xmlWriter.writeStartElement( CRSNS, "axisOrientation" ); xmlWriter.writeCharacters( axis.getOrientationAsString() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }
/** * Export an axis to xml in the crs-definitions schema layout. * * @param axis * to be exported. * @param elName * the name of the element, either 'Axis' or 'heightAxis' * @param xmlWriter * to export to. * @throws XMLStreamException */ @Override protected void export( IAxis axis, String elName, XMLStreamWriter xmlWriter ) throws XMLStreamException { if ( axis != null ) { xmlWriter.writeStartElement( CRSNS, elName ); // axis name xmlWriter.writeStartElement( CRSNS, "Name" ); xmlWriter.writeCharacters( axis.getName() ); xmlWriter.writeEndElement(); // axis units export( axis.getUnits(), xmlWriter ); // axis orientation xmlWriter.writeStartElement( CRSNS, "AxisOrientation" ); xmlWriter.writeCharacters( axis.getOrientationAsString() ); xmlWriter.writeEndElement(); xmlWriter.writeEndElement(); } }