public class ShapeFileLoader
extends java.lang.Object
Constructor and Description |
---|
ShapeFileLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
parseFeature(org.opengis.feature.simple.SimpleFeature f,
org.opengis.feature.type.AttributeType[] at)
Method to parse a shapefile feature for its attributes.
|
static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
shpLoader(java.io.File f)
Method to load a shapefile using geotools functions.
|
static org.geotools.feature.FeatureCollection |
shpLoader(java.io.File f,
java.lang.String type)
Alternative method for shapefile loading.
|
public static java.util.List<java.util.Map<java.lang.String,java.lang.Object>> shpLoader(java.io.File f)
f
- the file you want to loadpublic static org.geotools.feature.FeatureCollection shpLoader(java.io.File f, java.lang.String type)
f
- the filetype
- the type of filepublic static java.util.Map parseFeature(org.opengis.feature.simple.SimpleFeature f, org.opengis.feature.type.AttributeType[] at)
f
- the featureat
- the attribute type