org.geotools.renderer.j2d
Class RenderedLayerFactory

java.lang.Object
  extended byorg.geotools.renderer.j2d.RenderedLayerFactory

public class RenderedLayerFactory
extends java.lang.Object

A factory creating RenderedLayers from Features and Styles.

Version:
$Id: RenderedLayerFactory.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Andrea Aime, Martin Desruisseaux

Constructor Summary
RenderedLayerFactory()
          Construct a default factory.
 
Method Summary
 RenderedLayer[] create(Feature[] features, Style sldStyle)
          Create an array of rendered layers from the specified feature and style.
 RenderedLayer[] create(FeatureSource featureSource, Style sldStyle)
          Create an array of rendered layers from the specified feature and style.
 RenderedLayer[] createOld(FeatureSource featureSource, Style style)
          Create an array of rendered layers from the specified feature and style.
 CoordinateSystem getCoordinateSystem()
          Returns the default coordinate system for geometry to be created.
 void setCoordinateSystem(CoordinateSystem coordinateSystem)
          Set the default coordinate system for geometry to be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderedLayerFactory

public RenderedLayerFactory()
Construct a default factory.

Method Detail

getCoordinateSystem

public CoordinateSystem getCoordinateSystem()
Returns the default coordinate system for geometry to be created. If a geometry defines explicitly a coordinate system, then the geometry CS will have precedence over this default CS.

Returns:
The default coordinate system.

setCoordinateSystem

public void setCoordinateSystem(CoordinateSystem coordinateSystem)
Set the default coordinate system for geometry to be created. This CS is used only if a geometry doesn't specifies explicitly its own CS. If this method is never invoked, then the default CS is Geometry.DEFAULT_COORDINATE_SYSTEM.

Parameters:
coordinateSystem - The default coordinate system.

createOld

public RenderedLayer[] createOld(FeatureSource featureSource,
                                 Style style)
                          throws org.opengis.referencing.operation.TransformException,
                                 java.io.IOException,
                                 IllegalAttributeException
Create an array of rendered layers from the specified feature and style.

Parameters:
featureSource - the source used to read features
style - the style for these features
Returns:
The rendered layer array for the specified feature and style.
Throws:
org.opengis.referencing.operation.TransformException - if a transformation was required and failed.
java.io.IOException - if an error occurs while reading the features
IllegalAttributeException - if an attribute is read from the data that is incompatible with the feature type

create

public RenderedLayer[] create(FeatureSource featureSource,
                              Style sldStyle)
                       throws org.opengis.referencing.operation.TransformException,
                              java.io.IOException,
                              IllegalAttributeException
Create an array of rendered layers from the specified feature and style.

Parameters:
featureSource - The feature.
sldStyle - The style to apply.
Returns:
The rendered layer array for the specified feature and style.
Throws:
org.opengis.referencing.operation.TransformException - if a transformation was required and failed.
java.io.IOException - DOCUMENT ME!
IllegalAttributeException - DOCUMENT ME!

create

public RenderedLayer[] create(Feature[] features,
                              Style sldStyle)
                       throws org.opengis.referencing.operation.TransformException
Create an array of rendered layers from the specified feature and style.

Parameters:
features - The feature.
sldStyle - The style to apply.
Returns:
The rendered layer array for the specified feature and style.
Throws:
org.opengis.referencing.operation.TransformException - if a transformation was required and failed.


Copyright © GeoTools. All Rights Reserved.