All Packages Class Hierarchy This Package Previous Next Index
Class sdoOracle.sdoQuery
java.lang.Object
|
+----sdoOracle.sdoQuery
- public class sdoQuery
- extends Object
Class sdoQuery implements the SDO layer query.
- See Also:
- sdoInfo, sdoGeometryList, sdoGIDList
-
sdoQuery()
- Constructs a new sdoLayer object.
-
sdoQuery(sdoLayer, Connection, String)
- Constructs a new sdoLayer object with the input parameters.
-
GetAllObjects()
- Returns all geometry collections with points
and keep in memory.
-
GetAllObjects(boolean)
- Returns all layer geometry with points or not.
-
GetObject(long)
- Returns the list of geometries for the input id.
-
GetObjects(double, double, double, double, int, boolean)
- Returns a list of geometries that overlap or are inside the
input rectangle.
-
GetObjects(String, long, String)
- Returns a list of geometries that match the input
relation mask to the input gid (collection of geometries).
-
GetObjects(WPoint, double)
- Returns a list of geometries that interacts with input point.
-
GetObjects(WPointList, int, boolean)
- Returns a list of geometries that interacts with input geometry that
must be a closed list of points.
-
GetRelation(long, long)
- Returns the relation between two gid's (collection of geometries).
-
getSDOdata()
- Returns SDO data in memory.
-
getSDOgids()
- Returns SDO GID list in memory.
-
GetTiles(double, double, double, double, String)
- Returns tiles that interacts with input mbr.
-
GetTiles(long, String)
- Returns tiles for input gid (collection of geometries).
-
Interact(long, long)
- Identifies if two gid's (collection of geometries) have interaction.
-
Interact(long, String, long)
- Identifies if two gid's (collection of geometries) of
different layers have interaction.
-
Interact(long, WPointList, short)
- Identifies if input gid (collection of geometries) have interaction
with the input geometry represented by a list of points.
-
setSDOdata(sdoGeometryList)
- Associates SDO data in memory to read from.
-
setSDOgids(sdoGIDList)
- Associates SDO GID list in memory to read from.
-
setSDOinfo(sdoInfo)
- Associates SDO layer information.
-
setSDOschema(boolean)
- Associates SDO layer schema.
-
setShowInfo(boolean)
- Whether or not to show selectivity information.
-
setTextArea(sdoTextArea, sdoErrorWindow)
- Associates a text area to write information.
sdoQuery
public sdoQuery()
- Constructs a new sdoLayer object.
sdoQuery
public sdoQuery(sdoLayer parent,
Connection conn,
String table)
- Constructs a new sdoLayer object with the input parameters.
setTextArea
public void setTextArea(sdoTextArea text,
sdoErrorWindow error)
- Associates a text area to write information.
This method is just for debug. Will be eliminated later.
- Parameters:
- text - sdoTextArea object.
- error - sdoErrorWindow object.
setShowInfo
public void setShowInfo(boolean showInfo)
- Whether or not to show selectivity information.
- Parameters:
- showInfo - boolean variable.
setSDOinfo
public void setSDOinfo(sdoInfo info)
- Associates SDO layer information.
- Parameters:
- info - sdoInfo object of current SDO layer.
setSDOschema
public void setSDOschema(boolean isHybrid)
- Associates SDO layer schema.
- Parameters:
- isHybrid - if current layer has hybrid schema.
setSDOdata
public void setSDOdata(sdoGeometryList data)
- Associates SDO data in memory to read from.
- Parameters:
- data - sdoGeometryList object.
getSDOdata
public sdoGeometryList getSDOdata()
- Returns SDO data in memory.
- Returns:
- returns sdoGeometryList object.
setSDOgids
public void setSDOgids(sdoGIDList gids)
- Associates SDO GID list in memory to read from.
- Parameters:
- gids - sdoGIDList object.
getSDOgids
public sdoGIDList getSDOgids()
- Returns SDO GID list in memory.
- Returns:
- returns sdoGIDList object.
GetAllObjects
public sdoGIDList GetAllObjects()
- Returns all geometry collections with points
and keep in memory. The method FreeData must be called
in order to liberate this memory.
- Returns:
- returns a sdoGIDList object or null.
GetAllObjects
public sdoGeometryList GetAllObjects(boolean points)
- Returns all layer geometry with points or not.
If data is in memory, then the input parameter has no effect
and the current list in memory is returned.
- Returns:
- returns a sdoGeometryList object or null.
GetObject
public sdoGeometryList GetObject(long id)
- Returns the list of geometries for the input id.
- Returns:
- returns a sdoGeometryList object.
GetObjects
public sdoGeometryList GetObjects(String layer,
long id,
String relationmask)
- Returns a list of geometries that match the input
relation mask to the input gid (collection of geometries).
The mask value can be a conbination of several relations, such
as "INSIDE+OVERLAP".
Refer to SDO manual about sdo_geom.relate function.
- Returns:
- returns a sdoGeometryList object,
GetObjects
public sdoGeometryList GetObjects(double x1,
double y1,
double x2,
double y2,
int filter,
boolean points)
- Returns a list of geometries that overlap or are inside the
input rectangle. The input parameter filter specify if
primary or secondary filter has to be applied.
If the input box contains the whole data, then the
parameter filter is not used, therefore the primary or
secondary filter are not used.
If data is already in memory, input parameters "filter" and "points" have
no effect.
This method assumes that the query layer has been created
with CreateQueryWindow method of sdoWorkspace class.
- Returns:
- returns a sdoGeometryList object or null.
GetObjects
public sdoGeometryList GetObjects(WPointList coords,
int filter,
boolean points)
- Returns a list of geometries that interacts with input geometry that
must be a closed list of points.
Primary or secondary filter can be used, as well the points may
be loaded or not.
Even if data is in memory this method goes to the database and returns
a new list of geometries.
This method assumes that the query layer has been created
with CreateQueryWindow method of sdoWorkspace class.
- Returns:
- returns a sdoGeometryList object or null.
GetObjects
public sdoGeometryList GetObjects(WPoint wc,
double tol)
- Returns a list of geometries that interacts with input point.
This method has not been implemented yet.
- Returns:
- returns a sdoGeometryList object or null.
GetTiles
public BoxList GetTiles(double xmin,
double ymin,
double xmax,
double ymax,
String tile_type)
- Returns tiles that interacts with input mbr.
Note: the hhcellbndry function doesn't work well with the
input box, so for now the input parameters have no effect.
- Returns:
- returns a BoxList object or null.
GetTiles
public BoxList GetTiles(long gid,
String tile_type)
- Returns tiles for input gid (collection of geometries).
- Returns:
- returns a BoxList object or null.
GetRelation
public String GetRelation(long gid1,
long gid2)
- Returns the relation between two gid's (collection of geometries).
Refer to SDO manual about sdo_geom.relate function.
- Returns:
- returns a String object with the spatial relation.
Interact
public String Interact(long gid1,
long gid2)
- Identifies if two gid's (collection of geometries) have interaction.
Refer to SDO manual about sdo_geom.interact function.
- Returns:
- returns a String object with 'TRUE' or 'FALSE'.
Interact
public String Interact(long gid1,
String layer2,
long gid2)
- Identifies if two gid's (collection of geometries) of
different layers have interaction.
Refer to SDO manual about sdo_geom.interact function.
- Returns:
- returns a String object with 'TRUE' or 'FALSE'.
Interact
public String Interact(long gid1,
WPointList coords,
short etype)
- Identifies if input gid (collection of geometries) have interaction
with the input geometry represented by a list of points.
Refer to SDO manual about sdo_geom.interact function.
- Returns:
- returns a String object with 'TRUE' or 'FALSE'.
All Packages Class Hierarchy This Package Previous Next Index