794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
|
# File 'ext/geos_c_impl/geometry.c', line 794
static VALUE
method_geometry_simplify(VALUE self, VALUE tolerance)
{
VALUE result;
RGeo_GeometryData* self_data;
const GEOSGeometry* self_geom;
VALUE factory;
result = Qnil;
self_data = RGEO_GEOMETRY_DATA_PTR(self);
self_geom = self_data->geom;
if (self_geom) {
factory = self_data->factory;
result = rgeo_wrap_geos_geometry(
factory, GEOSSimplify(self_geom, rb_num2dbl(tolerance)), Qnil);
}
return result;
}
|