Rectangle2D

open class Rectangle2D : Form

Defines an SVS 2D-Rectangle.

Properties

Link copied to clipboard
val ABSTRACT: Byte = 0
Defines a SVS Form with no geometry
Link copied to clipboard
open var address: Long
Link copied to clipboard
val ELLIPSE: Byte = 3
Defines a (possibly multi) ellipse
Link copied to clipboard
val POINT: Byte = 8
Defines a (possibly multi) point
Link copied to clipboard
val POLYGON: Byte = 1
Defines a (possibly multi) polygon
Link copied to clipboard
val POLYLINE: Byte = 6
Defines a (possibly multi) polyline
Link copied to clipboard
val RECTANGLE: Byte = 2
Defines a (possibly multi) rectangle

Functions

Link copied to clipboard
open fun contains(point: GeoPoint): Boolean
Check whether the given GeoPoint is inside this 2D-Rectangle.
open fun contains(x: Int, y: Int): Boolean
Check whether the given (x,y) coordinates define a point inside this 2D-Rectangle.
Link copied to clipboard
open fun copy(copyAttributes: Boolean): Form
Clones this SVS rectangle with or without its attribute(s).
Link copied to clipboard
open fun create(objID: ObjectId): Array<Form>
open fun create(objID: ObjectId, getAttributes: Boolean): Array<Form>
Creates the SVS Forms related to the specified Object Identifier.
Link copied to clipboard
open fun dispose()
Call this method if you want to dispose immediately all underlying native resources.
Link copied to clipboard
open fun geoType(): Form.GeoType
Returns the form's geometry type.
Link copied to clipboard
Returns all attributes attached to this form (Assuming your SVS dataset is UTF-8 encoded).
open fun getAttributes(fromUnicode: Boolean): Array<Attribute>
Returns all attributes attached to this form.
Link copied to clipboard
Returns the 2D form's bounding rectangle.
Link copied to clipboard
open fun getGeoType(): Byte
Returns the form's geometry type.
Link copied to clipboard
open fun getNbAttributes(): Int
Returns the number of form's attributes.
Link copied to clipboard
open fun getNbForms(): Int
Returns the number of elementary geometric elements of form's geometry.
Link copied to clipboard
open fun getRect(): GeoRect
Returns the 2D-coordinates of this Rectangle2D.
Link copied to clipboard
open fun intersectsWith(rect: GeoRect): Boolean
Checks whether this 2D-rectangle intersects with the specified GeoRect.
Link copied to clipboard
open fun is3D(): Boolean
Returns true if this form is a 3D form.
Link copied to clipboard
open fun isOwned(): Boolean
Check whether this SVS Form is already handled by a SVS.
Link copied to clipboard
open fun setAttribute(index: Int, att: Attribute, fromUnicode: Boolean)
Set/update the value of an existing attribute.