org.esa.beam.visat.toolviews.layermanager.layersrc.shapefile
Class ShapefileUtils

java.lang.Object
  extended by org.esa.beam.visat.toolviews.layermanager.layersrc.shapefile.ShapefileUtils

public class ShapefileUtils
extends Object

Unstable API. Use at own risk.


Constructor Summary
ShapefileUtils()
           
 
Method Summary
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.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> createFeatureCollection(URL url, org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs, com.vividsolutions.jts.geom.Geometry clipGeometry)
           
static org.opengis.feature.simple.SimpleFeatureType createStyledFeatureType(org.opengis.feature.simple.SimpleFeatureType type)
           
static org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureSource(URL url)
           
static org.geotools.styling.Style[] loadSLD(File shapeFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapefileUtils

public ShapefileUtils()
Method Detail

createFeatureCollection

public static org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> createFeatureCollection(URL url,
                                                                                                                                                                    org.opengis.referencing.crs.CoordinateReferenceSystem targetCrs,
                                                                                                                                                                    com.vividsolutions.jts.geom.Geometry clipGeometry)
                                                                                                                                                             throws IOException
Throws:
IOException

getFeatureSource

public static org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> getFeatureSource(URL url)
                                                                                                                                               throws IOException
Throws:
IOException

loadSLD

public static org.geotools.styling.Style[] loadSLD(File shapeFile)

applyStyle

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)
Converts the styling information in the style into CSS styles for all given features in the collection.

Parameters:
style - The style.
defaultCss - The CSS default value.
featureCollection - The collection that should be styled.
styledCollection - the collection that will contain the styled features.

createStyledFeatureType

public static org.opengis.feature.simple.SimpleFeatureType createStyledFeatureType(org.opengis.feature.simple.SimpleFeatureType type)


Copyright © 2002-2011 Brockmann Consult GmbH. All Rights Reserved.