Method: RGeo::Geos::CAPIGeometryMethods#srid
- Defined in:
- ext/geos_c_impl/geometry.c
#srid ⇒ Object
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'ext/geos_c_impl/geometry.c', line 189 static VALUE method_geometry_srid(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 = INT2NUM(GEOSGetSRID(self_geom)); } return result; } |