All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sdoOracle.sdoGID

java.lang.Object
   |
   +----sdoOracle.sdoGID

public class sdoGID
extends Object
Class sdoGid implements a collection of geometries of SDO. Refer to SDO manual for additional information.

See Also:
Box, sdoGeometryList

Constructor Index

 o sdoGID()
Constructs a new sdoGID object.

Method Index

 o Add(sdoGeometry)
Adds a new geometry to this collection.
 o Clear()
Clears the collection contents.
 o FindPoint(WPoint, double)
Finds the closest point geometry given a point and a tolerance value.
 o FindPolygon(WPoint)
Finds the polygon that contains the input point.
 o First()
Returns the first geometry of this collection.
 o GetBox()
Returns the Box object that contains all geometries of collection.
 o GetId()
Returns the collection identifier.
 o GetItem(int)
Returns the geometry related with input index.
 o Item()
Returns the current geometry.
 o MbrsArea()
Returns the total mbr area that contains the geometries.
 o Next()
Returns the next geometry of this collection.
 o NumberOfVertices()
Returns the total number of vertices in this collection.
 o Size()
Returns the actual number of geometries of this collection.

Constructors

 o sdoGID
 public sdoGID()
Constructs a new sdoGID object.

Methods

 o GetId
 public long GetId()
Returns the collection identifier.

Returns:
returns a long value.
 o GetBox
 public Box GetBox()
Returns the Box object that contains all geometries of collection.

Returns:
returns a Box object or null.
 o Add
 public boolean Add(sdoGeometry g)
Adds a new geometry to this collection. If this collection is empty, then the id of the input geometry is assumed as the the id of the collection, and the next geometries to be added must have this same identifier.

Returns:
returns a boolean value true or false.
 o First
 public sdoGeometry First()
Returns the first geometry of this collection.

Returns:
returns a sdoGeometry object or null.
 o Next
 public sdoGeometry Next()
Returns the next geometry of this collection.

Returns:
returns a sdoGeometry object or null.
 o Clear
 public void Clear()
Clears the collection contents.

 o Item
 public sdoGeometry Item()
Returns the current geometry.

Returns:
returns a sdoGeometry object or null.
 o GetItem
 public sdoGeometry GetItem(int index)
Returns the geometry related with input index.

Parameters:
index - position in the list (starts at 0).
Returns:
returns a sdoGeometry object or null.
 o Size
 public int Size()
Returns the actual number of geometries of this collection.

Returns:
returns an integer value.
 o NumberOfVertices
 public int NumberOfVertices()
Returns the total number of vertices in this collection.

Returns:
returns an integer value.
 o MbrsArea
 public double MbrsArea()
Returns the total mbr area that contains the geometries.

Returns:
returns a double value.
 o FindPoint
 public sdoGeometry FindPoint(WPoint wc,
                              double tolerance)
Finds the closest point geometry given a point and a tolerance value.

Returns:
returns a sdoGeometry object or null.
 o FindPolygon
 public sdoGeometry FindPolygon(WPoint wc)
Finds the polygon that contains the input point. The polygon found has the minimum mbr area (may be a hole). If this mbr is inside another polygon of this gid, then the location of this point is outside, otherwise is inside.

Returns:
returns a sdoGeometry object or null.

All Packages  Class Hierarchy  This Package  Previous  Next  Index