Method: RGeo::Geos::CAPIGeometryMethods#convex_hull

Defined in:
ext/geos_c_impl/geometry.c

#convex_hullObject



834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
# File 'ext/geos_c_impl/geometry.c', line 834

static VALUE
method_geometry_convex_hull(VALUE self)
{
  VALUE result;
  RGeo_GeometryData* self_data;
  const GEOSGeometry* self_geom;

  result = Qnil;
  self_data = RGEO_GEOMETRY_DATA_PTR(self);
  self_geom = self_data->geom;
  if (self_geom) {
    result = rgeo_wrap_geos_geometry(
      self_data->factory, GEOSConvexHull(self_geom), Qnil);
  }
  return result;
}