Class WindBarbsFactory
- Object
-
- WindBarbsFactory
-
- All Implemented Interfaces:
MarkFactory
public class WindBarbsFactory extends Object implements MarkFactory
Factory to produce WindBarbs. Urls for wind barbs are in the form: windbarbs://default(speed_value)[units_of_measure]TODO: We may consider adding a FLAG to say whether the arrows are toward wind (meteo convention) or against wind (ocean convention)
- Author:
- Daniele Romagnoli, GeoSolutions SAS
-
-
Field Summary
Fields Modifier and Type Field Description static AffineTransform
SOUTHERN_EMISPHERE_FLIP
SOUTHERN_EMISPHERE_FLIPstatic String
WINDBARBS_PREFIX
-
Constructor Summary
Constructors Constructor Description WindBarbsFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shape
getShape(Graphics2D graphics, Expression symbolUrl, Feature feature)
Return a shape with the given url.
-
-
-
Field Detail
-
SOUTHERN_EMISPHERE_FLIP
public static final AffineTransform SOUTHERN_EMISPHERE_FLIP
SOUTHERN_EMISPHERE_FLIP
-
WINDBARBS_PREFIX
public static final String WINDBARBS_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getShape
public Shape getShape(Graphics2D graphics, Expression symbolUrl, Feature feature)
Return a shape with the given url.- Specified by:
getShape
in interfaceMarkFactory
symbolUrl
- the expression that will return the symbol name. Once evaluated the expression should return something likeplainName
or likeprotocol://path
. See the actual implementations for details on the kind of supported name.feature
- The feature that will be used to evaluate the symbolURL expression (or to extract data from it, think complex attributes, in that case a visit to the expression and some direct attribute value extraction might be needed instead)- See Also:
MarkFactory.getShape(java.awt.Graphics2D, org.geotools.api.filter.expression.Expression, org.geotools.api.feature.Feature)
-
-