|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.geom.SeGeometry com.esri.sde.sdk.geom.SeSurface com.esri.sde.sdk.geom.SePolygon
public class SePolygon
This class represents a planar SeSurface, defined by 1 exterior boundary and 0 or more interior boundaries. Each interior boundary defines a hole in the SePolygon.
Field Summary |
---|
Constructor Summary | |
---|---|
SePolygon()
|
|
SePolygon(SeCoordRef cr,
SeEnvelope env)
|
|
SePolygon(SeCoordRef cr,
SePoint[] pts)
|
|
SePolygon(SeCoordRef cr,
SePoint[][] pts)
|
Method Summary | |
---|---|
double |
area()
Returns the area of a polygon or multipolygon. |
Geometry |
boundary()
Boundary takes a geometry object and returns its combined boundary as a geometry object. |
Geometry |
buffer(double distance)
Buffer takes a geometry object and returns the geometry object that surrounds the source object. |
Point |
centroid()
Centroid takes a polygon or multipolygon and returns its geometric center as a point. |
Geometry |
convexhull()
Returns the convex hull of a geometry object. |
int |
dimension()
Returns the dimension of a geometry object. |
Geometry |
envelope()
Returns the bounding box of a geometry object as a polygon. |
Geometry |
exterior()
The interior is the space occupied by the geometry. |
Linestring |
exteriorRing()
Returns the exterior ring of a polygon as a linestring. |
java.lang.String |
geometryType()
Geometrytype takes a geometry object and returns its geometry type as a string. |
double[] |
getMs()
|
SePoint[] |
getXYs()
|
double[] |
getZs()
|
Geometry |
interior()
The exterior of a geometry if all space not occupied by the geometry. |
Linestring |
interiorRingN(int n)
Returns the nth interior ring of a polygon as a linestring. |
boolean |
is3D()
Returns t (TRUE) if the geometry object has three-dimensional coordinates; otherwise, returns f (FALSE). |
boolean |
isEmpty()
Returns t (TRUE) if the geometry is empty; otherwise returns f (FALSE). |
boolean |
isMeasured()
Returns t (TRUE) if the geometry object has measures; otherwise, returns f (FALSE). |
boolean |
isSimple()
Returns t (TRUE) if the geometry object is simple otherwise, it returns f (FALSE). |
Geometry |
locateAlong(double measure)
Locatealong takes a geometry object and a measure to return as a multipoint the set of points found at the measure. |
Geometry |
locateBetween(double measure1,
double measure2)
Locatebetween takes a geometry object and two measure locations and returns a linestring that represents the set of disconnected paths between the two measure locations. |
int |
numInteriorRings()
Numinteriorrings takes a polygon and returns the number of its interior rings. |
int |
numPoints()
Returns the number of points in a geometry. |
double |
perimeter()
Returns the length of the perimeter of a surface. |
Point |
pointOnSurface()
Pointonsurface takes a polygon or multipolygon and returns a point guaranteed to lie on its surface. |
java.lang.String |
toString()
|
Methods inherited from class com.esri.sde.sdk.geom.SeGeometry |
---|
asBinary, asBinaryShape, asText, contains, crosses, difference, disjoint, distance, envelopesIntersect, equal, getMaxX, getMaxY, getMinX, getMinY, intersect, intersection, isValid, overlap, setCoordRef, srid, symmetricDiff, toSdeShape, toSeGeometry, touch, union, within |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.esri.sde.sdk.geom.Geometry |
---|
asBinary, asText, contains, crosses, difference, disjoint, distance, envelopesIntersect, equal, intersect, intersection, isValid, overlap, srid, symmetricDiff, touch, union, within |
Constructor Detail |
---|
public SePolygon() throws com.esri.sde.sdk.geom.SeGeometryException
com.esri.sde.sdk.geom.SeGeometryException
public SePolygon(SeCoordRef cr, SeEnvelope env) throws com.esri.sde.sdk.geom.SeGeometryException
com.esri.sde.sdk.geom.SeGeometryException
public SePolygon(SeCoordRef cr, SePoint[] pts) throws com.esri.sde.sdk.geom.SeGeometryException
com.esri.sde.sdk.geom.SeGeometryException
public SePolygon(SeCoordRef cr, SePoint[][] pts) throws com.esri.sde.sdk.geom.SeGeometryException
com.esri.sde.sdk.geom.SeGeometryException
Method Detail |
---|
public double area() throws com.esri.sde.sdk.geom.SeGeometryException
area
in interface Surface
area
in class SeSurface
com.esri.sde.sdk.geom.SeGeometryException
public double perimeter()
perimeter
in interface Surface
perimeter
in class SeSurface
public Linestring exteriorRing() throws com.esri.sde.sdk.geom.SeGeometryException
exteriorRing
in interface Polygon
com.esri.sde.sdk.geom.SeGeometryException
public int numInteriorRings() throws com.esri.sde.sdk.geom.SeGeometryException
numInteriorRings
in interface Polygon
com.esri.sde.sdk.geom.SeGeometryException
public Linestring interiorRingN(int n) throws com.esri.sde.sdk.geom.SeGeometryException
interiorRingN
in interface Polygon
com.esri.sde.sdk.geom.SeGeometryException
public Point centroid() throws com.esri.sde.sdk.geom.SeGeometryException
centroid
in interface Surface
centroid
in class SeSurface
com.esri.sde.sdk.geom.SeGeometryException
public Point pointOnSurface() throws com.esri.sde.sdk.geom.SeGeometryException
pointOnSurface
in interface Surface
pointOnSurface
in class SeSurface
com.esri.sde.sdk.geom.SeGeometryException
public Geometry interior()
interior
in interface Geometry
interior
in class SeGeometry
public Geometry exterior()
exterior
in interface Geometry
exterior
in class SeGeometry
public Geometry boundary() throws com.esri.sde.sdk.geom.SeGeometryException
boundary
in interface Geometry
boundary
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public Geometry buffer(double distance) throws com.esri.sde.sdk.geom.SeGeometryException
buffer
in interface Geometry
buffer
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public boolean isSimple()
isSimple
in interface Geometry
isSimple
in class SeGeometry
public boolean isEmpty()
isEmpty
in interface Geometry
isEmpty
in class SeGeometry
public int numPoints() throws com.esri.sde.sdk.geom.SeGeometryException
numPoints
in interface Geometry
numPoints
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public Geometry envelope() throws com.esri.sde.sdk.geom.SeGeometryException
envelope
in interface Geometry
envelope
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public int dimension()
dimension
in interface Geometry
dimension
in class SeGeometry
public boolean isMeasured()
isMeasured
in interface Geometry
isMeasured
in class SeGeometry
public boolean is3D()
is3D
in interface Geometry
is3D
in class SeGeometry
public java.lang.String geometryType()
geometryType
in interface Geometry
geometryType
in class SeGeometry
public Geometry convexhull() throws com.esri.sde.sdk.geom.SeGeometryException
convexhull
in interface Geometry
convexhull
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public Geometry locateAlong(double measure) throws com.esri.sde.sdk.geom.SeGeometryException
locateAlong
in interface Geometry
locateAlong
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public Geometry locateBetween(double measure1, double measure2) throws com.esri.sde.sdk.geom.SeGeometryException
locateBetween
in interface Geometry
locateBetween
in class SeGeometry
com.esri.sde.sdk.geom.SeGeometryException
public SePoint[] getXYs()
public double[] getMs()
public double[] getZs()
public java.lang.String toString()
toString
in class SeGeometry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |