Dart Documentationsimple_featuresSurface

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

Polygon

Properties

final double area #

The area of this Surface, as measured in the spatial reference system of this Surface.

@specification(name:"area()")
double get area;

final String asText #

inherited from Geometry

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 #

inherited from Geometry

Returns the closure of the combinatorial boundary of this geometric object

@specification(name:"boundary()")
Geometry get boundary;

final Point centroid #

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;

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.

docs inherited from Geometry
@override get dimension => 2;

final String geometryType #

inherited from Geometry

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 #

inherited from Geometry

Returns true if this geometric object has z coordinate values.

@specification(name:"is3D()")
bool get is3D;

final bool isEmpty #

inherited from Geometry

Returns 1 true if this geometric object is the empty Geometry.

@specification(name:"isEmpty()")
bool get isEmpty;

final bool isMeasured #

inherited from Geometry

Returns true if this geometric object has m coordinate values.

@specification(name:"isMeasured()")
bool get isMeasured;

final bool isSimple #

inherited from Geometry

Returns true if this geometric object has no anomalous geometric points, such as self intersection or self tangency.

@specification(name:"isSimple()")
bool get isSimple;

final Point pointOnSurface #

A Point guaranteed to be on this Surface.

@specification(name:"pointOnSurface()")
Point get pointOnSurface;

int get SRID #

inherited from Geometry

Returns the Spatial Reference System ID for this geometric object.

@specification(name:"srid()")
int get SRID => _srid;

dynamic set SRID(int value) #

inherited from Geometry

the Spatial Reference System ID for this geometric object.

set SRID(int value) => _srid = value;