| 233 | |
| 234 | |
| 235 | SpatialReference Geometry::getSpatialReference() const |
| 236 | { |
| 237 | SpatialReference srs; |
| 238 | |
| 239 | if (srsValid()) |
| 240 | { |
| 241 | char *buf; |
| 242 | const char *options[] = { "FORMAT=WKT2", nullptr }; |
| 243 | m_geom->getSpatialReference()->exportToWkt(&buf, options); |
| 244 | srs.set(buf); |
| 245 | CPLFree(buf); |
| 246 | } |
| 247 | return srs; |
| 248 | } |
| 249 | |
| 250 | |
| 251 | BOX3D Geometry::bounds() const |