Abstract base class; normally only used for creating subclasses and not instantiated in apps. Base class for vector geometries.
Classes
Namespaces
Methods
-
<static> createFromType()
-
Create a geometry given a type and coordinates
-
<static> GPAltiCode(geom, options)
-
French Geoportail alti coding
Parameters:
Name Type Description geom
ol.geom.Geometry options
Object Properties
Name Type Argument Default Description projection
ol/proj~ProjectionLike <optional>
'EPSG:3857' geometry projection, default 'EPSG:3857'
sampling
number <optional>
0 number of resulting point, max 5000, if none keep input points or use samplingDist
samplingDist
number <optional>
0 distance for sampling the line or use sampling if lesser
minZ
number <optional>
-99 min altitude (for undefined measures)
success
string a function that takes the resulting XYZ geometry
error
string -
<static> scribbleFill(geom, options)
-
Calculate a MultiPolyline to fill a geomatry (Polygon or MultiPolygon) with a scribble effect that appears hand-made
Parameters:
Name Type Description geom
ol.geom.Geometry the geometry to scribble
options
Object Properties
Name Type Description interval
Number interval beetween lines
angle
Number hatch angle in radian, default PI/2
Returns:
the resulting MultiLineString geometry or initial geometry
- Type
- ol.geom.Geometry