Sha256: cce1cb5ec5ff6295cdedb1f34ef2e75c05618c6b8fdd5821bcb2fe8b1d7a01d8

Contents?: true

Size: 719 Bytes

Versions: 9

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module OGR
  module SpatialReferenceMixins
    module Morphers
      # Converts, in place, to ESRI WKT format.
      #
      # @return [OGR::SpatialReference, false] If successful, returns self.
      def morph_to_esri!
        ogr_err = FFI::OGR::SRSAPI.OSRMorphToESRI(@c_pointer)
        result = ogr_err.handle_result

        result ? self : result
      end

      # Converts, in place, from ESRI WKT format.
      #
      # @return [OGR::SpatialReference, false] If successful, returns self.
      def morph_from_esri!
        ogr_err = FFI::OGR::SRSAPI.OSRMorphFromESRI(@c_pointer)
        result = ogr_err.handle_result

        result ? self : result
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta15 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta14 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta13 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta12 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta11 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta10 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta9 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta8 lib/ogr/spatial_reference_mixins/morphers.rb