|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.cs.io.deegree.CRSExporterBase org.deegree.cs.io.deegree.CRSExporter
public class CRSExporter
Exports a list of coordinate systems into the deegree CRS format.
Constructor Summary | |
---|---|
CRSExporter()
|
|
CRSExporter(Properties properties)
|
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. |
protected void |
export(LeastSquareApproximation ls,
XMLStreamWriter xmlWriter)
Export the transformation to it's appropriate deegree-crs-definitions form. |
void |
export(List<ICRS> crsToExport,
XMLStreamWriter xmlWriter)
Export the given list of ICoordinateSystems 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(Transformation transformation,
XMLStreamWriter xmlWriter)
Exports the given transformation |
protected void |
exportAbstractCRS(ICRS crs,
XMLStreamWriter xmlWriter)
Export toplevel crs features. |
protected void |
exportCoordinateSystems(XMLStreamWriter xmlWriter,
Set<ICompoundCRS> compounds,
Set<IProjectedCRS> projecteds,
Set<IGeographicCRS> geographics,
Set<IGeocentricCRS> geocentrics)
Exports the given sets of ICoordinateSystems |
protected void |
exportDatums(XMLStreamWriter xmlWriter,
Set<IGeodeticDatum> datums)
Exports the given set of Datums |
protected void |
exportEllipsoids(XMLStreamWriter xmlWriter,
Set<IEllipsoid> ellipsoids)
Exports the given set of ellipsoids |
protected void |
exportIdentifiable(CRSResource identifiable,
XMLStreamWriter xmlWriter)
Creates the basic nodes of the identifiable object. |
protected void |
exportPrimeMeridians(XMLStreamWriter xmlWriter,
Set<IPrimeMeridian> pms)
Exports the given set of PrimeMeridians |
void |
exportProjections(XMLStreamWriter xmlWriter,
Set<IProjection> 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.cs.io.deegree.CRSExporterBase |
---|
export, exportTransformations |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRSExporter()
public CRSExporter(Properties properties)
properties
- Method Detail |
---|
public void export(List<ICRS> crsToExport, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
crsToExport
- xmlWriter
- to write the definitions to.
XMLStreamException
- if an error occurred while exportingprotected void exportEllipsoids(XMLStreamWriter xmlWriter, Set<IEllipsoid> ellipsoids) throws XMLStreamException
xmlWriter
- ellipsoids
-
XMLStreamException
protected void exportPrimeMeridians(XMLStreamWriter xmlWriter, Set<IPrimeMeridian> pms) throws XMLStreamException
xmlWriter
- pms
-
XMLStreamException
protected void exportDatums(XMLStreamWriter xmlWriter, Set<IGeodeticDatum> datums) throws XMLStreamException
xmlWriter
- datums
-
XMLStreamException
protected void exportTransformations(XMLStreamWriter xmlWriter, Set<Transformation> transformations) throws XMLStreamException
xmlWriter
- transformations
-
XMLStreamException
public void exportProjections(XMLStreamWriter xmlWriter, Set<IProjection> projections) throws XMLStreamException
xmlWriter
- projections
-
XMLStreamException
protected void exportCoordinateSystems(XMLStreamWriter xmlWriter, Set<ICompoundCRS> compounds, Set<IProjectedCRS> projecteds, Set<IGeographicCRS> geographics, Set<IGeocentricCRS> geocentrics) throws XMLStreamException
xmlWriter
- compounds
- projecteds
- geographics
- geocentrics
-
XMLStreamException
protected void initDocument(XMLStreamWriter xmlWriter)
initDocument
in class CRSExporterBase
xmlWriter
- protected void endDocument(XMLStreamWriter xmlWriter) throws XMLStreamException
endDocument
in class CRSExporterBase
xmlWriter
-
XMLStreamException
protected void export(Transformation transformation, XMLStreamWriter xmlWriter) throws XMLStreamException
transformation
- xmlWriter
-
XMLStreamException
protected void export(NTv2Transformation ntv2, XMLStreamWriter xmlWriter) throws XMLStreamException
ntv2
- to be exportedxmlWriter
- to export to.
XMLStreamException
protected void export(Helmert wgs84, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
wgs84
- to be exportedxmlWriter
- to export to.
XMLStreamException
protected void export(LeastSquareApproximation ls, XMLStreamWriter xmlWriter) throws XMLStreamException
ls
- to be exportedxmlWriter
- to export to.
XMLStreamException
protected void export(IPrimeMeridian pm, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
pm
- PrimeMeridian to be exportedxmlWriter
- to export to.
XMLStreamException
protected void export(ICompoundCRS compoundCRS, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
compoundCRS
- to be exportedxmlWriter
- to export the geographic CRS to.
XMLStreamException
protected void export(IProjectedCRS projectedCRS, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
projectedCRS
- to be exportedxmlWriter
- to export the projected CRS to.
XMLStreamException
protected void export(IProjection projection, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
projection
- to be exportedxmlWriter
- to export the projection to.
XMLStreamException
protected void export(IGeographicCRS geoGraphicCRS, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
geoGraphicCRS
- to be exportedxmlWriter
- to export the geographic CRS to.
XMLStreamException
protected void export(IGeocentricCRS geocentricCRS, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
geocentricCRS
- to be exportedxmlWriter
- to export the geocentric CRS to.
XMLStreamException
protected void exportAbstractCRS(ICRS crs, XMLStreamWriter xmlWriter) throws XMLStreamException
exportAbstractCRS
in class CRSExporterBase
crs
- to be exportedxmlWriter
- to export to
XMLStreamException
protected void export(IAxis axis, String elName, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
axis
- to be exported.elName
- the name of the element, either 'Axis' or 'heightAxis'xmlWriter
- to export to.
XMLStreamException
protected void export(IUnit units, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
units
- to be exported.xmlWriter
- to export to.
XMLStreamException
protected void export(IGeodeticDatum datum, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
datum
- to be exportedxmlWriter
- to export the datum to.
XMLStreamException
protected void export(IEllipsoid ellipsoid, XMLStreamWriter xmlWriter) throws XMLStreamException
export
in class CRSExporterBase
ellipsoid
- to be exportedxmlWriter
- to export the ellipsoid to.
XMLStreamException
protected void exportIdentifiable(CRSResource identifiable, XMLStreamWriter xmlWriter) throws XMLStreamException
exportIdentifiable
in class CRSExporterBase
identifiable
- object to be exported.xmlWriter
- to export to
XMLStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |