Maproom / qmapshack

Consumer grade GIS software
GNU General Public License v3.0
286 stars 64 forks source link

ERROR 1: Create mapfile (/sdat/config/mapfile//10008/10008_1_wcs.map) failed. #682

Open tps800 opened 1 month ago

tps800 commented 1 month ago

Describe the bug

Qmapshack tries to create a file within "/sdat/config/mapfile" but fails.

What have you done to circle down the problem?

The problem first occured with qmapshack 1.7.1 – the latest available version

To Reproduce

  1. Start qmapshack.
  2. Configure some maps.
  3. Load a *.gpx-file.
  4. See error "ERROR 1: Create mapfile (/sdat/config/mapfile//10008/10008_1_wcs.map) failed."

Expected behavior

qmapshack just creating the file within an appropriate path, not trying to use "/sdat/config/mapfile/..."

Tracebacks

comment: # (Add your backtrace below if you have one. If QMapshack crashes the fastest way to get help is a backtrace. For Linux see: https://github.com/Maproom/qmapshack/wiki/TroubleShooting#create-a-backtrace-of-a-crash-on-linux. For Windows it would need a debug build and running QMapshack in Visual Studio.)

Does not crash.

Desktop

Additional context

tried to create "/sdat/config/mapfile/..." but without any success.

kiozen commented 1 month ago

This is GDAL related. You get the same error when:

gdal_translate -projwin 49 12.1 49.1 12 -outsize 60 0 World_Online_SRTM900.wcs test.tif

There might be a way to fix it in the wcs file. Or it's a bad configuration of the WCS server. Or...? I couldn't find a clue on Google.

If you manage to get the above command to work, QMapshack will work, too.