Sha256: 948cfabcaeb18929a9710479848ac1f29ab5bb7a9d986d88ffc079b77f73f072

Contents?: true

Size: 806 Bytes

Versions: 2

Compression:

Stored size: 806 Bytes

Contents

require 'json'

module OGR
  module SpatialReferenceExtensions

    # @return [Hash]
    def as_json
      {
        angular_units: angular_units,
        epsg_treats_as_lat_long: epsg_treats_as_lat_long?,
        epsg_treats_as_northing_easting: epsg_treats_as_northing_easting?,
        is_compound: compound?,
        is_geocentric: geocentric?,
        is_geographic: geographic?,
        is_local: local?,
        is_projected: projected?,
        is_vertical: vertical?,
        linear_units: linear_units,
        prime_meridian: prime_meridian,
        semi_major: semi_major,
        semi_minor: semi_minor,
        spheroid_inverse_flattening: spheroid_inverse_flattening,
        utm_zone: utm_zone
      }
    end

    # @return [String]
    def to_json
      as_json.to_json
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta3 lib/ogr/spatial_reference_extensions.rb
ffi-gdal-1.0.0.beta1 lib/ogr/spatial_reference_extensions.rb