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: 31882 $, $Date: 2011-09-15 02:05:04 +0200 (Thu, 15 Sep 2011) $
Author:
Rutger Bezema, last edited by: $Author: mschneider $

Constructor Summary
CityGMLImporter(String schemaLocation, float[] translation, SimpleGeometryStyle defaultStyle, boolean useOpengis)
           
 
Method Summary
 List<GeometryQualityModel> getQmList()
           
 List<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,
                       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

getQmList

public List<GeometryQualityModel> getQmList()

importFromFile

public List<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


Copyright © 2011. All Rights Reserved.