Skip to content

Commit

Permalink
SpatialReference::set(): store coordinate epoch from OGRSpatialRefere…
Browse files Browse the repository at this point in the history
…nce built from SetFromUserInput()

This is useful to get the epoch for a SpatialReference built from a
string like 'urn:ogc:def:coordinateMetadata:AUTHORTIY::CODE code' (since
OSGeo/gdal#8340 and OSGeo/PROJ#3884), which
resolves to a CoordinateMetadata object with a CRS and potentially a
coordinate epoch
  • Loading branch information
rouault committed Sep 6, 2023
1 parent 54d017f commit 6c8ee72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdal/SpatialReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ void SpatialReference::set(std::string v)
throw pdal_error(oss.str());
}

m_epoch = srs.GetCoordinateEpoch();

m_wkt = exportToWkt(&srs);
}

Expand Down

0 comments on commit 6c8ee72

Please sign in to comment.