| 348 | |
| 349 | |
| 350 | bool SpatialReference::equals(const SpatialReference& input) const |
| 351 | { |
| 352 | if (getWKT() == input.getWKT()) |
| 353 | return true; |
| 354 | |
| 355 | OGRScopedSpatialReference current = ogrCreateSrs(getWKT(), m_epoch); |
| 356 | OGRScopedSpatialReference other = ogrCreateSrs(input.getWKT(), m_epoch); |
| 357 | |
| 358 | if (!current || !other) |
| 359 | return false; |
| 360 | |
| 361 | int output = current->IsSame(other.get()); |
| 362 | |
| 363 | return (output == 1); |
| 364 | } |
| 365 | |
| 366 | |
| 367 | bool SpatialReference::operator==(const SpatialReference& input) const |