public abstract class GeoReader
extends java.lang.Object
addShape()
method.Constructor and Description |
---|
GeoReader() |
Modifier and Type | Method and Description |
---|---|
protected void |
addShape(GeoShape shape)
Add a shape to the reader's internal shape list.
|
GeoLayer |
createLayer()
Creates a geographic layer.
|
GeoShape |
findShape(java.lang.String shapeName)
Find a shape which matches the specified shape name.
|
GeoShape |
findShape(java.lang.String fieldName,
java.lang.String fieldValue)
Find a shape which matches a particular value for a text field.
|
abstract java.lang.String |
getName()
Get the name associated with this reader
|
java.util.List<GeoShape> |
getShapes()
Gets the geographic shapes.
|
java.util.Set<GeoShape> |
matchShapes(DataFilter filter)
Return all shapes which match a particular data filter.
|
protected void addShape(GeoShape shape)
shape
- the shape to addpublic GeoLayer createLayer()
public GeoShape findShape(java.lang.String shapeName)
shapeName
- Name of the shape, to match against DBF file datapublic GeoShape findShape(java.lang.String fieldName, java.lang.String fieldValue)
fieldName
- name of the field, to match against DBF file datafieldValue
- value of the field, to match against DBF file datapublic abstract java.lang.String getName()
public java.util.List<GeoShape> getShapes()
public java.util.Set<GeoShape> matchShapes(DataFilter filter)
filter
- the data filter to match