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

org.deegree.tools.rendering.manager.buildings.importers
Class CityGMLImporter

java.lang.Object
  extended by org.deegree.tools.rendering.manager.buildings.importers.CityGMLImporter
All Implemented Interfaces:
ModelImporter

public class CityGMLImporter
extends Object
implements ModelImporter

ModelImporter that reads a CityGML element (namespace http://www.opengis.net/citygml/1.0) file and creates a WPVS representation from it.

NOTE: Currently, only Building elements on the first level of the collection are imported. All other CityGML features else is ignored.

Version:
$Revision: 21260 $, $Date: 2009-12-04 14:09:28 +0100 (Fr, 04 Dez 2009) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
CityGMLImporter(String schemaLocation, float[] translation, org.deegree.rendering.r3d.model.geometry.SimpleGeometryStyle defaultStyle, boolean useOpengis)
           
 
Method Summary
 List<org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject> importFromFile(String fileName, int numberOfQualityLevels, int qualityLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CityGMLImporter

public CityGMLImporter(String schemaLocation,
                       float[] translation,
                       org.deegree.rendering.r3d.model.geometry.SimpleGeometryStyle defaultStyle,
                       boolean useOpengis)
Parameters:
schemaLocation - to create the schema xsd apapter from.
translation -
defaultStyle - to be used for the buildings.
useOpengis - true if the objects are defined in the http://www.opengis.net/citygml/building/1.0. Otherwise they will be defined in http://www.citygml.org/citygml/1/0/0
Method Detail

importFromFile

public List<org.deegree.rendering.r3d.opengl.rendering.model.geometry.WorldRenderableObject> importFromFile(String fileName,
                                                                                                            int numberOfQualityLevels,
                                                                                                            int qualityLevel)
                                                                                                     throws IOException
Specified by:
importFromFile in interface ModelImporter
Parameters:
fileName - pointing to a location to load an exportable file from.
numberOfQualityLevels - each resulting WorldRenderableObject should have.
qualityLevel - of the models in the given file.
Returns:
the list of qualitymodels loaded from the given filename.
Throws:
IOException

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

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

]]>