Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Migration geoservice IGN #3746

Open
flob38 opened this issue Dec 5, 2023 · 6 comments
Open

Feature: Migration geoservice IGN #3746

flob38 opened this issue Dec 5, 2023 · 6 comments

Comments

@flob38
Copy link
Contributor

flob38 commented Dec 5, 2023

Community discussion about this feature (mandatory)
https://forum.camptocamp.org/t/bascule-des-geoservices/324653

Is your feature request related to a problem? Please describe.
It will be a bug if nothing change before 15/01/24 : no more IGN layers on map

Describe the solution you'd like
Change url of map's layers on UI
src/components/map/map-layers.js

@florentcadot
Copy link
Contributor

Hi @flob38 !
I cannot access https://forum.camptocamp.org/t/bascule-des-geoservices/324653 (I suppose the page is private?)

Screenshot from 2023-12-23 11-33-10

@flob38
Copy link
Contributor Author

flob38 commented Dec 23, 2023

Should be ok now, I added you to the dev group on the forum :)

@florentcadot
Copy link
Contributor

Seems to have been mostly done here: 143e68d

Just wondering about :

url: 'https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/v/wms',

I guess it should be url: 'https://data.geopf.fr/private/wms-v/ows?apikey=blabla' (with blabla the keyname according to https://geoservices.ign.fr/documentation/services/utilisation-sig/tutoriel-qgis/gpf-wms-wmts-donneesnonlibres)
cf doc here https://geoservices.ign.fr/bascule-vers-la-geoplateforme "Correspondances des URL par géoservice".

@eddy-geek
Copy link
Contributor

eddy-geek commented Jan 10, 2024

@florentcadot I agree we should try to migrate TRACERANDOHIVERNALE, but I think it's not available yet.
when when I compare the "capabilities" of the old (1), new private (2) and new public (3) urls:

(1) https://wxs.ign.fr/an7nvfzojv5wa96dsga5nk8w/geoportail/v/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities
(2) https://data.geopf.fr/private/wms-v/ows?apikey=ign_scan_ws&service=wms&version=1.3.0&request=GetCapabilities
(3) https://data.geopf.fr/wms-v/ows?service=wms&version=1.3.0&request=GetCapabilities

only the first one mentions this layer:

14201:        <Name>TRACERANDOHIVERNALE</Name>
14202:        <Title>TRACERANDOHIVERNALE</Title>
14203-        <Abstract>Layer-Group type layer: TRACERANDOHIVERNALE</Abstract>

If I take a layer that is declared in (2), it works. example:

curl 'https://data.geopf.fr/private/wms-v/ows?apikey=ign_scan_ws&REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0&FORMAT=image%2Fpng&STYLES=&TRANSPARENT=true&LAYERS=ADMINEXPRESS_2023-12-19&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&BBOX=682429.7885300554%2C5576845.58368646%2C684875.7734351811%2C5579291.568591585' \ -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \ --output ign-ADMINEXPRESS_2023-12-19-sample-tile.png

ign-ADMINEXPRESS_2023-12-19-sample-tile

If I just replace ADMINEXPRESS_2023-12-19 with TRACERANDOHIVERNALE I get instead:
<h1>Error 403</h1> <p>Unauthorized access to the offering TRACERANDOHIVERNALE</p>

which is actually a generic error for any random name!

→ so I think it's just not migrated yet. (hard to be sure as geoportail itself still uses the old URLs...)

@eddy-geek
Copy link
Contributor

I asked IGN and they confirmed "not yet"

La publication de cette couche est bien prévue, vous pouvez consulter depuis la page Bascule, la Liste des ressources de services Géoplateforme

La couche TRACERANDOHIVERNALE est indiquée comme non diffusée pour le moment. Elle le sera avant l'arrêt de l'infrastructure du Géoportail.

@florentcadot
Copy link
Contributor

Okay ! Thank you very much for all those details @eddy-geek, it's very clear 😄
So it makes sense to keep this issue opened until TRACERANDOHIVERNALE is published!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants