DJI Mobile SDK Documentation

      class SubFlyZoneInformation

      @EXClassNullAway
      class SubFlyZoneInformation
      Package:dji.common.flightcontroller.flyzone
      Description:

      This class contains information about a Sub fly zone.

      Class Members:
      Information
      method
      method getAreaID
      int getAreaID()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The fly zone's identifier.

      Return:
      intAn int value of the sub area's ID.
      Geometry and Location
      method
      method getShape
      SubFlyZoneShape getShape()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The shape of the sub-fly-zone.

      Return:
      SubFlyZoneShapeAn enum value of SubFlyZoneShape.
      method
      method getCenter
      LocationCoordinate2D getCenter()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The location of the fly zone's center. Only used when getShape is CYLINDER.

      Return:
      LocationCoordinate2DA LocationCoordinate2D object.
      method
      method getRadius
      double getRadius()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The radius of the fly zone in meters. Only used when getShape is CYLINDER.

      Return:
      doubleA double value of fly zone radius.
      method getVertices
      List<LocationCoordinate2D> getVertices()
      Package:dji.common.flightcontroller.flyzone
      Description:

      The vertices (locations) that make up the sub fly zone polygon shape. Only used when getShape is POLYGON.

      Return:
      List<LocationCoordinate2D>A List of CLLocationCoordinate2D object.
      Maximum Flight Height
      method
      method getMaxFlightHeight
      int getMaxFlightHeight()
      Package:dji.common.flightcontroller.flyzone
      Description:

      Maximum flight height in meters allowed in the sub fly zone. A height of 0m will restrict flight completely within the zone.

      Return:
      intAn int value of maximum flight height.
      enum SubFlyZoneShape
      @EXClassNullAway
      enum SubFlyZoneShape
      Package:dji.common.flightcontroller.flyzone
      Description:

      This type of the geospatial information for the fly zone.

      Enum Members:
      CYLINDERCircle shape.
      POLYGONPolygon shape.
      UNKNOWNUnknown.
      Class Members: