public class WindBarbsFactory extends Object implements MarkFactory
TODO: We may consider adding a FLAG to say whether the arrows are toward wind (meteo convention) or against wind (ocean convention)
Modifier and Type | Field and Description |
---|---|
static AffineTransform |
SOUTHERN_EMISPHERE_FLIP
SOUTHERN_EMISPHERE_FLIP
|
static String |
WINDBARBS_PREFIX |
Constructor and Description |
---|
WindBarbsFactory() |
Modifier and Type | Method and Description |
---|---|
Shape |
getShape(Graphics2D graphics,
Expression symbolUrl,
Feature feature)
Return a shape with the given url.
|
public static final AffineTransform SOUTHERN_EMISPHERE_FLIP
public static final String WINDBARBS_PREFIX
public Shape getShape(Graphics2D graphics, Expression symbolUrl, Feature feature)
getShape
in interface MarkFactory
symbolUrl
- the expression that will return the symbol name. Once evaluated the
expression should return something like plainName
or like
protocol://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)MarkFactory.getShape(java.awt.Graphics2D,
org.opengis.filter.expression.Expression, org.opengis.feature.Feature)
Copyright © 1996–2019 Geotools. All rights reserved.