Method: RGeo::Geos::CAPIGeometryMethods#point_on_surface
- Defined in:
- ext/geos_c_impl/geometry.c
#point_on_surface ⇒ Object
1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 |
# File 'ext/geos_c_impl/geometry.c', line 1155
static VALUE
method_geometry_point_on_surface(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, GEOSPointOnSurface(self_geom), Qnil);
}
return result;
}
|