devs/GDMS

Read a shapefile

     DataSourceFactory dsf = new DataSourceFactory();

     DataSource ds = dsf.getDataSource(new File("/myShapeFile.shp"));
		
     SpatialDataSourceDecorator sds = new SpatialDataSourceDecorator(ds);

     //Print the full extent
     System.out.println("Full extent " + sds.getFullExtent());

     //Print the geometry as WKT at row 10
     System.out.println("Geometry as WKT " + sds.getGeometry(10).toText());