com.hardcode.gdbms.engine.data.driver
Interface SpatialDriver

All Known Subinterfaces:
SpatialDBDriver, SpatialFileDriver, SpatialObjectDriver

public interface SpatialDriver

Driver to access spatial data sources


Field Summary
static int CANBEHETEROGENEOUS
           
static int HETEROGENOUS
           
static int HOMOGENEOUS
           
 
Method Summary
 java.awt.geom.Rectangle2D getFullExtent()
          Gets the full extent of the data accessed
 int getGeometryType()
          Returns the geometry type of the data.
 int getHomogeneity()
          Returns HOMOGENEOUS if the geometries of all sources this driver can access are the of the same type.
 

Field Detail

HOMOGENEOUS

static final int HOMOGENEOUS
See Also:
Constant Field Values

HETEROGENOUS

static final int HETEROGENOUS
See Also:
Constant Field Values

CANBEHETEROGENEOUS

static final int CANBEHETEROGENEOUS
See Also:
Constant Field Values
Method Detail

getFullExtent

java.awt.geom.Rectangle2D getFullExtent()
                                        throws DriverException
Gets the full extent of the data accessed

Returns:
Rectangle2D
Throws:
DriverException - if the operation fails

getGeometryType

int getGeometryType()
                    throws DriverException
Returns the geometry type of the data. It can be any of the SpatialMetadata constants

Returns:
Throws:
DriverException - If the operation fails

getHomogeneity

int getHomogeneity()
Returns HOMOGENEOUS if the geometries of all sources this driver can access are the of the same type. Returns HETEROGENEOUS if the geometries of all sources this driver can access can be of any type. Returns CANBEHETEROGENEOUS if the sources this driver accesses can be HOMOGENEOUS or HETEROGENEOUS

Returns:
one of the constans HOMOGENEOUS, HETEROGENEOUS, CANBEHETEROGENEOUS


Copyright © 2005-2006 . All Rights Reserved.