root / trunk / libraries / libGDBMS / src / main / java / com / hardcode / gdbms / engine / data / driver / SpatialDriver.java @ 10627
History | View | Annotate | Download (1.06 KB)
1 |
package com.hardcode.gdbms.engine.data.driver; |
---|---|
2 |
|
3 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
4 |
import com.hardcode.gdbms.engine.spatial.Geometry; |
5 |
|
6 |
import java.awt.geom.Rectangle2D; |
7 |
|
8 |
|
9 |
/**
|
10 |
* Driver to access spatial data sources
|
11 |
*/
|
12 |
public interface SpatialDriver { |
13 |
/**
|
14 |
* Gets the full extent of the data accessed
|
15 |
*
|
16 |
* @return Rectangle2D
|
17 |
*
|
18 |
* @throws DriverException if the operation fails
|
19 |
* @throws ReadDriverException
|
20 |
*/
|
21 |
public Rectangle2D getFullExtent() throws ReadDriverException; |
22 |
|
23 |
/**
|
24 |
* gets the rowIndex-th geometry
|
25 |
*
|
26 |
* @param rowIndex index of the geometry to be retrieved
|
27 |
*
|
28 |
* @return Gemetry
|
29 |
* @throws ReadDriverException TODO
|
30 |
*/
|
31 |
public Geometry getGeometry(long rowIndex) throws ReadDriverException; |
32 |
|
33 |
/**
|
34 |
* DOCUMENT ME!
|
35 |
*
|
36 |
* @param rowIndex DOCUMENT ME!
|
37 |
*
|
38 |
* @return DOCUMENT ME!
|
39 |
* @throws ReadDriverException TODO
|
40 |
*/
|
41 |
public com.vividsolutions.jts.geom.Geometry getJTSGeometry(long rowIndex) |
42 |
throws ReadDriverException;
|
43 |
} |