Stay organized with collections
Save and categorize content based on your preferences.
Returns the geometry of a given feature in a given projection.
Usage
Returns
Feature.geometry(maxError, proj, geodesics)
Geometry
Argument
Type
Details
this: feature
Element
The feature from which the geometry is taken.
maxError
ErrorMargin, default: null
The maximum amount of error tolerated when performing any necessary reprojection.
proj
Projection, default: null
If specified, the geometry will be in this projection. If unspecified, the geometry will be in its default projection.
geodesics
Boolean, default: null
If true, the geometry will have geodesic edges. If false, it will have edges as straight lines in the specified projection. If null, the edge interpretation will be the same as the original geometry. This argument is ignored if proj is not specified.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["Returns the geometry of a specified feature, optionally reprojecting it."],["Allows control over reprojection accuracy using the `maxError` parameter."],["Accepts an optional projection (`proj`) to define the geometry's output projection."],["Enables specifying geodesic edges or straight lines in the projected geometry using the `geodesics` parameter."]]],[]]