Class MBFeatureData

All Implemented Interfaces:
Expression, Function

public class MBFeatureData extends MBExpression
  • Constructor Details

    • MBFeatureData

      public MBFeatureData(JSONArray json)
  • Method Details

    • featureGeometryType

      public Expression featureGeometryType()
      Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: string
      Returns:
      geometry type expression
    • featureId

      public Expression featureId()
      Gets the feature's id, if it has one. Example: ["id"]: value
      Returns:
      feature id expression
    • featureProperties

      public 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

      public Expression getExpression() throws MBFormatException
      Description copied from class: MBExpression
      Determines which expression to use.
      Specified by:
      getExpression in class MBExpression
      Throws:
      MBFormatException