public class SLDUtils extends Object
| Constructor and Description |
|---|
SLDUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyStyle(org.geotools.styling.Style style,
String defaultCss,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> styledCollection)
Converts the styling information in the style into CSS styles for all given features in the collection.
|
static org.geotools.styling.Style[] |
createFromSLD(File sld) |
static org.opengis.feature.simple.SimpleFeature |
createStyledFeature(org.opengis.feature.simple.SimpleFeatureType type,
org.opengis.feature.simple.SimpleFeature feature,
String styleCSS) |
static org.opengis.feature.simple.SimpleFeatureType |
createStyledFeatureType(org.opengis.feature.simple.SimpleFeatureType type) |
static File |
getSLDFile(File shapeFile) |
static boolean |
isFeatureTypeStyleActive(org.opengis.feature.simple.SimpleFeatureType ftype,
org.geotools.styling.FeatureTypeStyle fts) |
static org.geotools.styling.Style[] |
loadSLD(File shapeFile) |
static org.opengis.feature.simple.SimpleFeature |
processRules(org.opengis.feature.simple.SimpleFeature sf,
org.opengis.feature.simple.SimpleFeatureType styledSFT,
List<org.geotools.styling.Rule> ruleList,
List<org.geotools.styling.Rule> elseRuleList) |
static org.opengis.feature.simple.SimpleFeature |
processSymbolizers(org.opengis.feature.simple.SimpleFeatureType sft,
org.opengis.feature.simple.SimpleFeature feature,
org.geotools.styling.Symbolizer[] symbolizers) |
public static org.geotools.styling.Style[] loadSLD(File shapeFile)
public static org.geotools.styling.Style[] createFromSLD(File sld)
public static void applyStyle(org.geotools.styling.Style style,
String defaultCss,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureCollection,
org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> styledCollection)
style - The style.defaultCss - The CSS default value.featureCollection - The collection that should be styled.styledCollection - the collection that will contain the styled features.public static org.opengis.feature.simple.SimpleFeature processRules(org.opengis.feature.simple.SimpleFeature sf,
org.opengis.feature.simple.SimpleFeatureType styledSFT,
List<org.geotools.styling.Rule> ruleList,
List<org.geotools.styling.Rule> elseRuleList)
public static org.opengis.feature.simple.SimpleFeature processSymbolizers(org.opengis.feature.simple.SimpleFeatureType sft,
org.opengis.feature.simple.SimpleFeature feature,
org.geotools.styling.Symbolizer[] symbolizers)
public static boolean isFeatureTypeStyleActive(org.opengis.feature.simple.SimpleFeatureType ftype,
org.geotools.styling.FeatureTypeStyle fts)
public static org.opengis.feature.simple.SimpleFeatureType createStyledFeatureType(org.opengis.feature.simple.SimpleFeatureType type)
public static org.opengis.feature.simple.SimpleFeature createStyledFeature(org.opengis.feature.simple.SimpleFeatureType type,
org.opengis.feature.simple.SimpleFeature feature,
String styleCSS)
Copyright © 2014–2016 European Space Agency (ESA). All rights reserved.