Method: RGeo::Geos::CAPIGeometryMethods#unary_union

Defined in:
ext/geos_c_impl/geometry.c

#unary_unionObject



903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
# File 'ext/geos_c_impl/geometry.c', line 903

static VALUE
method_geometry_unary_union(VALUE self)
{
#ifdef RGEO_GEOS_SUPPORTS_UNARYUNION
  RGeo_GeometryData* self_data;
  const GEOSGeometry* self_geom;

  self_data = RGEO_GEOMETRY_DATA_PTR(self);
  self_geom = self_data->geom;
  if (self_geom) {
    return rgeo_wrap_geos_geometry(
      self_data->factory, GEOSUnaryUnion(self_geom), Qnil);
  }
#endif

  return Qnil;
}