module OGR::SpatialReferenceMixins::TypeChecks
Public Instance Methods
compound?()
click to toggle source
@return [Boolean] True if the root node is a COMPD_CS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 22 def compound? FFI::OGR::SRSAPI.OSRIsCompound(@c_pointer) end
geocentric?()
click to toggle source
@return [Boolean] True if the root node is a GEOCCS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 27 def geocentric? FFI::OGR::SRSAPI.OSRIsGeocentric(@c_pointer) end
geog_cs_is_same?(other_spatial_ref)
click to toggle source
@param other_spatial_ref [OGR::SpatialReference, FFI::Pointer] @return [Boolean] True if the GEOGCS nodes of each SpatialReference
match.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 48 def geog_cs_is_same?(other_spatial_ref) spatial_ref_ptr = GDAL._pointer(OGR::SpatialReference, other_spatial_ref) FFI::OGR::SRSAPI.OSRIsSameGeogCS(@c_pointer, spatial_ref_ptr) end
geographic?()
click to toggle source
@return [Boolean] True if the root node is a GEOGCS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 7 def geographic? FFI::OGR::SRSAPI.OSRIsGeographic(@c_pointer) end
local?()
click to toggle source
@return [Boolean] True if the root node is a LOCAL_CS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 12 def local? FFI::OGR::SRSAPI.OSRIsLocal(@c_pointer) end
projected?()
click to toggle source
@return [Boolean] True if it contains a PROJCS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 17 def projected? FFI::OGR::SRSAPI.OSRIsProjected(@c_pointer) end
same?(other_spatial_ref)
click to toggle source
@param other_spatial_ref [OGR::SpatialReference, FFI::Pointer] @return [Boolean] True if both SpatialReferences describe the same
system.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 39 def same?(other_spatial_ref) spatial_ref_ptr = GDAL._pointer(OGR::SpatialReference, other_spatial_ref) FFI::OGR::SRSAPI.OSRIsSame(@c_pointer, spatial_ref_ptr) end
vert_cs_is_same?(other_spatial_ref)
click to toggle source
@param other_spatial_ref [OGR::SpatialReference, FFI::Pointer] @return [Boolean] True if the VERT_CS nodes of each SpatialReference
match.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 57 def vert_cs_is_same?(other_spatial_ref) spatial_ref_ptr = GDAL._pointer(OGR::SpatialReference, other_spatial_ref) FFI::OGR::SRSAPI.OSRIsSameVertCS(@c_pointer, spatial_ref_ptr) end
vertical?()
click to toggle source
@return [Boolean] True if it contains a VERT_CS node.
# File lib/ogr/spatial_reference_mixins/type_checks.rb, line 32 def vertical? FFI::OGR::SRSAPI.OSRIsVertical(@c_pointer) end