org.deegree.cs.io.deegree
Class CRSExporterBase

java.lang.Object
  extended by org.deegree.cs.io.deegree.CRSExporterBase
Direct Known Subclasses:
CRSExporter

public class CRSExporterBase
extends Object

The CRSExporter exports to the old version format (no version attribute).

Version:
$Revision: 30120 $, $Date: 2011-03-22 10:04:15 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Constructor Summary
CRSExporterBase()
           
 
Method Summary
protected  void endDocument(XMLStreamWriter xmlWriter)
          Write the /crs:defintions and the end document and flush the writer.
protected  void export(Helmert wgs84, XMLStreamWriter xmlWriter)
          Export the confInvo to it's appropriate deegree-crs-definitions form.
protected  void export(IAxis axis, String elName, XMLStreamWriter xmlWriter)
          Export an axis to xml in the crs-definitions schema layout.
protected  void export(ICompoundCRS compoundCRS, XMLStreamWriter xmlWriter)
          Export the compoundCRS to it's appropriate deegree-crs-definitions form.
protected  void export(IEllipsoid ellipsoid, XMLStreamWriter xmlWriter)
          Export the ellipsoid to it's appropriate deegree-crs-definitions form.
protected  void export(IGeocentricCRS geocentricCRS, XMLStreamWriter xmlWriter)
          Export the geocentric CRS to it's appropriate deegree-crs-definitions form.
protected  void export(IGeodeticDatum datum, XMLStreamWriter xmlWriter)
          Export the datum to it's appropriate deegree-crs-definitions form.
protected  void export(IGeographicCRS geoGraphicCRS, XMLStreamWriter xmlWriter)
          Export the geocentric/geographic CRS to it's appropriate deegree-crs-definitions form.
protected  void export(IPrimeMeridian pm, XMLStreamWriter xmlWriter)
          Export the PrimeMeridian to it's appropriate deegree-crs-definitions form.
protected  void export(IProjectedCRS projectedCRS, XMLStreamWriter xmlWriter)
          Export the projected CRS to it's appropriate deegree-crs-definitions form.
protected  void export(IProjection projection, XMLStreamWriter xmlWriter)
          Export the projection to it's appropriate deegree-crs-definitions form.
protected  void export(IUnit units, XMLStreamWriter xmlWriter)
          Export a unit to xml in the crs-definitions schema layout.
 void export(List<ICRS> crsToExport, XMLStreamWriter xmlWriter)
          Export the given list of ICoordinateSystems into the crs-definition format.
 void export(StringBuilder sb, List<ICRS> crsToExport)
           
protected  void exportAbstractCRS(ICRS crs, XMLStreamWriter xmlWriter)
          Export toplevel crs features.
protected  void exportIdentifiable(CRSResource identifiable, XMLStreamWriter xmlWriter)
          Creates the basic nodes of the identifiable object.
protected  void exportTransformations(List<Transformation> transformations, XMLStreamWriter xmlWriter)
          Export a list of transformations from the crs element to xml with respect to the crs-definitions schema layout.
protected  void initDocument(XMLStreamWriter xmlWriter)
          Open an XML document from stream for exporting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRSExporterBase

public CRSExporterBase()
Method Detail

export

public void export(StringBuilder sb,
                   List<ICRS> crsToExport)

export

public void export(List<ICRS> crsToExport,
                   XMLStreamWriter xmlWriter)
            throws XMLStreamException
Export the given list of ICoordinateSystems into the crs-definition format.

Parameters:
crsToExport -
xmlWriter - to write the definitions to.
Throws:
XMLStreamException - if an error occurred while exporting

initDocument

protected void initDocument(XMLStreamWriter xmlWriter)
Open an XML document from stream for exporting

Parameters:
xmlWriter -

endDocument

protected void endDocument(XMLStreamWriter xmlWriter)
                    throws XMLStreamException
Write the /crs:defintions and the end document and flush the writer.

Parameters:
xmlWriter -
Throws:
XMLStreamException

export

protected void export(Helmert wgs84,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the confInvo to it's appropriate deegree-crs-definitions form.

Parameters:
wgs84 - to be exported
xmlWriter - to export to.
Throws:
XMLStreamException

export

protected void export(IPrimeMeridian pm,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the PrimeMeridian to it's appropriate deegree-crs-definitions form.

Parameters:
pm - PrimeMeridian to be exported
xmlWriter - to export to.
Throws:
XMLStreamException

export

protected void export(ICompoundCRS compoundCRS,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the compoundCRS to it's appropriate deegree-crs-definitions form.

Parameters:
compoundCRS - to be exported
xmlWriter - to export the geographic CRS to.
Throws:
XMLStreamException

export

protected void export(IProjectedCRS projectedCRS,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the projected CRS to it's appropriate deegree-crs-definitions form.

Parameters:
projectedCRS - to be exported
xmlWriter - to export the projected CRS to.
Throws:
XMLStreamException

export

protected void export(IProjection projection,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the projection to it's appropriate deegree-crs-definitions form.

Parameters:
projection - to be exported
xmlWriter - to export the projection to.
Throws:
XMLStreamException

export

protected void export(IGeographicCRS geoGraphicCRS,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the geocentric/geographic CRS to it's appropriate deegree-crs-definitions form.

Parameters:
geoGraphicCRS - to be exported
xmlWriter - to export the geographic CRS to.
Throws:
XMLStreamException

export

protected void export(IGeocentricCRS geocentricCRS,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the geocentric CRS to it's appropriate deegree-crs-definitions form.

Parameters:
geocentricCRS - to be exported
xmlWriter - to export the geocentric CRS to.
Throws:
XMLStreamException

exportAbstractCRS

protected void exportAbstractCRS(ICRS crs,
                                 XMLStreamWriter xmlWriter)
                          throws XMLStreamException
Export toplevel crs features.

Parameters:
crs - to be exported
xmlWriter - to export to
Throws:
XMLStreamException

exportTransformations

protected void exportTransformations(List<Transformation> transformations,
                                     XMLStreamWriter xmlWriter)
                              throws XMLStreamException
Export a list of transformations from the crs element to xml with respect to the crs-definitions schema layout.

Parameters:
transformations - to be exported.
xmlWriter - to export to.
Throws:
XMLStreamException

export

protected void export(IAxis axis,
                      String elName,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export an axis to xml in the crs-definitions schema layout.

Parameters:
axis - to be exported.
elName - the name of the element, either 'Axis' or 'heightAxis'
xmlWriter - to export to.
Throws:
XMLStreamException

export

protected void export(IUnit units,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export a unit to xml in the crs-definitions schema layout.

Parameters:
units - to be exported.
xmlWriter - to export to.
Throws:
XMLStreamException

export

protected void export(IGeodeticDatum datum,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the datum to it's appropriate deegree-crs-definitions form.

Parameters:
datum - to be exported
xmlWriter - to export the datum to.
Throws:
XMLStreamException

export

protected void export(IEllipsoid ellipsoid,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export the ellipsoid to it's appropriate deegree-crs-definitions form.

Parameters:
ellipsoid - to be exported
xmlWriter - to export the ellipsoid to.
Throws:
XMLStreamException

exportIdentifiable

protected void exportIdentifiable(CRSResource identifiable,
                                  XMLStreamWriter xmlWriter)
                           throws XMLStreamException
Creates the basic nodes of the identifiable object.

Parameters:
identifiable - object to be exported.
xmlWriter - to export to
Throws:
XMLStreamException


Copyright © 2011. All Rights Reserved.