744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
|
# File 'ext/geos_c_impl/geometry.c', line 744
static VALUE
method_geometry_segmentize(VALUE self, VALUE max_segment_length)
{
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, GEOSDensify(self_geom, rb_num2dbl(max_segment_length)), Qnil);
}
return result;
}
|