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

Karjalankartta is broken #53

Open
sikmir opened this issue Mar 21, 2021 · 2 comments
Open

Karjalankartta is broken #53

sikmir opened this issue Mar 21, 2021 · 2 comments

Comments

@sikmir
Copy link
Contributor

sikmir commented Mar 21, 2021

Currently the server provides broken Capabilities.xml, GetMap url contains geoserver-applications:8060/geoserver/karjalankartat/ows instead of mapservices.navici.com/karjalankartat/wms.
Obviously geoserver-applications couldn't be resolved:

Error downloading file: http://geoserver-applications:8060/geoserver/karjalankartat/ows?SERVICE=WMS&&service=WMS&version=1.3.0&request=GetMap&bbox=-32265312.952290,4375410.648616,7809703.733288,44450427.334195&width=256&height=256&layers=topo20k_group&styles=&format=image/png&transparent=true&CRS=EPSG:2394: Host geoserver-applications not found

Workaround:

$ sed -i 's#geoserver-applications:8060/geoserver/karjalankartat/ows?SERVICE=WMS#mapservices.navici.com/karjalankartat/wms?apikey=4NIgWBON5qRTx8ePtDbQNR0YojJkhlFB#' ~/.cache/gpxsee/tiles/Karjalankartta\ \(Maps\ of\ Karelia\)\ 20k/capabilities.xml
@sikmir
Copy link
Contributor Author

sikmir commented Jul 5, 2022

Workaround for home-manager users:

  home.activation.gpxsee-maps = let 
    wmsUrl = "https://mapservices.navici.com/karjalankartat/wms?apikey=4NIgWBON5qRTx8ePtDbQNR0YojJkhlFB";
    mapName = "Karjalankartta (Maps of Karelia) 20k";
  in lib.hm.dag.entryAfter ["writeBoundary"] ''
    mkdir -p '${config.xdg.cacheHome}/gpxsee/tiles/${mapName}'
    curl '${wmsUrl}&SERVICE=WMS&REQUEST=GetCapabilities' | \
      sed 's#http://geoserver-applications:8060/geoserver/karjalankartat/ows?SERVICE=WMS#${wmsUrl}#' > '${config.xdg.cacheHome}/gpxsee/tiles/${mapName}/capabilities.xml'
  '';

Reported about the problem to MML.

@sikmir
Copy link
Contributor Author

sikmir commented Jul 25, 2022

MML answered me they are not going to fix Capabilities.xml since https://www.karjalankartat.fi/ is working with no problems. I guess they just don't use GetCapabilities request.

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

1 participant