Creates a elliptical arc defined by a center point, semi-major axis, semi-minor axis, a start angle and a sweep angle.
the reference in which the elliptical arc is defined.
the center point.
the semi-major axis of the ellipse defining the arc, in meters.
the semi-minor axis of the ellipse defining the arc, in meters.
the rotation azimuth of the ellipse defining the arc, in degrees, positive clockwise from 12 o'clock (north).
the start azimuth, in degrees, positive clockwise from 12 o'clock (north).
the angle over which the arc extends, in degrees, positive clockwise.
the arc
Creates a circular arc band defined by a center point, a minimum radius, a maximum radius, a start angle and a sweep angle.
the reference in which the shape is defined.
center the center point.
the minimum radius of the circle defining the arc band, in meters.
the maximum radius of the circle defining the arc band, in meters.
the start azimuth, in degrees, positive clockwise from 12 o'clock (north).
the angle over which the arc band extends, in degrees, positive clockwise.
the arc band
Creates a Bounds with the specified coordinates.
the reference in which the coordinates are defined
the coordinate of the bounds, expressed as an array. (e.g. "[x,width,y,height]" or "[x,width,y,height,z,depth]")
The bounds with the specified coordinates
Creates a circle defined by three points on its circumference
the reference in which the circle is defined
A point on the circumference
A point on the circumference
A point on the circumference
The new circle
Creates a circle defined by a center-point and radius.
the reference in which the circle is defined
The center of the circle
The radius of the circle, in meters
The circle with the specified center and radius
Creates a circular arc defined by a start point, an end point and an intermediate point on the arc.
the reference in which the circular arc is defined
The start point of the arc
An intermediate point on the arc
The end point of the arc
The circular-arc-by-3-points with the specified 3 points
Creates a circular arc defined by two points and bulge factor
the reference in which the circular arc is defined
the start point of the circular arc
the end point of the circular arc
the bulge of the arc (a value of 1 defines a half-circle, less makes the arc flatter)
The circular-arc-by-bulge with the specified points and bulge
Creates a circular arc defined by a center point, radius, a start angle and a sweep angle.
the reference in which the circular arc is defined
the center point.
the radius of the circle defining the arc.
the start azimuth (in degrees, clockwise from 12 o'clock (north)).
the sweep angle (in degrees, clockwise from the start angle).
the circular-arc-by-center-point
Creates a complex polygon with the specified polygons.
the reference in which the ComplexPolygon is defined
an array of Polygon instances. The first polygon in this array is the outer ring. All other polygons in this array must be contained inside this first polygon.
The complex polygon with the specified polygons
Creates an Ellipse with the specified parameters
the reference in which the circle is defined
The center of the circle
The length of the semi-major axis, in meters
The length of the semi-minor axis, in meters
The rotation azimuth of the semi-major axis, in degrees from 12 o'clock (north), positive clockwise
The ellipse with the specified parameters
Creates a extruded shape for a base shape.
Currently ExtrudedShape supports 2D lines and areas as base shape. See ExtrudedShape.isSupportedBaseShape to check if a base shape is supported.require([
"luciad.shape.ShapeFactory",
"luciad.reference.ReferenceProvider"
], function(ShapeFactory,
ReferenceProvider){
...
var ref = ReferenceProvider.getReference("EPSG:4326"),
var myExtrudedShape = createExtrudedShape(ref, polyline, 1200, 1500);
});
the reference in which both the extruded shape and base shape are defined. They must be the same.
The base shape
The lower/bottom boundary of the 3D volume
The upper/top boundary of the 3D volume
The new extruded shape
Creates a geo-buffer around a base shape.
Currently GeoBuffer supports Polyline, Polygon and ComplexPolygon as base shape. See GeoBuffer.isSupportedBaseShape to check if a base shape is supported.the reference in which the geobuffer and base shape are defined
The base shape
The width, in model reference distance units
The new geo buffer
Creates an axis-aligned OrientedBox with given location and dimensions.
the reference in which the oriented box is defined. Due to the cartesian nature of this shape, it is not available for geodetic references
the location of the corner of the box with minimal x, y and z values
the size of the oriented box
Creates an OrientedBox resulting from a base box with given location and dimensions, transformed by the given transformation.
const center = createPoint(getReference("CRS:84"), [4, 51, 0]);
const width = 10;
const depth = 12;
const height = 15;
const transformation = createTransformationFromGeoLocation(center);
const centeredBox = createOrientedBox(transformation, {x: -width / 2, y: -depth / 2, z: -height / 2}, {x: width, y: depth, z: height});
the transformation applied to the base box to get the resulting box
the location of the corner of the base box with minimal x, y and z values
the size of the base box
Creates a point with the specified coordinates
the reference in which the point is defined
the coordinate of the point, expressed as an array. (e.g. "[52,5]")
the point
Creates a polygon with the specified points (Point).
the reference in which the polygon is defined
an array of Point instances
The polygon with the specified points
Creates a polygon with the specified point coordinates.
The x, y, z elements of point coordinates must be expressed in the given reference
.
the reference in which the polygon and point coordinates are defined
an array of PointCoordinates
The polygon with the specified point coordinates
const reference = getReference("EPSG:4979");
const polygon = createPolygon(reference, [[1,1,0],[3,1,0],[3,1,1000],[1,1,1000]);
Creates a polyline with the specified points (Point).
the reference in which the polyline is defined
an array of Point instances
The polyline with the specified points
Creates a polyline with the specified point coordinates.
The x, y, z elements of point coordinates must be expressed in the given reference
.
the reference in which the polyline and point coordinates are defined
an array of PointCoordinates
The polyline with the specified point coordinates
const reference = getReference("CRS:84");
const polyline = createPolyline(reference, [[0,1],[10,1],[5,5]);
Creates a circular sector defined by a center point, a radius, a start angle and a sweep angle.
the reference in which the shape is defined.
the center point.
the radius of the circle defining the sector, in meters.
the start azimuth, in degrees, positive clockwise from 12 o'clock (north).
the angle over which the sector extends, in degrees, positive clockwise.
the sector
Creates a shape of the given type and reference. The coordinate type of the returned shape will match that of the specified reference.
The shape type of the returned shape
The reference of the returned shape
Creates a shape list containing the specified shapes
the reference in which all the shapes are defined
Array of shapes. All shapes must have the same reference, which should be
equal to the first parameter (reference
)
Shape list containing the specified shapes
The ShapeFactory allows you to create new shapes.
import {createArc, createPoint} from "@luciad/ria/shape/ShapeFactory.js"; import {getReference} from "@luciad/ria/reference/ReferenceProvider.js"; const ref = getReference("EPSG:4326"); const myPoint = createPoint(ref, [52, 5]); const myArc = createArc(ref, createPoint(ref, [52, 5]), 20000, 10000, 0, 90, 180);