|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.sde.sdk.client.SeShape
public class SeShape
The ESRI representation of a geometric shape. Shapes represent geometric objects in two-dimensional planar space that are useful for GIS applications. Shapes can be 0-dimensional points, 1-dimensional lines, and 2-dimensional areas. The available shape types are nil, points, lines, simple lines, and areas. Each shape has a spatial reference system which describes the coordinate space in which the shape is defined. ArcSDE functions that compare or combine two shapes use `Clementini` operators. Eliseo Clementini and colleagues have formalized the possible relationships that can exist between shapes. The Clementini operators differentiate between a shape`s boundary and interior. A point is considered to be all interior and has no boundary. The endpoints of a line constitutes its boundary, while the rest of the line is considered the interior. The lines that form the edge of a polygon are the boundary, while the rest of the polygon is the interior.
Field Summary | |
---|---|
static int |
RM_AREA_INTERSECT
AREA_INTERSECTION Shape Relationship returned in findRelation. |
static int |
RM_BOUNDARY_INTERSECT
BOUNDARY INTERSECTION Shape Relationship returned in findRelation. |
static int |
RM_CBOUND_DIFF
COMMON EDGE OPPOSITE DIRECTION Shape Relationship returned in findRelation. |
static int |
RM_CBOUND_SAME
COMMON EDGE SAME DIRECTION Shape Relationship returned in findRelation. |
static int |
RM_COMMON_POINT
COMMON_POINT Shape Relationship returned in findRelation. |
static int |
RM_EMBEDDED_POINT
VERTICE EMBEDDED IN LINE Shape Relationship returned in findRelation. |
static int |
RM_IDENTICAL
PRIMARY == SECONDARY Shape Relationship returned in findRelation. |
static int |
RM_INTERIOR_INTERSECT
INTERIOR INTERSECTION Shape Relationship returned in findRelation. |
static int |
RM_LINE_CROSS
LINE CROSS Shape Relationship returned in findRelation. |
static int |
RM_PARALLEL_OVERLAPPING
PARALLEL OVERLAPPING LINES Shape Relationship returned in findRelation. |
static int |
RM_PRIM_CONTAINED
PRIMARY CONTAINED BY SECONDARY Shape Relationship returned in findRelation. |
static int |
RM_PRIM_LEP_INTERIOR
PRIMARY ENDPOINT TOUCHES INTERIOR Shape Relationship returned in findRelation. |
static int |
RM_SEC_CONTAINED
SECONDARY CONTAINED BY PRIMARY Shape Relationship returned in findRelation. |
static int |
RM_SEC_LEP_INTERIOR
SECONDARY ENDPOINT TOUCHES INTERIOR Shape Relationship returned in findRelation. |
static int |
RM_TESTS_PERFORMED
Bit mask used to determine if any shape relationship tests were performed. |
static int |
SE_BUILD_POLYGONS_FROM_ALL_RINGS
Uses all segments in the shape to create a polygon. |
static int |
SE_BUILD_POLYGONS_FROM_CLOCKWISE_RINGS
Uses only the clockwise lines in the shape to create a polygon. |
static int |
SE_BUILD_POLYGONS_FROM_COUNTERCLOCKWISE_RINGS
Uses only the counterclockwise lines in the shape to create a polygon. |
static int |
SE_BUILD_SIMPLELINES
Converts a set of spagetti lines into a multipart simple line shape. |
static int |
SE_MATCH_MEASURES
Match the measure values when connecting line segments in build when build mode is SE_BUILD_SIMPLELINES |
static int |
SE_MATCH_ZEDS
Match the Z coordinate values when connecting line segments in build when build mode is SE_BUILD_SIMPLELINES |
static int |
SE_MATCH_ZEDS_AND_MEASURES
Match the z coordinate and measure values when connecting line segments in build when build mode is SE_BUILD_SIMPLELINES |
static int |
TURN_DEFAULT
|
static int |
TURN_LEFT
Left hand rotation - Polygon interior is on the Left |
static int |
TURN_RIGHT
Right hand rotation - Polygon interior is on the right. |
static int |
TYPE_LINE
|
static int |
TYPE_MULTI_LINE
|
static int |
TYPE_MULTI_POINT
|
static int |
TYPE_MULTI_POLYGON
|
static int |
TYPE_MULTI_SIMPLE_LINE
|
static int |
TYPE_NIL
|
static int |
TYPE_POINT
|
static int |
TYPE_POLYGON
|
static int |
TYPE_SIMPLE_LINE
|
Constructor Summary | |
---|---|
SeShape()
Creates a Nil Shape. |
|
SeShape(SeCoordinateReference cRef)
Creates a Nil shape with the specified coordinate reference. |
Method Summary | |
---|---|
void |
addIsland(SDEPoint[] pts)
Adds and island ring (donut hole) to an area shape. |
void |
addPart(SeShape srcShape)
Adds a new part to the shape. |
java.util.ArrayList |
asBinary(int allocSize)
Returns ESRI binary shape representation. |
SeShape |
asLine()
Returns a shape of type line, using a shape of any type. |
SeShape |
asPoint()
Returns a shape of type point, using a shape of any type. |
SeShape |
asPolygon()
Returns a shape of type polygon, using a shape of any type. |
SeShape |
asSimpleLine()
Returns a shape of simple line type, using a shape of any type. |
java.lang.String |
asText(int maxStringLength)
Returns a textual representation of a shape object. |
java.util.ArrayList |
asWKB(int allocSize)
Returns WKB representation of this shape object. |
SeShape |
build(int mode,
boolean dissolve,
int match)
Assembles a linestring or area shape from the calling shape, which must be a (spagetti) line shape. |
double |
calculateDistance(SeShape secShape,
boolean insideTest)
Returns the closest distance between two shapes. |
SeShape |
changeCoordRef(SeCoordinateReference coordref,
PeGeogTransformations geogtran)
Projects a shape to a new coordinate system. |
void |
changePath(SDEPoint firstPoint,
SDEPoint midPoint,
SDEPoint lastPoint,
SDEPoint[] pointList)
Replaces a path in the source shape with a new path. |
SeShape |
clip(SeExtent env)
Returns the intersection (logical AND of space) of the shape and a supplied rectangular envelope. |
java.lang.Object |
clone()
Returns a copy of the shape. |
void |
deleteIsland(SDEPoint point)
Deletes the island ring that contains the specified point from the source shape. |
void |
deletePart(int partNumber)
Deletes the specified part of a multipart shape. |
void |
deletePath(SDEPoint firstPoint,
SDEPoint midPoint,
SDEPoint lastPoint)
Deletes a path from the calling shape. |
void |
deletePoint(SDEPoint point)
Deletes all occurrences of the specified point in the shape. |
SeShape |
difference(SeShape secondaryShape)
The difference function returns the portion of this shape that is not intersected by the secondary shape. |
void |
extendLine(SDEPoint endpoint,
SDEPoint[] points)
Extends a linear shape by adding a specified string of points to the beginning or end of the shape. |
SeShape |
filterCoordinates(double distance)
Applies a Douglas_Poiker line generalization to a shape. |
SeShape[] |
findAlong(double measure)
Returns the points or lines along a shape as defined by the shape's measures and the supplied measured value. |
SeShape[] |
findBetween(double fromMeasure,
double toMeasure)
Returns the points or lines along a shape as defined by the shape's measures between the given from- and to- values. |
long |
findRelation(SeShape secondaryShape)
Returns a mask defining all the relationships between the calling shape and the supplied shape. |
void |
fromSeGeometry(SeGeometry geom)
Sets this object's shape from an SeGeometry object. |
SeShape |
generateBuffer(double distance,
int maxPts)
Generates a buffer around the source shape, and returns the resulting new shape. |
SeShape |
generateCircle(SDEPoint center,
double radius,
int numPts)
Generates a polygon shape in the form of a circle based on the supplied center, radius and number of points. |
SeShape |
generateConvexHull()
Computes the convex hull polygon for a shape's points. |
void |
generateEllipse(SDEPoint center,
double semiMajorAxis,
double semiMinorAxis,
double angle,
int numPts)
Generates an area shape that approximates an ellipse. |
void |
generateFromBinary(byte[] binaryShape)
|
SeShape |
generateFromPart(int partNumber)
Generates a new shape from the specified part number of a multi-part shape. |
int |
generateFromText(java.lang.String textShape)
Returns a shape object from its textual representaion. |
void |
generateFromWKB(byte[] wkbShape)
Constructs shape from WKB representation. |
SDEPoint |
generateLabelPoint()
Generates a label point for a shape. |
void |
generateLine(int numPts,
int numParts,
int[] partOffsets,
SDEPoint[] ptArray)
Generates a line shape from an array of points. |
void |
generatePoint(int numPts,
SDEPoint[] ptArray)
Generates a point shape from an array of points. |
void |
generatePolygon(int numPts,
int numParts,
int[] partOffsets,
SDEPoint[] ptArray)
Turns this shape into a polygon shape from an array of points. |
void |
generateRectangle(SeExtent ext)
Generates a polygon shape in the form of a rectangle, based on the supplied lower-left and upper-right points. |
void |
generateSimpleLine(int numPts,
int numParts,
int[] partOffsets,
SDEPoint[] ptArray)
Generates a simple line shape from an array of points. |
double |
get3DLength()
Returns the three-dimensional length of a shape. |
double |
get3DLength(int partNumber)
Returns the three-dimensional length of a shape part. |
double[][][] |
getAllCoords()
Returns the world coordinates as an array of parts/subparts/coordinates. |
double[][][] |
getAllCoords(int turn)
Returns the world coordinates as an array of parts/subparts/coordinates. |
java.util.ArrayList |
getAllPoints(int rotation,
boolean wantSubpartOffsets)
Retrieves all the points as well as part offsets and subpart offsets of the shape. |
SeShapeAnno |
getAnno()
Returns the shape's annotation. |
double |
getArea()
Returns the area of a shape. |
double |
getArea(int partNum)
Returns the area of a shape. |
int |
getBinarySize()
Returns the size of a ESRI binary representation. |
com.esri.sde.sdk.client.SeShapeCad |
getCad()
Returns the shape's cad. |
SeCoordinateReference |
getCoordRef()
Returns the coordinate reference of a shape. |
SeExtent |
getExtent()
Returns the extent of a shape. |
SeExtent |
getExtent(int partNum)
Returns the extent of a shape or a shape part. |
SeObjectId |
getFeatureId()
Returns the shape's unique id. |
double |
getLength()
Returns the length of a shape. |
int |
getMaxM()
Deprecated. at ArcSDE 9.0, replaced by . |
long |
getMaxMValue()
Returns the maximum measure value. |
int |
getMaxZ()
Deprecated. at ArcSDE 9.0, replaced by . |
long |
getMaxZValue()
Returns the maximum z coordinate value. |
int |
getMinM()
Deprecated. at ArcSDE 9.0, replaced by . |
long |
getMinMValue()
Returns the minimum measure value. |
int |
getMinZ()
Deprecated. at ArcSDE 9.0, replaced by . |
long |
getMinZValue()
Returns the minimum z coordinate value. |
double[] |
getMRange()
Returns the range of measure values of a shape. |
double[] |
getMRange(int partNumber)
Returns the range of measure values of a shape part. |
int |
getNumOfPoints()
Returns the number of points of the shape. |
int |
getNumParts()
Returns the number of parts in a shape. |
int |
getNumPoints(int partNum,
int subPartNum)
Returns the number of points in a shape or a shape part. |
int |
getNumSubParts(int partNum)
Returns the number of subparts of a part in a multi-part shape. |
java.util.ArrayList |
getPoints(int rotation,
int partNumber)
Returns the point array of the specified part, and the subpart offsets, if there are any. |
int |
getTextSize()
Returns the maximum size for the text. |
int |
getType()
|
int |
getWKBSize()
Returns the size of WKB representation. |
double[] |
getZRange()
Returns the range of elevation values of a shape. |
double[] |
getZRange(int partNumber)
Returns the range of elevation values of a shape part. |
boolean |
hasAnno()
Returns TRUE if the supplied shape has annotation. |
boolean |
hasCad()
Returns TRUE if the supplied shape has cad. |
void |
insertPart(int partNum,
SeShape srcShape)
Inserts all of the parts of a given shape into the calling shape at the specified part index. |
void |
interpolateByMeasures(double delta)
Interpolates the shape by adding points based on measure deltas. |
SeShape[] |
intersect(SeShape secondaryShape)
Returns the intersection (logical AND NOT of space) of two shapes. |
boolean |
is3D()
Returns TRUE if the supplied shape has an elevation array. |
boolean |
isContaining(SeShape secondaryShape)
Returns TRUE if the primary shape wholly contains the secondary shape. |
boolean |
isCrossing(SeShape secondaryShape)
Returns TRUE if the intersection of the interiors is a lower dimension than the maximum dimension of the two shapes. |
boolean |
isDisjoint(SeShape secondaryShape)
Returns TRUE if the intersection of two shapes is empty. |
boolean |
isEqual(SeShape secondaryShape)
Returns TRUE if the two supplied shapes are identical. |
boolean |
isLine()
Returns TRUE if the supplied shape is type line. |
boolean |
isMeasured()
Returns TRUE if the supplied shape has a measure array. |
boolean |
isMultiPart()
Returns TRUE if the supplied shape has multiple parts. |
boolean |
isNil()
Returns TRUE if the supplied shape is nil(empty). |
boolean |
isOverlapping(SeShape secondaryShape)
Returns TRUE if the intersection of two shapes results in an object of the same geometric dimension. |
boolean |
isPoint()
Returns TRUE if the supplied shape is type point. |
boolean |
isPolygon()
Returns TRUE if the supplied shape is type polygon. |
boolean |
isSimpleLine()
Returns TRUE if the supplied shape is type simple line. |
boolean |
isTouching(SeShape secondaryShape)
Returns TRUE if the two supplied shapes hsare a common boundary. |
boolean |
isWithin(SeShape secondaryShape)
Returns TRUE if this shape is wholly contained within secondaryShape. |
void |
makeNil()
Makes this shape a nil shape. |
void |
movePoint(SDEPoint fromPoint,
SDEPoint toPoint)
Moves all occurrences of a single point to a new location. |
SeShape[] |
overlay(SeShape secondaryShape)
Overlays two shapes. |
void |
replacePart(int partNum,
SeShape srcShape)
Replaces a shape part with another shape. |
void |
replacePathWithArc(SDEPoint firstPoint,
SDEPoint midPoint,
SDEPoint lastPoint,
double radius,
int arcSegs)
Replaces a line or path with a circular arc represented as a series of vectors. |
void |
setAnno(SeShapeAnno anno)
Sets the shape's annotation. |
void |
setCad(com.esri.sde.sdk.client.SeShapeCad cad)
Sets the shape's cad. |
void |
setCoordRef(SeCoordinateReference cRef)
Sets the coordinate reference of the shape. |
SeShape |
symmetricalDifference(SeShape secondaryShape)
Returns the symmetrical difference (logical XOR of space) of two shapes. |
java.awt.geom.GeneralPath |
toGeneralPath()
Returns a shape as a Java path object for Java graphics. |
java.awt.geom.GeneralPath |
toGeneralPath(int rotation)
Returns a shape as a Java path object for Java graphics with a specified rotation. |
SeGeometry |
toSeGeometry()
Convert this shape into an SeGeometry object. |
java.lang.String |
toString()
Returns a string description of the shape. |
SeShape |
union(SeShape secondaryShape)
Returns the union (logical OR of space) of two shapes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_NIL
public static final int TYPE_POINT
public static final int TYPE_LINE
public static final int TYPE_SIMPLE_LINE
public static final int TYPE_POLYGON
public static final int TYPE_MULTI_POINT
public static final int TYPE_MULTI_LINE
public static final int TYPE_MULTI_SIMPLE_LINE
public static final int TYPE_MULTI_POLYGON
public static final int TURN_DEFAULT
public static final int TURN_LEFT
public static final int TURN_RIGHT
public static final int SE_BUILD_POLYGONS_FROM_ALL_RINGS
public static final int SE_BUILD_POLYGONS_FROM_COUNTERCLOCKWISE_RINGS
public static final int SE_BUILD_POLYGONS_FROM_CLOCKWISE_RINGS
public static final int SE_BUILD_SIMPLELINES
public static final int SE_MATCH_ZEDS
public static final int SE_MATCH_MEASURES
public static final int SE_MATCH_ZEDS_AND_MEASURES
public static final int RM_LINE_CROSS
public static final int RM_COMMON_POINT
public static final int RM_EMBEDDED_POINT
public static final int RM_CBOUND_SAME
public static final int RM_CBOUND_DIFF
public static final int RM_PARALLEL_OVERLAPPING
public static final int RM_IDENTICAL
public static final int RM_AREA_INTERSECT
public static final int RM_INTERIOR_INTERSECT
public static final int RM_BOUNDARY_INTERSECT
public static final int RM_PRIM_LEP_INTERIOR
public static final int RM_SEC_LEP_INTERIOR
public static final int RM_PRIM_CONTAINED
public static final int RM_SEC_CONTAINED
public static final int RM_TESTS_PERFORMED
findRelation(com.esri.sde.sdk.client.SeShape)
.
Constructor Detail |
---|
public SeShape() throws SeException
SeException
public SeShape(SeCoordinateReference cRef) throws SeException
SeException
Method Detail |
---|
public double getArea() throws SeException
SeException
public double getArea(int partNum) throws SeException
SeException
public SeExtent getExtent() throws SeException
SeException
public SeExtent getExtent(int partNum) throws SeException
SeException
public double getLength() throws SeException
SeException
public double[] getMRange() throws SeException
SeException
public double[] getMRange(int partNumber) throws SeException
partNumber
- The number of the part to return the M range for.
SeException
public int getNumParts() throws SeException
SeException
public int getNumSubParts(int partNum) throws SeException
partNum
- The number of the part to get the subpart count for.
SeException
public int getNumPoints(int partNum, int subPartNum) throws SeException
SeException
public java.util.ArrayList getAllPoints(int rotation, boolean wantSubpartOffsets) throws SeException
rotation
- The winding-rule used to determine the order of the points returned for an area shape.wantSubpartOffsets
- do you want the subpart offsets for an area shape?
SeException
public java.util.ArrayList getPoints(int rotation, int partNumber) throws SeException
rotation
- The winding-rule used to determine the order of the points returned for an area shape.
SeException
public double get3DLength() throws SeException
SeException
public double get3DLength(int partNumber) throws SeException
partNumber
- The number of the part to return the length of.
SeException
public double[] getZRange() throws SeException
SeException
public double[] getZRange(int partNumber) throws SeException
partNumber
- The number of the part to return the Z range for.
SeException
public void addIsland(SDEPoint[] pts) throws SeException
pts
- An array of SDEPoints defining the island.
SeException
public void addPart(SeShape srcShape) throws SeException
SeException
public SeShape build(int mode, boolean dissolve, int match) throws SeException
SE_BUILD_POLYGONS_FROM_CLOCKWISE_RINGS - Uses only the clockwise lines in the shape to create a polygon.
SE_BUILD_POLYGONS_FROM_COUNTERCLOCKWISE_RINGS - Uses only the counterclockwise lines in the shape to create a polygon.
SE_BUILD_POLYGONS_FROM_ALL_RINGS - Uses all lines in the shape to create a polygon.
SE_BUILD_SIMPLELINES - Converts a set of spagetti lines into a multipart simple line shape
If the dissolve flag is TRUE, then all duplicate line segments are eliminated.
Match values: Used when build mode is SE_BUILD_SIMPLELINES
SE_MATCH_ZEDS - Match the z coordinate values when connecting line segments
SE_MATCH_MEASURES - Match the measure values when connecting line segments
SE_MATCH_ZEDS_AND_MEASURES - Match the z coordinate and measure values
mode
- the type of shape to build.dissolve
- indicates whether or not duplicate line segments should be removed.match
- determines if matches are to be made including zed and/or measure values.
SeException
public SeShape changeCoordRef(SeCoordinateReference coordref, PeGeogTransformations geogtran) throws SeException
If geogtran is null, the two coordinate systems are assumed to be based on the same datum. If the two coordinate systems are on different datums, you must create a geographic transformation object which specifies how to convert the datums. Consider using the predefined transformations with the PeFactory functions.
For example, you can using following code to create a geographic transformation object that converts between NAD27 and WGS84 in the contiguous United States.
PeGeogTransformations geotran=PeFactory.geogtran(PeGeogtranDefs.PE_GT_NAD_1927_TO_WGS_1984_4);
coordref
- the new coordinate system for result shapegeogtran
- a geographic (datum) transformation object. Can be null.
SeException
public void changePath(SDEPoint firstPoint, SDEPoint midPoint, SDEPoint lastPoint, SDEPoint[] pointList) throws SeException
firstPoint
- The first point in the path to change.midPoint
- The midpoint of the path to change. (optional)lastPoint
- The last point in the path to change.pointList
- The points of the new path.
SeException
public void deleteIsland(SDEPoint point) throws SeException
point
- The point identifying the island to delete from the area shape.
SeException
public void deletePart(int partNumber) throws SeException
partNumber
- The number of the part to delete.
SeException
public void deletePath(SDEPoint firstPoint, SDEPoint midPoint, SDEPoint lastPoint) throws SeException
firstPoint
- Start point coordinatesmidPoint
- Coordinates of any point along the pathlastPoint
- End point coordinates
SeException
public void deletePoint(SDEPoint point) throws SeException
point
- Coordinates of the point to remove
SeException
public void extendLine(SDEPoint endpoint, SDEPoint[] points) throws SeException
endpoint
- The point at which to extend the linear shape.points
- The list of points to add to the linear shape.
SeException
public SeShape filterCoordinates(double distance) throws SeException
SeException
public void insertPart(int partNum, SeShape srcShape) throws SeException
partNum
- The part number of the target shape at which to insert the parts of srcShape.srcShape
- The shape containing the parts to insert into the calling shape.
SeException
public void movePoint(SDEPoint fromPoint, SDEPoint toPoint) throws SeException
fromPoint
- The point within the shape to move.toPoint
- The point to move the fromPoint to.
SeException
public void replacePart(int partNum, SeShape srcShape) throws SeException
partNum
- The part number of the target shape to replace with the parts of srcShape.srcShape
- The shape containing the parts to replace the part in the calling shape with.
SeException
public void replacePathWithArc(SDEPoint firstPoint, SDEPoint midPoint, SDEPoint lastPoint, double radius, int arcSegs) throws SeException
firstPoint
- Starting point on the path to replace.midPoint
- The midpoint of the path to replace.lastPoint
- Ending point on the path to replace.radius
- The radius of the arc to replace the identified path with.arcSegs
- Number of segements in a full circle (16-400).
SeException
public SeShape asLine() throws SeException
SeException
public SeShape asPoint() throws SeException
SeException
public SeShape asPolygon() throws SeException
SeException
public SeShape asSimpleLine() throws SeException
SeException
public double calculateDistance(SeShape secShape, boolean insideTest) throws SeException
secShape
- The secondary shape to use in the calculation.insideTest
- if true, the inside test is used.
SeException
public SeObjectId getFeatureId() throws SeException
SeException
public int getType() throws SeException
SeException
public int getNumOfPoints() throws SeException
SeException
public int getMinZ() throws SeException
getMinZValue()
.
SeException
public long getMinZValue() throws SeException
SeException
public int getMaxZ() throws SeException
getMaxZValue()
.
SeException
public long getMaxZValue() throws SeException
SeException
public int getMinM() throws SeException
getMinMValue()
.
SeException
public long getMinMValue() throws SeException
SeException
public int getMaxM() throws SeException
getMaxMValue()
.
SeException
public long getMaxMValue() throws SeException
SeException
public SeCoordinateReference getCoordRef() throws SeException
SeException
public void setCoordRef(SeCoordinateReference cRef) throws SeException
SeException
public SeShapeAnno getAnno() throws SeException
SeException
public void setAnno(SeShapeAnno anno) throws SeException
SeException
public com.esri.sde.sdk.client.SeShapeCad getCad() throws SeException
SeException
public void setCad(com.esri.sde.sdk.client.SeShapeCad cad) throws SeException
SeException
public boolean hasAnno()
public boolean hasCad()
public SeShape generateBuffer(double distance, int maxPts) throws SeException
SeException
public SeShape generateConvexHull() throws SeException
SeException
public SeShape generateFromPart(int partNumber) throws SeException
partNumber
- The part number.
SeException
public SDEPoint generateLabelPoint() throws SeException
SeException
public void generateLine(int numPts, int numParts, int[] partOffsets, SDEPoint[] ptArray) throws SeException
SeException
public void generatePoint(int numPts, SDEPoint[] ptArray) throws SeException
SeException
public void generatePolygon(int numPts, int numParts, int[] partOffsets, SDEPoint[] ptArray) throws SeException
SeException
public void generateRectangle(SeExtent ext) throws SeException
SeException
public void generateEllipse(SDEPoint center, double semiMajorAxis, double semiMinorAxis, double angle, int numPts) throws SeException
SeException
public void generateSimpleLine(int numPts, int numParts, int[] partOffsets, SDEPoint[] ptArray) throws SeException
SeException
public void interpolateByMeasures(double delta) throws SeException
delta
- The maximum delta of measure values between any two points in the resulting shape.
SeException
public java.awt.geom.GeneralPath toGeneralPath() throws SeException
SeException
public java.awt.geom.GeneralPath toGeneralPath(int rotation) throws SeException
SeException
public double[][][] getAllCoords() throws SeException
SeException
public double[][][] getAllCoords(int turn) throws SeException
turn
- Can be TURN_DEFAULT, TURN_LEFT, or TURN_RIGHT
SeException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public SeShape[] findAlong(double measure) throws SeException
SeException
public SeShape[] findBetween(double fromMeasure, double toMeasure) throws SeException
SeException
public boolean isContaining(SeShape secondaryShape) throws SeException
SeException
public boolean isCrossing(SeShape secondaryShape) throws SeException
SeException
public boolean isDisjoint(SeShape secondaryShape) throws SeException
SeException
public boolean isEqual(SeShape secondaryShape) throws SeException
SeException
public boolean isLine() throws SeException
SeException
public boolean isMeasured() throws SeException
SeException
public boolean isMultiPart() throws SeException
SeException
public boolean isNil() throws SeException
SeException
public boolean isOverlapping(SeShape secondaryShape) throws SeException
SeException
public boolean isPoint() throws SeException
SeException
public boolean isPolygon() throws SeException
SeException
public boolean isSimpleLine() throws SeException
SeException
public boolean is3D() throws SeException
SeException
public boolean isTouching(SeShape secondaryShape) throws SeException
SeException
public boolean isWithin(SeShape secondaryShape) throws SeException
SeException
public void makeNil() throws SeException
SeException
public long findRelation(SeShape secondaryShape) throws SeException
RM_LINE_CROSS - Line intersection. The boundaries of shapes intersect. The point of intersection is not a contained vertex for at least one of the shapes.
RM_COMMON_PT - The primary and secondary shapes have at least one point in common.
RM_EMBEDDED_PT - A vertex is embedded in a line.
RM_CBOUND_SAME - A common boundary exists between the primary and secondary shapes. The direction of flow (point storage order) of the common boundary is the same in both shapes.
RM_CBOUND_DIFF - A common boundary exists between the primary and secondary shapes. The direction of flow (point storage order) of the common boundary is opposite in the shapes.
RM_PARALLEL_OVERLAPPING - Similar to the common boundary masks but one of the shapes has a common boundary with the interior of the other shape.
RM_IDENTICAL - The primary and secondary shapes are identical in terms of shape type and coordinate description.
RM_AREA_INTERSECT - An area intersection exists. At least one of the shapes is an area shape and the other shape is at least partially inside it. Adjacency is not an area intersect.
RM_INTERIOR_INTERSECT - Same as RM_AREA_INTERSECT but applicable to all entity types. The interiors of both shapes must intersect.
RM_BOUNDARY_INTERSECT - The endpoint of a linestring intersects the endpoint of another linestring or the boundary of an area feature.
RM_PRIM_LEP_INTERIOR - The endpoint of the primary feature intersects the interior of the secondary feature. Occurs when a linear feature`s endpoint (primary) intersects a point feature.
RM_SEC_LEP_INTERIOR - The primary feature intersects the endpoint of the secondary feature. Occurs when a point feature (primary) intersects a linear feature`s endpoint.
RM_PRIM_CONTAINED - The primary shape is wholly contained by the secondary shape. If the secondary shape is an area shape, the primary shape is wholly inside the secondary shape`s boundary. If both shapes are linear, the primary shape`s path is wholly included in the secondary shape`s path. If the primary shape is a point shape, the primary shape is one of the secondary shape`s vertices.
RM_SEC_CONTAINED - The secondary shape is wholly contained by the primary shape. If the primary shape is an area shape, the secondary shape is wholly inside the primary shape`s boundary. If both shapes are linear, the secondary shape`s path is wholly included in the primary shape`s path. If the secondary shape is a point shape, the secondary shape is one of the primary shape`s vertices.
Both shapes must have the same coordinate reference.
secondaryShape
- The shape to compare with this one.
SeException
public SeShape[] overlay(SeShape secondaryShape) throws SeException
secondaryShape
- The shape to overlay with the calling shape.
SeException
public SeShape[] intersect(SeShape secondaryShape) throws SeException
secondaryShape
- The shape to intersect with the calling shape.
SeException
public SeShape difference(SeShape secondaryShape) throws SeException
secondaryShape
- Shape object to take the difference of with calling shape.
SeException
public SeShape symmetricalDifference(SeShape secondaryShape) throws SeException
secondaryShape
- Shape object to take the symmetrical difference of with the calling shape.
SeException
public SeShape union(SeShape secondaryShape) throws SeException
secondaryShape
- The shape to union with the calling shape.
SeException
public SeShape clip(SeExtent env) throws SeException
env
- The envelope to intersect with the shape.
SeException
public java.lang.String asText(int maxStringLength) throws SeException
maxStringLength
-
SeException
public int generateFromText(java.lang.String textShape) throws SeException
textShape
- Shape in text format.
SeException
public int getTextSize() throws SeException
SeException
public java.util.ArrayList asWKB(int allocSize) throws SeException
allocSize
- Size of the binary shape.
SeException
public void generateFromWKB(byte[] wkbShape) throws SeException
wkbShape
- WKB representation.
SeException
public int getWKBSize() throws SeException
SeException
public java.util.ArrayList asBinary(int allocSize) throws SeException
allocSize
- Size of the pre-allocated binary shape.
SeException
public void generateFromBinary(byte[] binaryShape) throws SeException
SeException
public int getBinarySize() throws SeException
SeException
public SeGeometry toSeGeometry() throws SeException
SeException
public void fromSeGeometry(SeGeometry geom) throws SeException
geom
- The SeGeometry object to set this shape to.
SeException
public SeShape generateCircle(SDEPoint center, double radius, int numPts) throws SeException
SeException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |