deegree 2.2 (2008/12/22 11:33 build-3038-official)

org.deegree.graphics
Class MapFactory

java.lang.Object
  extended by org.deegree.graphics.MapFactory

public class MapFactory
extends Object

Factory class for creating MapViews, Layers and Themes.

------------------------------------------------------------------------

Version:
$Revision: 9340 $ $Date: 2007-12-27 13:32:12 +0100 (Do, 27 Dez 2007) $
Author:
Andreas Poth

Constructor Summary
MapFactory()
           
 
Method Summary
static Layer createFeatureLayer(String name)
          creates an empty feature layer with EPSG:4326 as default coordinate reference system.
static Layer createFeatureLayer(String name, CoordinateSystem crs)
          creates an empty feature layer.
static Layer createFeatureLayer(String name, CoordinateSystem crs, FeatureCollection fc)
          creates a complete feature layer.
static MapView createMapView(String name, Envelope boundingbox, CoordinateSystem crs, Theme[] themes, double pixelsize)
          creates a MapView with a name, a boundingbox describing the area coverd by the MapView, a CRS and n Themes.
static Layer createRasterLayer(String name, GridCoverage raster)
          creates a raster layer.
static Theme createTheme(String name, Layer layer)
          creates a theme with a name, a Layer containing the themes data and an array of styles to be known by the Theme
static Theme createTheme(String name, Layer layer, UserStyle[] styles)
          creates a theme with a name, a Layer containing the themes data and an array of styles to be known by the Theme
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapFactory

public MapFactory()
Method Detail

createFeatureLayer

public static Layer createFeatureLayer(String name)
                                throws Exception
creates an empty feature layer with EPSG:4326 as default coordinate reference system. All data that will be added to the layer will be converted to the EPSG:4326 coordinate reference system if no other CRS is set.

Throws:
Exception

createFeatureLayer

public static Layer createFeatureLayer(String name,
                                       CoordinateSystem crs)
                                throws Exception
creates an empty feature layer. All data that will be added to the layer will be converted to the submitted coordinate reference system if no other CRS is set.

Throws:
Exception

createFeatureLayer

public static Layer createFeatureLayer(String name,
                                       CoordinateSystem crs,
                                       FeatureCollection fc)
                                throws Exception
creates a complete feature layer. If the CRS of the geometries contained within the submitted feature collection are not the same as the submitted CRS all geometries will be converted to the submitted CRS.

Throws:
Exception

createRasterLayer

public static Layer createRasterLayer(String name,
                                      GridCoverage raster)
                               throws Exception
creates a raster layer. The required CRS is contained within the GC_GridCoverage object

Throws:
Exception

createTheme

public static Theme createTheme(String name,
                                Layer layer,
                                UserStyle[] styles)
creates a theme with a name, a Layer containing the themes data and an array of styles to be known by the Theme


createTheme

public static Theme createTheme(String name,
                                Layer layer)
creates a theme with a name, a Layer containing the themes data and an array of styles to be known by the Theme


createMapView

public static MapView createMapView(String name,
                                    Envelope boundingbox,
                                    CoordinateSystem crs,
                                    Theme[] themes,
                                    double pixelsize)
                             throws Exception
creates a MapView with a name, a boundingbox describing the area coverd by the MapView, a CRS and n Themes.

Throws:
Exception

deegree 2.2 (2008/12/22 11:33 build-3038-official)

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