_getROIFromFeature (feature, pyramid) {
    if (feature !== undefined && feature !== null) {
      let scoord3d
      try {
        scoord3d = geometry2Scoord3d(feature, pyramid)
      } catch (error) {
        const uid = feature.getId()
        this.removeROI(uid)
        throw error
      }

      const properties = feature.getProperties()
      // Remove geometry from properties mapping
      const geometryName = feature.getGeometryName()
      delete properties[geometryName]
      const uid = feature.getId()
      const roi = new ROI({ scoord3d, properties, uid })
      return roi
    }
  }
/**
   * Extracts and transforms the region of interest (ROI) from an Openlayers
   * Feature.
   *
   * @param {object} feature - Openlayers Feature
   * @param {Object[]} pyramid - Metadata for resolution levels of image pyramid
   * @param {Object} context - Context
   * @returns {ROI} Region of interest
   * @private
   */
Extracts and transforms the region of interest (ROI) from an Openlayers
Feature.


Extracts and transforms the region of interest ( ROI ) from an Openlayers Feature .
_getROIFromFeature (feature, pyramid) {
    if (feature !== undefined && feature !== null) {
      let scoord3d
      try {
        scoord3d = geometry2Scoord3d(feature, pyramid)
      } catch (error) {
        const uid = feature.getId()
        this.removeROI(uid)
        throw error
      }
      const properties = feature.getProperties()
      const geometryName = feature.getGeometryName()
      delete properties[geometryName]
      const uid = feature.getId()
      const roi = new ROI({ scoord3d, properties, uid })
      return roi
    }
  }
_getROIFromFeature ( feature , pyramid ) { if ( feature !== undefined && feature !== null ) { let scoord3d try { scoord3d = geometry2Scoord3d ( feature , pyramid ) } catch ( error ) { const uid = feature . getId ( ) this . removeROI ( uid ) throw error } const properties = feature . getProperties ( ) const geometryName = feature . getGeometryName ( ) delete properties [ geometryName ] const uid = feature . getId ( ) const roi = new ROI ( { scoord3d , properties , uid } ) return roi } }
Extracts and transforms the region of interest (ROI) from an Openlayers
 Feature.
Extracts and transforms the region of interest ( ROI ) from an Openlayers Feature .
// Remove geometry from properties mapping