org.deegree.tools.app3d
Class J3DToCityGMLExporter
java.lang.Object
org.deegree.tools.app3d.J3DToCityGMLExporter
- All Implemented Interfaces:
- J3DExporter
public class J3DToCityGMLExporter
- extends Object
- implements J3DExporter
The J3DToCityGMLExporter
exports a J3D scene to citygml level 1.
- Version:
- $Revision:$, $Date:$
- Author:
- Rutger Bezema, last edited by: $Author:$
Constructor Summary |
J3DToCityGMLExporter(String citygmlName,
String crsName,
String cityGMLFunction,
String textureOutputDirectory,
double translationX,
double translationY,
double translationZ,
boolean asWFSTransaction)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
J3DToCityGMLExporter
public J3DToCityGMLExporter(String citygmlName,
String crsName,
String cityGMLFunction,
String textureOutputDirectory,
double translationX,
double translationY,
double translationZ,
boolean asWFSTransaction)
throws IOException
- Parameters:
citygmlName
- of the exported branchgroup.crsName
- of the crs to set the srsName of gmlNodes to, if null
'epsg:31466' will be used.cityGMLFunction
- to insert om the gmltextureOutputDirectory
- the directory to output the textures to, if any.translationX
- a value to add up to the found x - coordinates. If NaN, 0 will be used.translationY
- a value to add up to the found y - coordinates. If NaN, 0 will be used.translationZ
- a value to add up to the found z - coordinates. If NaN, 0 will be used.asWFSTransaction
- true if the scene should be exported as a wfs:Transaction document (the root node is wfs:Transaction)
or a cityGML document (the root node is citygml:Building).
- Throws:
IOException
- if the something went wrong with wile creating, referring or adressing the given filePath.
export
public void export(StringBuilder result,
javax.media.j3d.Group j3dScene)
- Description copied from interface:
J3DExporter
- A method which can be called to export to the given format.
- Specified by:
export
in interface J3DExporter
- Parameters:
result
- a reference to which the implementing class should write.j3dScene
- the scene to be exported.
getName
public String getName()
- Specified by:
getName
in interface J3DExporter
- Returns:
- A Name which can be presented to a calling client;
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescription
in interface J3DExporter
- Returns:
- a simple description which can describes the function of the implementing class.
main
public static void main(String[] args)
- Parameters:
args
-
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net