|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataSourceInterface
Method Summary | |
---|---|
String[][] |
getAttributes()
returns the attribute data |
String[] |
getColumnNames()
returns the columnNames of the attribute data |
URL |
getDataSource()
returns the URL of the datasource |
int |
getNumShapes()
returns the number of shapes of the particular datasource |
GisObject |
getShape(int index)
returns a GisObject |
List |
getShapes()
returns all the shapes of the particular datasource |
List |
getShapes(Rectangle2D rectangle)
returns the shapes of the particular datasource in a particular extent |
List |
getShapes(String attribute,
String columnName)
returns the shapes based on a particular value of the attributes |
int |
getType()
|
Method Detail |
---|
String[] getColumnNames()
String[][] getAttributes() throws IOException
IOException
- on IOExceptionURL getDataSource()
int getNumShapes() throws IOException
IOException
- possible file IO or database connection failures.GisObject getShape(int index) throws IOException, IndexOutOfBoundsException
index
- the number of the shape to be returned
nl.javel.gisbeans.geom.GisObject
IndexOutOfBoundsException
- whenever index>numShapes
IOException
- on IOFailureList getShapes() throws IOException
nl.javel.gisbeans.geom.GisObject
IOException
- on IOFailureList getShapes(Rectangle2D rectangle) throws IOException
rectangle
- the extent of the box (in geo-coordinates)
nl.javel.gisbeans.geom.GisObject
IOException
- on IOFailureList getShapes(String attribute, String columnName) throws IOException
attribute
- the value of the attributecolumnName
- the columnName
nl.javel.gisbeans.geom.GisObject
IOException
- on IOFailureint getType() throws IOException
IOException
- on IOFailure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |