Closed Serra314 closed 2 years ago
This is a bug in how inla.wkt_get_ellipsoid_radius()
and fm_wkt_get_ellipsoid_radius()
locate the ellipsoid information. For epsg:4326
it's located in a different type of tree structure than for the other crs, and the code logic doesn't know how to find it.
The code expects "DATUM"
containing "ELLIPSOID"
but instead the 4326 crs has "ENSEMBLE
" containing "ELLIPSOID"
.
It looks like a relatively easy fix but it also affects fm_wkt_set_ellipsoid_radius()
and the corresponding INLA
methods.
I've made the corresponding update in the INLA code as well, so it should work after the next binary INLA build.
That sounds great! Does this mean that it should be available very soon?
Cheers,
Francesco
Il ven 9 set 2022, 18:01 Finn Lindgren @.***> ha scritto:
I've made the corresponding update in the INLA code as well, so it should work after the next binary INLA build.
— Reply to this email directly, view it on GitHub https://github.com/inlabru-org/inlabru/issues/154#issuecomment-1242161862, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFYE6R5TBZ7C4EWHL3H7KWDV5NNNXANCNFSM6AAAAAAQIVCDOE . You are receiving this because you authored the thread.Message ID: @.***>
It depends on when H makes a new build; if you need it soon, I suggest email Haavard to explain.
Issue CRS
Francesco Serafini 2022-09-09
I have an issue setting up the correct CRS. I found a workaround but I was wondering if this may be relevant for future development. The issue presents when I create a polygon and use that polygon as boundary to create a mesh and then, use the created mesh to fit an LGCP model. I am using R 4.2.1, INLA 22.9.2 and Inlabru 2.5.3.9001.
The polygon (which represents California) is defined as follows:
I set the CRS this way and then try to create a mesh
This produces the error
Error in inla.wkt_get_ellipsoid_radius(inla.crs_get_wkt(crs)) : Ellipsoid settings not found
Changing the CRS to the following I am able to create the mesh
but not to fit the model because running the function
I got the error
Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘coordinates’ for signature ‘“NULL”’
The only way I found to set the CRS in a way that is working is
With which everything works.
I was wondering if there is an issue on how I create the CRS object (which I suspect) or if the problem is more foundamental on how CRS are handled internally.
Thank you