org.geotools.data.shapefile
Class ShapefileRendererUtil

java.lang.Object
  extended byorg.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 DbaseFileReader getDBFReader(ShapefileDataStore ds)
           
static FIDReader getFidReader(ShapefileDataStore datastore)
           
static java.nio.channels.ReadableByteChannel getShpReadChannel(ShapefileDataStore ds)
           
static ShapefileReader getShpReader(ShapefileDataStore ds, com.vividsolutions.jts.geom.Envelope bbox, org.opengis.referencing.operation.MathTransform mt, boolean hasOpacity)
          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,
                                           org.opengis.referencing.operation.MathTransform mt,
                                           boolean hasOpacity)
                                    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 DbaseFileReader 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)
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException


Copyright © GeoTools. All Rights Reserved.