Open sikmir opened 3 years ago
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.
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.
Currently the server provides broken Capabilities.xml, GetMap url contains
geoserver-applications:8060/geoserver/karjalankartat/ows
instead ofmapservices.navici.com/karjalankartat/wms
. Obviouslygeoserver-applications
couldn't be resolved:Workaround: