|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.crs.configuration.deegree.xml.CRSExporter
public class CRSExporter
The CRSExporter exports to the old version format (no version attribute).
| Constructor Summary | |
|---|---|
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(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. |
void |
export(List<CoordinateSystem> crsToExport,
XMLStreamWriter xmlWriter)
Export the given list of CoordinateSystems into the crs-definition format. |
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(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 |
exportIdentifiable(CRSIdentifiable 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 |
static void |
main(String[] args)
Simple main to test exportation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRSExporter(Properties properties)
properties - to read configuration from.| Method Detail |
|---|
public void export(List<CoordinateSystem> crsToExport,
XMLStreamWriter xmlWriter)
throws XMLStreamException
crsToExport - xmlWriter - to write the definitions to.
XMLStreamException - if an error occurred while exportingprotected void initDocument(XMLStreamWriter xmlWriter)
xmlWriter -
protected void endDocument(XMLStreamWriter xmlWriter)
throws XMLStreamException
xmlWriter -
XMLStreamException
protected void export(Helmert wgs84,
XMLStreamWriter xmlWriter)
throws XMLStreamException
wgs84 - to be exportedxmlWriter - to export to.
XMLStreamException
protected void export(PrimeMeridian pm,
XMLStreamWriter xmlWriter)
throws XMLStreamException
pm - PrimeMeridian to be exportedxmlWriter - to export to.
XMLStreamException
protected void export(CompoundCRS compoundCRS,
XMLStreamWriter xmlWriter)
throws XMLStreamException
compoundCRS - to be exportedxmlWriter - to export the geographic CRS to.
XMLStreamException
protected void export(ProjectedCRS projectedCRS,
XMLStreamWriter xmlWriter)
throws XMLStreamException
projectedCRS - to be exportedxmlWriter - to export the projected CRS to.
XMLStreamException
protected void export(Projection projection,
XMLStreamWriter xmlWriter)
throws XMLStreamException
projection - to be exportedxmlWriter - to export the projection to.
XMLStreamException
protected void export(GeographicCRS geoGraphicCRS,
XMLStreamWriter xmlWriter)
throws XMLStreamException
geoGraphicCRS - to be exportedxmlWriter - to export the geographic CRS to.
XMLStreamException
protected void export(GeocentricCRS geocentricCRS,
XMLStreamWriter xmlWriter)
throws XMLStreamException
geocentricCRS - to be exportedxmlWriter - to export the geocentric CRS to.
XMLStreamException
protected void exportAbstractCRS(CoordinateSystem crs,
XMLStreamWriter xmlWriter)
throws XMLStreamException
crs - to be exportedxmlWriter - to export to
XMLStreamException
protected void exportTransformations(List<Transformation> transformations,
XMLStreamWriter xmlWriter)
throws XMLStreamException
transformations - to be exported.xmlWriter - to export to.
XMLStreamException
protected void export(Axis axis,
String elName,
XMLStreamWriter xmlWriter)
throws XMLStreamException
axis - to be exported.elName - the name of the element, either 'Axis' or 'heightAxis'xmlWriter - to export to.
XMLStreamException
protected void export(Unit units,
XMLStreamWriter xmlWriter)
throws XMLStreamException
units - to be exported.xmlWriter - to export to.
XMLStreamException
protected void export(GeodeticDatum datum,
XMLStreamWriter xmlWriter)
throws XMLStreamException
datum - to be exportedxmlWriter - to export the datum to.
XMLStreamException
protected void export(Ellipsoid ellipsoid,
XMLStreamWriter xmlWriter)
throws XMLStreamException
ellipsoid - to be exportedxmlWriter - to export the ellipsoid to.
XMLStreamException
protected void exportIdentifiable(CRSIdentifiable identifiable,
XMLStreamWriter xmlWriter)
throws XMLStreamException
identifiable - object to be exported.xmlWriter - to export to
XMLStreamException
public static void main(String[] args)
throws XMLStreamException,
FileNotFoundException
args -
XMLStreamException
FileNotFoundException
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||