diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-11 16:03:21 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-11 16:27:10 +0100 |
| commit | 189955fbb0c36a81737a40f84e03df323e5f9356 (patch) | |
| tree | 3b716b0820883f2cd1cccbde3ad69220c3b51cd9 /src/coordinateoperation.cpp | |
| parent | c2c2e5d7f22f3c44c188200717236cf23547ac6f (diff) | |
| download | PROJ-189955fbb0c36a81737a40f84e03df323e5f9356.tar.gz PROJ-189955fbb0c36a81737a40f84e03df323e5f9356.zip | |
API: add setters for Laborde Oblique Mercator, and add mapping to WKT1
Diffstat (limited to 'src/coordinateoperation.cpp')
| -rw-r--r-- | src/coordinateoperation.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/coordinateoperation.cpp b/src/coordinateoperation.cpp index 654692fb..ac2c4196 100644 --- a/src/coordinateoperation.cpp +++ b/src/coordinateoperation.cpp @@ -3267,6 +3267,36 @@ ConversionNNPtr Conversion::createHotineObliqueMercatorTwoPointNaturalOrigin( // --------------------------------------------------------------------------- +/** \brief Instanciate a conversion based on the [Laborde Oblique Mercator] + *(https://proj4.org/operations/projections/labrd.html) projection method. + * + * This method is defined as [EPSG:9813] + * (https://www.epsg-registry.org/export.htm?gml=urn:ogc:def:method:EPSG::9813) + * + * @param properties See \ref general_properties of the conversion. If the name + * is not provided, it is automatically set. + * @param latitudeProjectionCentre See \ref latitude_projection_centre + * @param longitudeProjectionCentre See \ref longitude_projection_centre + * @param azimuthInitialLine See \ref azimuth_initial_line + * @param scale See \ref scale_factor_initial_line + * @param falseEasting See \ref false_easting + * @param falseNorthing See \ref false_northing + * @return a new Conversion. + */ +ConversionNNPtr Conversion::createLabordeObliqueMercator( + const util::PropertyMap &properties, + const common::Angle &latitudeProjectionCentre, + const common::Angle &longitudeProjectionCentre, + const common::Angle &azimuthInitialLine, const common::Scale &scale, + const common::Length &falseEasting, const common::Length &falseNorthing) { + return create(properties, EPSG_CODE_METHOD_LABORDE_OBLIQUE_MERCATOR, + createParams(latitudeProjectionCentre, + longitudeProjectionCentre, azimuthInitialLine, + scale, falseEasting, falseNorthing)); +} + +// --------------------------------------------------------------------------- + /** \brief Instanciate a conversion based on the [International Map of the World *Polyconic] *(https://proj4.org/operations/projections/imw_p.html) projection method. |
