point abstract method
Writes a point geometry with position
.
Use an optional name
to specify a name for a geometry (when applicable).
An example to write a point geometry with 2D coordinates:
// a position from a coordinate value list (x, y)
content.point([10.0, 20.0].xy);
An example to write a point geometry with 3D coordinates:
// a position from a coordinate value list (x, y, z)
content.point([10.0, 20.0, 30.0].xyz);
An example to write a point geometry with 2D coordinates with measurement:
// using a coordinate value list (x, y, m), need to specify type
content.point(Position.view([10.0, 20.0, 40.0], type: Coords.xym));
An example to write a point geometry with 3D coordinates with measurement:
// using a coordinate value list (x, y, z, m)
content.point(Position.create(x: 10.0, y: 20.0, z: 30.0, m: 40.0)]);
Implementation
void point(
Position position, {
String? name,
});