uaa.feral.util.loader
Class ShapeFileLoader

java.lang.Object
  extended by uaa.feral.util.loader.ShapeFileLoader

public class ShapeFileLoader
extends java.lang.Object

Shapefile loader to parse shape file data

Author:
Yanwei Wu and Mark Altaweel

Constructor Summary
ShapeFileLoader()
          Default constructor
 
Method Summary
static java.util.Map ParseFeature(org.geotools.feature.Feature f, org.geotools.feature.AttributeType[] at)
          Method to parse features into a map
static java.util.List<java.util.Map> ShapeFileLoader(java.io.File f)
          Method to load a shapefile using geotools functions
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapeFileLoader

public ShapeFileLoader()
Default constructor

Method Detail

ShapeFileLoader

public static java.util.List<java.util.Map> ShapeFileLoader(java.io.File f)
Method to load a shapefile using geotools functions

Parameters:
f - the file you want to load
Returns:
a list with maps that have specific cell values from the shapefile

ParseFeature

public static java.util.Map ParseFeature(org.geotools.feature.Feature f,
                                         org.geotools.feature.AttributeType[] at)
Method to parse features into a map

Parameters:
f - the feature to parse
at - the attribute types to associate data with
Returns:
a map with the feature data