com.neatech.climbplan.geographicinformationgathering
Class ShapeInformation

java.lang.Object
  extended by com.neatech.climbplan.geographicinformationgathering.ShapeInformation

public class ShapeInformation
extends Object


Field Summary
private  org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection
           
private  org.geotools.data.DataStore dataStore
           
static int ErrorType
           
private  org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureSource
           
static int Forest
           
private  boolean isSuccessfullyReaded
           
private  org.geotools.feature.FeatureIterator<org.opengis.feature.simple.SimpleFeature> iterator
           
static int Lake
          Vector types as Strings
private static org.apache.log4j.Logger logger
           
static int Map
           
static int NoInfo
           
static int River
           
static int Rock
           
static int Sand
           
 
Constructor Summary
ShapeInformation()
           
ShapeInformation(String path)
           
 
Method Summary
 int getInfo(WorldPoint wp)
           
static void main(String[] args)
          It has a purpose of testing this class
 void readShapeFile(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger

isSuccessfullyReaded

private boolean isSuccessfullyReaded

dataStore

private org.geotools.data.DataStore dataStore

featureSource

private org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> featureSource

collection

private org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection

iterator

private org.geotools.feature.FeatureIterator<org.opengis.feature.simple.SimpleFeature> iterator

Lake

public static final int Lake
Vector types as Strings

See Also:
Constant Field Values

River

public static final int River
See Also:
Constant Field Values

Forest

public static final int Forest
See Also:
Constant Field Values

Sand

public static final int Sand
See Also:
Constant Field Values

Rock

public static final int Rock
See Also:
Constant Field Values

Map

public static final int Map
See Also:
Constant Field Values

NoInfo

public static final int NoInfo
See Also:
Constant Field Values

ErrorType

public static final int ErrorType
See Also:
Constant Field Values
Constructor Detail

ShapeInformation

public ShapeInformation()

ShapeInformation

public ShapeInformation(String path)
Method Detail

main

public static void main(String[] args)
It has a purpose of testing this class

Parameters:
args - Shape file path

readShapeFile

public void readShapeFile(String path)

getInfo

public int getInfo(WorldPoint wp)
Parameters:
wp - This method accept the coordinates of Shape File as a WorldPoint type
Returns:
It will return "ErrorType" when Shape File read operation fails, return NoInfo when Shape File has no polygon, otherwise it will return the type of polygon which covers the give world coordinate