Open Enzoupi opened 4 years ago
Is this related to the topography issue in #143 ?
Hi @mgduda !
I do not believe it is related to #143. Because here I am not speaking of the same "intermediate" files. In these guys, the projection is defined by a keyword, which is pretty explicit and I doubt that my misunderstanding comes from here. Indeed, as shown in the index
files produced by the python codes, projections codes are lambert
for 2154 and regular_ll
for 4326 here.
However it could be related in some sense since it is probably me misunderstanding something in both cases !
Hi everybody,
This issue is entitled as a question as I don't really believe it could be a bug. Indeed, if it was a bug, I imagine many people would have detected it before ! But, here comes my little story :
I have been struggling with WPS lately when trying to ingest two datasets. One in Lambert 93 (EPSG:2154) and one in EPSG:3035 (i.e. Lambert Azimuthal Equal Area used for european datasets). I observed a shift with respect to the topography in both cases.
However, for the European dataset (Corinne Land Cover, FYI), everything worked perfectly when I used gdal to project it to EPSG:4326 and then use WPS ! :)
So I have tried to design a toy example : The idea is to make a dummy categorical field with two lines crossing at a specific location, both in EPSG:4326 and EPSG:2154. Then, compare that value to the point in geo_em* files were it does cross to detect if a significant shifting occurs or not.
For convenience, the dummy static fields are generated with a few python lines as one can see below:
First, the static data for EPSG:4326
Then, the static data for EPSG:2154
Using these static datasets together with their index files, the two lines crosses at the following longitude and latitude :
EPSG:4326 : Target LAT_M = 45.1788 LONG_M = 5.69937 EPSG:2154 : Target LAT_M = 45.1514 LONG_M = 5.7396
When the perfect value would have been : tgtlat = 45.180 | tgtlon = 5.700. Clearly, when using EPSG:4326 it works and when using EPSG:2154 there is a shift. This shift can be seen visually from the two figures below.
EPSG:4326
EPSG:2154
It may be -- read it is very likely -- that I am doing something obviously stupid when providing lambert data to WPS. In that case, I would be glad to know what because I have been trying to understand the origin of this shift for quite a while :)
But, as it occured to me with two distinct datasets (plus my toy-example) I raised that issue !
Thank you in advance for any help that one could provide !
All the best,
Enzo