aboutsummaryrefslogtreecommitdiff
path: root/src/iso19111/internal.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-05-06 19:45:27 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-05-06 20:21:27 +0200
commit61cf8c5b29c82ab7e46b207bd125eaad49c03021 (patch)
tree0d02cecceb233a94fa931caa47aed2c33543c53b /src/iso19111/internal.cpp
parent5e98fed78205605ccb01ab4310d3cba292de73b4 (diff)
downloadPROJ-61cf8c5b29c82ab7e46b207bd125eaad49c03021.tar.gz
PROJ-61cf8c5b29c82ab7e46b207bd125eaad49c03021.zip
createOperations(): for 'Amersfoort / RD New + NAP height' (EPSG:7415) to ETRS89 (EPSG:4937), make sure that the vgridshift is applied first (ie on Amersfoort datum) before the hgridshift
Diffstat (limited to 'src/iso19111/internal.cpp')
-rw-r--r--src/iso19111/internal.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/iso19111/internal.cpp b/src/iso19111/internal.cpp
index 240c98f4..4810202d 100644
--- a/src/iso19111/internal.cpp
+++ b/src/iso19111/internal.cpp
@@ -298,6 +298,21 @@ std::vector<std::string> split(const std::string &str, char separator) {
// ---------------------------------------------------------------------------
+std::vector<std::string> split(const std::string &str,
+ const std::string &separator) {
+ std::vector<std::string> res;
+ size_t lastPos = 0;
+ size_t newPos = 0;
+ while ((newPos = str.find(separator, lastPos)) != std::string::npos) {
+ res.push_back(str.substr(lastPos, newPos - lastPos));
+ lastPos = newPos + separator.size();
+ }
+ res.push_back(str.substr(lastPos));
+ return res;
+}
+
+// ---------------------------------------------------------------------------
+
#ifdef _WIN32
// For some reason, sqlite3_snprintf() in the sqlite3 builds used on AppVeyor