Options
All
  • Public
  • Public/Protected
  • All
Menu

Detects shapes of GeometryJSON objects by evaluating their geometric contents

Hierarchy

  • ShapeDetector

Index

Constructors

constructor

Properties

Private geoFormat

geoFormat: GeoJSON

Methods

isBoundingBoxFeature

  • isBoundingBoxFeature(feature: Feature): boolean
  • Checks if feature matches shape

    Parameters

    • feature: Feature

      Open Layers feature

    Returns boolean

    true if geometry is a bounding box

isLineFeature

  • isLineFeature(feature: Feature): boolean
  • Checks if feature matches shape

    Parameters

    • feature: Feature

      Open Layers feature

    Returns boolean

    true if geometry is a line

isPointFeature

  • isPointFeature(feature: Feature): boolean
  • Checks if feature matches shape

    Parameters

    • feature: Feature

      Open Layers feature

    Returns boolean

    true if geometry is a point

isPointRadiusFeature

  • isPointRadiusFeature(feature: Feature): boolean
  • Checks if feature matches shape

    Parameters

    • feature: Feature

      Open Layers feature

    Returns boolean

    true if geometry is a point radius

isPolygonFeature

  • isPolygonFeature(feature: Feature): boolean
  • Checks if feature matches shape

    Parameters

    • feature: Feature

      Open Layers feature

    Returns boolean

    true if geometry is a polygon

shapeFromFeature

  • shapeFromFeature(feature: Feature): Shape

shapeFromGeoJSON

Generated using TypeDoc