Skip to content

Commit

Permalink
fix #11263
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Aug 9, 2022
1 parent f581ae8 commit dc3e480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/geom/GeoConvHelper.cpp
Expand Up @@ -81,8 +81,9 @@ GeoConvHelper::GeoConvHelper(const std::string& proj, const Position& offset,
if (myProjection == nullptr) {
// avoid error about missing datum shift file
myProjString = std::regex_replace(proj, std::regex("\\+geoidgrids[^ ]*"), std::string(""));
myProjString = std::regex_replace(myProjString, std::regex("\\+step \\+proj=vgridshift \\+grids[^ ]*"), std::string(""));
if (myProjString != proj) {
WRITE_WARNING("Ignoring geoidgrids in projection");
WRITE_WARNING("Ignoring geoidgrids and vgridshift in projection");
initProj(myProjString);
}
}
Expand Down

0 comments on commit dc3e480

Please sign in to comment.