anl.aida.gis
Class ShapefileSimplifier

java.lang.Object
  extended by anl.aida.gis.ShapefileSimplifier

public class ShapefileSimplifier
extends java.lang.Object

Simplifies the geometry in a shapefile and converts it to WGS84.


Constructor Summary
ShapefileSimplifier()
           
 
Method Summary
private  org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> openShapefile(java.io.File shapefile)
           
 org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> simplify(java.io.File shapefile, double tolerance)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapefileSimplifier

public ShapefileSimplifier()
Method Detail

openShapefile

private org.geotools.data.FeatureSource<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> openShapefile(java.io.File shapefile)
                                                                                                                                      throws java.io.IOException
Throws:
java.io.IOException

simplify

public org.geotools.feature.FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> simplify(java.io.File shapefile,
                                                                                                                                              double tolerance)
                                                                                                                                       throws java.io.IOException,
                                                                                                                                              org.opengis.referencing.FactoryException,
                                                                                                                                              org.opengis.geometry.MismatchedDimensionException,
                                                                                                                                              org.opengis.referencing.operation.TransformException
Throws:
java.io.IOException
org.opengis.referencing.FactoryException
org.opengis.geometry.MismatchedDimensionException
org.opengis.referencing.operation.TransformException