Package org.geotools.mbstyle.expression
Class MBFeatureData
Object
ExpressionAbstract
FunctionImpl
MBExpression
MBFeatureData
- All Implemented Interfaces:
Expression,Function
-
Field Summary
Fields inherited from class MBExpression
colors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoomFields inherited from class FunctionImpl
functionNameFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: stringGets the feature's id, if it has one.Gets the feature properties object.Determines which expression to use.Methods inherited from class MBExpression
canCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteralMethods inherited from class FunctionImpl
accept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toStringMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
evaluate
-
Constructor Details
-
MBFeatureData
public MBFeatureData(JSONArray json)
-
-
Method Details
-
featureGeometryType
Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: string- Returns:
- geometry type expression
-
featureId
Gets the feature's id, if it has one. Example: ["id"]: value- Returns:
- feature id expression
-
featureProperties
Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly. Example: ["properties"]: object- Returns:
- expression of feature attributes
-
getExpression
Description copied from class:MBExpressionDetermines which expression to use.- Specified by:
getExpressionin classMBExpression- Throws:
MBFormatException
-