Module: OGR::SpatialReferenceMixins::Morphers

Included in:
OGR::SpatialReference
Defined in:
lib/ogr/spatial_reference_mixins/morphers.rb

Instance Method Summary collapse

Instance Method Details

#morph_from_esri!OGR::SpatialReference

Converts, in place, from ESRI WKT format.

Returns:

Raises:



22
23
24
25
26
27
28
# File 'lib/ogr/spatial_reference_mixins/morphers.rb', line 22

def morph_from_esri!
  OGR::ErrorHandling.handle_ogr_err("Unable to morph self from ESRI") do
    FFI::OGR::SRSAPI.OSRMorphFromESRI(@c_pointer)
  end

  self
end

#morph_to_esri!OGR::SpatialReference

Converts, in place, to ESRI WKT format.

Returns:

Raises:



10
11
12
13
14
15
16
# File 'lib/ogr/spatial_reference_mixins/morphers.rb', line 10

def morph_to_esri!
  OGR::ErrorHandling.handle_ogr_err("Unable to morph self to ESRI") do
    FFI::OGR::SRSAPI.OSRMorphToESRI(@c_pointer)
  end

  self
end