403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
|
# File 'ext/geos_c_impl/geometry.c', line 403
static VALUE
method_geometry_disjoint(VALUE self, VALUE rhs)
{
VALUE result;
RGeo_GeometryData* self_data;
const GEOSGeometry* self_geom;
const GEOSGeometry* rhs_geom;
int state = 0;
const GEOSPreparedGeometry* prep;
result = Qnil;
self_data = RGEO_GEOMETRY_DATA_PTR(self);
self_geom = self_data->geom;
if (self_geom) {
rhs_geom =
rgeo_convert_to_geos_geometry(self_data->factory, rhs, Qnil, &state);
if (state) {
rb_jump_tag(state);
}
prep = rgeo_request_prepared_geometry(self_data);
if (prep)
result = GEOSPreparedDisjoint(prep, rhs_geom) ? Qtrue : Qfalse;
else
result = GEOSDisjoint(self_geom, rhs_geom) ? Qtrue : Qfalse;
}
return result;
}
|