Skip to content

Commit

Permalink
eckit::geo::Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaciel committed Jun 20, 2024
1 parent 15b5318 commit 46d65fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eckit/geo/projection/PROJ.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace {


constexpr auto CTX = PJ_DEFAULT_CTX;
static const std::string DEFAULT = "EPSG:4326"; // wgs84, latitude/longitude coordinate system
static const std::string DEFAULT = "EPSG:4326"; // WGS84, latitude/longitude coordinate system


struct pj_t : std::unique_ptr<PJ, decltype(&proj_destroy)> {
Expand Down Expand Up @@ -149,8 +149,8 @@ PROJ::PROJ(const std::string& source, const std::string& target, double lon_mini


PROJ::PROJ(const Spec& spec) :
PROJ(spec.get_string("source", spec.get_string("proj", DEFAULT)), // default to WGS 84
spec.get_string("target", DEFAULT), // ...
PROJ(spec.get_string("source", spec.get_string("proj", DEFAULT)),
spec.get_string("target", DEFAULT),
spec.get_double("lon_minimum", 0)) {}


Expand Down

0 comments on commit 46d65fc

Please sign in to comment.