lib/rgeo/geos/ffi_feature_methods.rb in rgeo-3.0.0 vs lib/rgeo/geos/ffi_feature_methods.rb in rgeo-3.0.1
- old
+ new
@@ -166,54 +166,53 @@
end
alias == equals?
def disjoint?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_2
+ prep = request_prepared if Utils.ffi_supports_prepared_level2
prep ? prep.disjoint?(fg) : @fg_geom.disjoint?(fg)
end
def intersects?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_1
+ prep = request_prepared if Utils.ffi_supports_prepared_level1
prep ? prep.intersects?(fg) : @fg_geom.intersects?(fg)
end
def touches?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_2
+ prep = request_prepared if Utils.ffi_supports_prepared_level2
prep ? prep.touches?(fg) : @fg_geom.touches?(fg)
end
def crosses?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_2
+ prep = request_prepared if Utils.ffi_supports_prepared_level2
prep ? prep.crosses?(fg) : @fg_geom.crosses?(fg)
end
def within?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_2
+ prep = request_prepared if Utils.ffi_supports_prepared_level2
prep ? prep.within?(fg) : @fg_geom.within?(fg)
end
def contains?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_1
+ prep = request_prepared if Utils.ffi_supports_prepared_level1
prep ? prep.contains?(fg) : @fg_geom.contains?(fg)
end
def overlaps?(rhs)
fg = factory.convert_to_fg_geometry(rhs)
- prep = request_prepared if Utils.ffi_supports_prepared_level_2
+ prep = request_prepared if Utils.ffi_supports_prepared_level2
prep ? prep.overlaps?(fg) : @fg_geom.overlaps?(fg)
end
def relate?(rhs, pattern)
fg = factory.convert_to_fg_geometry(rhs)
@fg_geom.relate_pattern(fg, pattern)
end
- alias relate relate? # DEPRECATED
def distance(rhs)
fg = factory.convert_to_fg_geometry(rhs)
@fg_geom.distance(fg)
end