RePast
v. 2.0

uchicago.src.sim.gis
Class DatasourceHandler

java.lang.Object
  |
  +--uchicago.src.sim.gis.DatasourceHandler

public class DatasourceHandler
extends Object

This class is designed to gracefully handle the exceptions that can be thrown with a datasource. It has no other purpose.


Constructor Summary
DatasourceHandler()
           
 
Method Summary
static com.vividsolutions.jts.geom.Envelope getBounds(org.geotools.data.DataSource ds)
          This recovers the bounds from a datasource.
static org.geotools.feature.Feature[] getFeatures(org.geotools.data.DataSource ds)
          get the features out of a datasource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasourceHandler

public DatasourceHandler()
Method Detail

getFeatures

public static org.geotools.feature.Feature[] getFeatures(org.geotools.data.DataSource ds)
get the features out of a datasource. This catches any exceptions, and also hides the geotools implementation which may change.

Parameters:
ds -
Returns:

getBounds

public static com.vividsolutions.jts.geom.Envelope getBounds(org.geotools.data.DataSource ds)
This recovers the bounds from a datasource. This is (barely) a convienence method.

Parameters:
ds -
Returns:

RePast
v. 2.0

Bug reports and feature requests to RePast