aboutsummaryrefslogtreecommitdiff
path: root/src/coordinatesystem.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-12-13 17:17:36 +0100
committerEven Rouault <even.rouault@spatialys.com>2018-12-13 17:17:36 +0100
commited14754a6b3ec488ab2994a43d3533763627ba70 (patch)
tree08fdfbde41b225f1976560256261a5ba2b24ca9f /src/coordinatesystem.cpp
parent7ce68ff69084faece5ee3ef1be4b5bbbf3e30de3 (diff)
downloadPROJ-ed14754a6b3ec488ab2994a43d3533763627ba70.tar.gz
PROJ-ed14754a6b3ec488ab2994a43d3533763627ba70.zip
imort from WKT1: set correct CS for Transverse Mercator South Oriented
Diffstat (limited to 'src/coordinatesystem.cpp')
-rw-r--r--src/coordinatesystem.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/coordinatesystem.cpp b/src/coordinatesystem.cpp
index b274f583..a3ad04e0 100644
--- a/src/coordinatesystem.cpp
+++ b/src/coordinatesystem.cpp
@@ -947,6 +947,27 @@ CartesianCS::createNorthingEasting(const common::UnitOfMeasure &unit) {
// ---------------------------------------------------------------------------
+/** \brief Instanciate a CartesianCS with a Westing (first) and Southing
+ * (second) axis.
+ *
+ * @param unit Linear unit of the axes.
+ * @return a new CartesianCS.
+ */
+CartesianCSNNPtr
+CartesianCS::createWestingSouthing(const common::UnitOfMeasure &unit) {
+ return create(util::PropertyMap(),
+ CoordinateSystemAxis::create(
+ util::PropertyMap().set(IdentifiedObject::NAME_KEY,
+ AxisName::Easting),
+ AxisAbbreviation::Y, AxisDirection::WEST, unit),
+ CoordinateSystemAxis::create(
+ util::PropertyMap().set(IdentifiedObject::NAME_KEY,
+ AxisName::Northing),
+ AxisAbbreviation::X, AxisDirection::SOUTH, unit));
+}
+
+// ---------------------------------------------------------------------------
+
/** \brief Instanciate a CartesianCS, north-pole centered,
* with a Easting (first) South-Oriented and
* Northing (second) South-Oriented axis.