Skip to content

Commit 1a0a28d

Browse files
authored
Use NS_PROJ namespace (fixes OSGeo#3842, master only) (OSGeo#3843)
1 parent 9da8ae5 commit 1a0a28d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/apps/proj.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -540,13 +540,12 @@ int main(int argc, char **argv) {
540540
const auto type = proj_get_type(P);
541541
if (type == PJ_TYPE_PROJECTED_CRS) {
542542
try {
543-
using namespace osgeo::proj;
544-
auto crs = dynamic_cast<const crs::ProjectedCRS *>(
543+
auto crs = dynamic_cast<const NS_PROJ::crs::ProjectedCRS *>(
545544
P->iso_obj.get());
546545
auto dir =
547546
crs->coordinateSystem()->axisList()[0]->direction();
548-
swapAxisCrs = dir == cs::AxisDirection::NORTH ||
549-
dir == cs::AxisDirection::SOUTH;
547+
swapAxisCrs = dir == NS_PROJ::cs::AxisDirection::NORTH ||
548+
dir == NS_PROJ::cs::AxisDirection::SOUTH;
550549
} catch (...) {
551550
}
552551
auto ctx = P->ctx;

0 commit comments

Comments
 (0)