deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.crs.configuration.deegree.xml
Class CRSExporter_0_4_0

java.lang.Object
  extended by org.deegree.crs.configuration.deegree.xml.CRSExporter
      extended by org.deegree.crs.configuration.deegree.xml.CRSExporter_0_4_0

public class CRSExporter_0_4_0
extends CRSExporter

The CRSExporter_0_4_0export a list of coordinate systems into the 0.4.0 format

Version:
$Revision: 22662 $, $Date: 2010-02-19 14:51:52 +0100 (Fr, 19 Feb 2010) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Nested Class Summary
(package private)  class CRSExporter_0_4_0.IdComparer
           
 
Constructor Summary
CRSExporter_0_4_0(Properties properties)
           
 
Method Summary
protected  void endDocument(XMLStreamWriter xmlWriter)
          Write the /crs:defintions and the end document and flush the writer.
protected  void export(Axis axis, String elName, XMLStreamWriter xmlWriter)
          Export an axis to xml in the crs-definitions schema layout.
protected  void export(CompoundCRS compoundCRS, XMLStreamWriter xmlWriter)
          Export the compoundCRS to it's appropriate deegree-crs-definitions form.
protected  void export(Ellipsoid ellipsoid, XMLStreamWriter xmlWriter)
          Export the ellipsoid to it's appropriate deegree-crs-definitions form.
protected  void export(GeocentricCRS geocentricCRS, XMLStreamWriter xmlWriter)
          Export the geocentric CRS to it's appropriate deegree-crs-definitions form.
protected  void export(GeodeticDatum datum, XMLStreamWriter xmlWriter)
          Export the datum to it's appropriate deegree-crs-definitions form.
protected  void export(GeographicCRS geoGraphicCRS, XMLStreamWriter xmlWriter)
          Export the geocentric/geographic CRS to it's appropriate deegree-crs-definitions form.
protected  void export(Helmert wgs84, XMLStreamWriter xmlWriter)
          Export the confInvo to it's appropriate deegree-crs-definitions form.
protected  void export(LeastSquareApproximation ls, XMLStreamWriter xmlWriter)
          Export the transformation to it's appropriate deegree-crs-definitions form.
 void export(List<CoordinateSystem> crsToExport, XMLStreamWriter xmlWriter)
          Export the given list of CoordinateSystems into the crs-definition format.
protected  void export(NTv2Transformation ntv2, XMLStreamWriter xmlWriter)
          Export the NTv2 to it's appropriate deegree-crs-definitions form.
protected  void export(PrimeMeridian pm, XMLStreamWriter xmlWriter)
          Export the PrimeMeridian to it's appropriate deegree-crs-definitions form.
protected  void export(ProjectedCRS projectedCRS, XMLStreamWriter xmlWriter)
          Export the projected CRS to it's appropriate deegree-crs-definitions form.
protected  void export(Projection projection, XMLStreamWriter xmlWriter)
          Export the projection to it's appropriate deegree-crs-definitions form.
protected  void export(Transformation transformation, XMLStreamWriter xmlWriter)
          Exports the given transformation
protected  void export(Unit units, XMLStreamWriter xmlWriter)
          Export a unit to xml in the crs-definitions schema layout.
protected  void exportAbstractCRS(CoordinateSystem crs, XMLStreamWriter xmlWriter)
          Export toplevel crs features.
protected  void exportCoordinateSystems(XMLStreamWriter xmlWriter, Set<CompoundCRS> compounds, Set<ProjectedCRS> projecteds, Set<GeographicCRS> geographics, Set<GeocentricCRS> geocentrics)
          Exports the given sets of CoordinateSystems
protected  void exportDatums(XMLStreamWriter xmlWriter, Set<GeodeticDatum> datums)
          Exports the given set of Datums
protected  void exportEllipsoids(XMLStreamWriter xmlWriter, Set<Ellipsoid> ellipsoids)
          Exports the given set of ellipsoids
protected  void exportIdentifiable(CRSIdentifiable identifiable, XMLStreamWriter xmlWriter)
          Creates the basic nodes of the identifiable object.
protected  void exportPrimeMeridians(XMLStreamWriter xmlWriter, Set<PrimeMeridian> pms)
          Exports the given set of PrimeMeridians
 void exportProjections(XMLStreamWriter xmlWriter, Set<Projection> projections)
          Exports the given set of projections
protected  void exportTransformations(XMLStreamWriter xmlWriter, Set<Transformation> transformations)
          Exports the given set of transformations
protected  void initDocument(XMLStreamWriter xmlWriter)
          Open an XML document from stream for exporting
 
Methods inherited from class org.deegree.crs.configuration.deegree.xml.CRSExporter
exportTransformations, main
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CRSExporter_0_4_0

public CRSExporter_0_4_0(Properties properties)
Parameters:
properties -
Method Detail

export

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

Overrides:
export in class CRSExporter
Parameters:
crsToExport -
xmlWriter - to write the definitions to.
Throws:
XMLStreamException - if an error occurred while exporting

exportEllipsoids

protected void exportEllipsoids(XMLStreamWriter xmlWriter,
                                Set<Ellipsoid> ellipsoids)
                         throws XMLStreamException
Exports the given set of ellipsoids

Parameters:
xmlWriter -
ellipsoids -
Throws:
XMLStreamException

exportPrimeMeridians

protected void exportPrimeMeridians(XMLStreamWriter xmlWriter,
                                    Set<PrimeMeridian> pms)
                             throws XMLStreamException
Exports the given set of PrimeMeridians

Parameters:
xmlWriter -
pms -
Throws:
XMLStreamException

exportDatums

protected void exportDatums(XMLStreamWriter xmlWriter,
                            Set<GeodeticDatum> datums)
                     throws XMLStreamException
Exports the given set of Datums

Parameters:
xmlWriter -
datums -
Throws:
XMLStreamException

exportTransformations

protected void exportTransformations(XMLStreamWriter xmlWriter,
                                     Set<Transformation> transformations)
                              throws XMLStreamException
Exports the given set of transformations

Parameters:
xmlWriter -
transformations -
Throws:
XMLStreamException

exportProjections

public void exportProjections(XMLStreamWriter xmlWriter,
                              Set<Projection> projections)
                       throws XMLStreamException
Exports the given set of projections

Parameters:
xmlWriter -
projections -
Throws:
XMLStreamException

exportCoordinateSystems

protected void exportCoordinateSystems(XMLStreamWriter xmlWriter,
                                       Set<CompoundCRS> compounds,
                                       Set<ProjectedCRS> projecteds,
                                       Set<GeographicCRS> geographics,
                                       Set<GeocentricCRS> geocentrics)
                                throws XMLStreamException
Exports the given sets of CoordinateSystems

Parameters:
xmlWriter -
compounds -
projecteds -
geographics -
geocentrics -
Throws:
XMLStreamException

initDocument

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

Overrides:
initDocument in class CRSExporter
Parameters:
xmlWriter -

endDocument

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

Overrides:
endDocument in class CRSExporter
Parameters:
xmlWriter -
Throws:
XMLStreamException

export

protected void export(Transformation transformation,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Exports the given transformation

Parameters:
transformation -
xmlWriter -
Throws:
XMLStreamException

export

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

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

export

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

Overrides:
export in class CRSExporter
Parameters:
wgs84 - to be exported
xmlWriter - to export to.
Throws:
XMLStreamException

export

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

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

export

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

Overrides:
export in class CRSExporter
Parameters:
pm - PrimeMeridian to be exported
xmlWriter - to export to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
compoundCRS - to be exported
xmlWriter - to export the geographic CRS to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
projectedCRS - to be exported
xmlWriter - to export the projected CRS to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
projection - to be exported
xmlWriter - to export the projection to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
geoGraphicCRS - to be exported
xmlWriter - to export the geographic CRS to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
geocentricCRS - to be exported
xmlWriter - to export the geocentric CRS to.
Throws:
XMLStreamException

exportAbstractCRS

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

Overrides:
exportAbstractCRS in class CRSExporter
Parameters:
crs - to be exported
xmlWriter - to export to
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
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(Unit units,
                      XMLStreamWriter xmlWriter)
               throws XMLStreamException
Export a unit to xml in the crs-definitions schema layout.

Overrides:
export in class CRSExporter
Parameters:
units - to be exported.
xmlWriter - to export to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
datum - to be exported
xmlWriter - to export the datum to.
Throws:
XMLStreamException

export

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

Overrides:
export in class CRSExporter
Parameters:
ellipsoid - to be exported
xmlWriter - to export the ellipsoid to.
Throws:
XMLStreamException

exportIdentifiable

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

Overrides:
exportIdentifiable in class CRSExporter
Parameters:
identifiable - object to be exported.
xmlWriter - to export to
Throws:
XMLStreamException

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>