org.geotools.data.shapefile
Class ShapefileRendererUtil

java.lang.Object
  extended by org.geotools.data.shapefile.ShapefileRendererUtil

public class ShapefileRendererUtil
extends java.lang.Object

Allows access the the ShapefileReaders.

Since:
2.1.x
Author:
jeichar

Constructor Summary
ShapefileRendererUtil()
           
 
Method Summary
static IndexedDbaseFileReader getDBFReader(ShapefileDataStore ds)
           
static FIDReader getFidReader(ShapefileDataStore datastore, RecordNumberTracker tracker)
           
static ShpFiles getShpFiles(ShapefileDataStore ds)
           
static java.nio.channels.ReadableByteChannel getShpReadChannel(ShapefileDataStore ds)
           
static ShapefileReader getShpReader(ShapefileDataStore ds, com.vividsolutions.jts.geom.Envelope bbox, java.awt.Rectangle screenSize, org.opengis.referencing.operation.MathTransform mt, boolean hasOpacity, boolean returnJTS)
          gets a shapefile reader with the custom shaperenderer shape handler.
static java.net.URL getshpURL(ShapefileDataStore ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapefileRendererUtil

public ShapefileRendererUtil()
Method Detail

getShpReader

public static ShapefileReader getShpReader(ShapefileDataStore ds,
                                           com.vividsolutions.jts.geom.Envelope bbox,
                                           java.awt.Rectangle screenSize,
                                           org.opengis.referencing.operation.MathTransform mt,
                                           boolean hasOpacity,
                                           boolean returnJTS)
                                    throws java.io.IOException,
                                           org.opengis.referencing.operation.TransformException
gets a shapefile reader with the custom shaperenderer shape handler.

Parameters:
ds - the datastore used to obtain the reader
bbox - the area, in data coordinates, of the viewed data.
mt - The transform used to transform from data->world coordinates->screen coordinates
hasOpacity - the transform from screen coordinates to world coordinates. Used for decimation.
Returns:
Throws:
java.io.IOException
org.opengis.referencing.operation.TransformException

getDBFReader

public static IndexedDbaseFileReader getDBFReader(ShapefileDataStore ds)
                                           throws java.io.IOException
Throws:
java.io.IOException

getShpReadChannel

public static java.nio.channels.ReadableByteChannel getShpReadChannel(ShapefileDataStore ds)
                                                               throws java.io.IOException
Throws:
java.io.IOException

getshpURL

public static java.net.URL getshpURL(ShapefileDataStore ds)

getFidReader

public static FIDReader getFidReader(ShapefileDataStore datastore,
                                     RecordNumberTracker tracker)
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getShpFiles

public static ShpFiles getShpFiles(ShapefileDataStore ds)


Copyright © 1996-2010 Geotools. All Rights Reserved.