Sha256: 28a7803d49a5da0d62ca1a47f908032e8ec204f76adc784707430213e342a8a2

Contents?: true

Size: 688 Bytes

Versions: 4

Compression:

Stored size: 688 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta6 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta5 lib/ogr/spatial_reference_mixins/morphers.rb
ffi-gdal-1.0.0.beta4 lib/ogr/spatial_reference_mixins/morphers.rb