WebMercatorfromLLA not defined

I am trying to use WebMercatorfromLLA… Julia tells me that is not defined. Any other transformation, function work

ERROR: UndefVarError: WebMercatorfromLLA not defined Stacktrace: [1] top-level scope @ ~/Documents/Hardware & Software/Julia/Geodesy/geodesy.jl:35

Any answer from the contributors to the package?

Looks to me like the commit is newer than the latest release.

If you want to use it

  • you’ll probably have to build from source
  • maybe you should file an issue?

Thanks… I am not a good programmer… No idea how to proceed to build from source…Any tips? I’ve already filed the issue 5 days ago.

Again, this is he error I get. Could any of the 12 contributors to Geodesy.ly take a look? Thanks

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.7.2 (2022-02-06)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using Geodesy

julia> ARP_WGS84_lat = 38 + 52/60 + 22.29/3600
38.87285833333333

julia> ARP_WGS84_lon = 1 + 22/60 + 23.22/3600
1.3731166666666668

julia> ARP_WGS84_alt = 7
7

julia> ARP_WGS84 = LLA(lat=ARP_WGS84_lat, lon=ARP_WGS84_lon, alt=ARP_WGS84_alt)
LLA(lat=38.87285833333333°, lon=1.3731166666666668°, alt=7.0)

julia> ARP_WM = WebMercatorfromLLA(ARP_WGS84)
ERROR: UndefVarError: WebMercatorfromLLA not defined
Stacktrace:
 [1] top-level scope
   @ REPL[6]:1

The error was already explained above - the latest release of Geodesy does not include the change which introduced WebMercator support to the package so you need to ] add Geodesy#master if you want to use it.

Thanks… I had already got it. If so, could any of you “correct” it and upload the final version in line with the documentation?

I just tagged Geodesy v1.1 that includes WebMercatorfromLLA. Sorry it took a while. This package needs a maintainer…
https://github.com/JuliaGeo/Geodesy.jl/releases/tag/v1.1.0

2 Likes

Thank you!!!.. Would it be possible to upload an example in the documentation of how to use it? Thanks in advance!

I think it’s no different from the other transformations that are already defined, and demonstrated in the README’s Quick Start. Though if that’s not clear it can be helpful to look at the tests as well: Implement Web Mercator by c42f · Pull Request #67 · JuliaGeo/Geodesy.jl · GitHub