aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/datum.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/datum.cpp b/src/datum.cpp
index b3edb152..9f9fb4ec 100644
--- a/src/datum.cpp
+++ b/src/datum.cpp
@@ -1096,7 +1096,9 @@ void GeodeticReferenceFrame::_exportToWKT(
}
}
}
- } else {
+ // Replace spaces by underscore, except if it is a special MapInfo
+ // datum name
+ } else if (!starts_with(l_name, "MIF ")) {
l_name = io::WKTFormatter::morphNameToESRI(l_name);
if (l_name == "World_Geodetic_System_1984") {
l_name = "WGS_1984";