Package org.geotools.mbstyle.expression
Class MBFeatureData
- Object
- 
- ExpressionAbstract
- 
- FunctionImpl
- 
- MBExpression
- 
- MBFeatureData
 
 
 
 
- 
- All Implemented Interfaces:
- Expression,- Function
 
 public class MBFeatureData extends MBExpression 
- 
- 
Field Summary- 
Fields inherited from class MBExpressioncolors, decisions, featureData, ff, heatMap, json, lookUp, math, name, parse, ramps, string, transformer, types, variableBindings, zoom
 - 
Fields inherited from class FunctionImplfunctionName
 - 
Fields inherited from interface ExpressionNIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description MBFeatureData(JSONArray json)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionfeatureGeometryType()Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: stringExpressionfeatureId()Gets the feature's id, if it has one.ExpressionfeatureProperties()Gets the feature properties object.ExpressiongetExpression()Determines which expression to use.- 
Methods inherited from class MBExpressioncanCreate, create, getName, throwInsufficientArgumentCount, throwUnexpectedArgumentCount, transformExpression, transformLiteral
 - 
Methods inherited from class FunctionImplaccept, dispatchArguments, equals, evaluate, functionName, getFallbackValue, getFunctionName, getParameters, getParameterValue, getParameterValue, hashCode, setFallbackValue, setName, setParameters, toString
 - 
Methods inherited from class ExpressionAbstractevaluate
 - 
Methods inherited from interface Expressionevaluate
 
- 
 
- 
- 
- 
Method Detail- 
featureGeometryTypepublic Expression featureGeometryType() Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: string- Returns:
- geometry type expression
 
 - 
featureIdpublic Expression featureId() Gets the feature's id, if it has one. Example: ["id"]: value- Returns:
- feature id expression
 
 - 
featurePropertiespublic 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
 
 - 
getExpressionpublic Expression getExpression() throws MBFormatException Description copied from class:MBExpressionDetermines which expression to use.- Specified by:
- getExpressionin class- MBExpression
- Throws:
- MBFormatException
 
 
- 
 
-