Surface abstract class
A Surface is a 2-dimensional geometric object.
abstract class Surface extends Geometry {
@override get dimension => 2;
/**
* The mathematical centroid for this [Surface] as a [Point]. The result
* is not guaranteed to be on this [Surface].
*
*/
@specification(name:"centroid()")
Point get centroid;
/**
* A [Point] guaranteed to be on this [Surface].
*/
@specification(name:"pointOnSurface()")
Point get pointOnSurface;
/**
* The area of this [Surface], as measured in the spatial reference system
* of this [Surface].
*/
@specification(name:"area()")
double get area;
}
Extends
Geometry > Surface
Subclasses
Properties
final String asText #
A WKT representation of the geometry
@specification(name:"asText()")
String get asText {
var buffer = new StringBuffer();
var writer = new _WKTWriter(buffer);
_writeTaggedWKT(writer, withZ: is3D, withM: isMeasured);
return buffer.toString();
}
final Geometry boundary #
Returns the closure of the combinatorial boundary of this geometric object
@specification(name:"boundary()") Geometry get boundary;
final dimension #
The inherent dimension of this geometric object, which must be less than or equal to the coordinate dimension. In non-homogeneous collections, this will return the largest topological dimension of the contained objects.
@override get dimension => 2;
final String geometryType #
Returns the name of the instantiable subtype of Geometry of which this geometric object is an instantiable member. The name of the subtype of Geometry is returned as a string.
@specification(name:"geometryType()") String get geometryType;
final bool is3D #
Returns true if this geometric object has z coordinate values.
@specification(name:"is3D()") bool get is3D;
final bool isEmpty #
Returns 1 true if this geometric object is the empty Geometry.
@specification(name:"isEmpty()") bool get isEmpty;
final bool isMeasured #
Returns true if this geometric object has m coordinate values.
@specification(name:"isMeasured()") bool get isMeasured;
final bool isSimple #
Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency.
@specification(name:"isSimple()") bool get isSimple;