|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.graphics.MapFactory
public class MapFactory
Factory class for creating MapViews, Layers and Themes. RB: Is this class really necessary? it just calls the appropriate constructors.
------------------------------------------------------------------------
Constructor Summary | |
---|---|
MapFactory()
|
Method Summary | |
---|---|
static Layer |
createFeatureLayer(java.lang.String name)
creates an empty feature layer with EPSG:4326 as default coordinate reference system. |
static Layer |
createFeatureLayer(java.lang.String name,
CoordinateSystem crs)
creates an empty feature layer. |
static Layer |
createFeatureLayer(java.lang.String name,
CoordinateSystem crs,
FeatureCollection fc)
creates a complete feature layer. |
static MapView |
createMapView(java.lang.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(java.lang.String name,
GridCoverage raster)
creates a raster layer. |
static Layer |
createRasterLayer(java.lang.String name,
GridCoverage raster,
GetMap request)
|
static Theme |
createTheme(java.lang.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(java.lang.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 |
---|
public MapFactory()
Method Detail |
---|
public static Layer createFeatureLayer(java.lang.String name) throws java.lang.Exception
name
- of the layer
java.lang.Exception
public static Layer createFeatureLayer(java.lang.String name, CoordinateSystem crs) throws java.lang.Exception
name
- of the layercrs
- of the crs
java.lang.Exception
public static Layer createFeatureLayer(java.lang.String name, CoordinateSystem crs, FeatureCollection fc) throws java.lang.Exception
name
- of the feature layercrs
- of the crs of the feature layerfc
- to get the geometries from
java.lang.Exception
public static Layer createRasterLayer(java.lang.String name, GridCoverage raster) throws java.lang.Exception
name
- name of raster layerraster
- the raster to create the layer from.
java.lang.Exception
public static Layer createRasterLayer(java.lang.String name, GridCoverage raster, GetMap request) throws java.lang.Exception
name
- raster
- request
-
java.lang.Exception
public static Theme createTheme(java.lang.String name, Layer layer, UserStyle[] styles)
name
- of the themelayer
- the layer to create the theme fromstyles
- the styles to set
public static Theme createTheme(java.lang.String name, Layer layer)
name
- of the themelayer
- to use
public static MapView createMapView(java.lang.String name, Envelope boundingbox, CoordinateSystem crs, Theme[] themes, double pixelsize) throws java.lang.Exception
name
- of the mapviewboundingbox
- of the mapviewcrs
- of the mapviewthemes
- of the mapviewpixelsize
- used for rendering
java.lang.Exception
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org