Skip to content

File paths #1

@JuanDiegoOrozco

Description

@JuanDiegoOrozco

Hello,

I am trying to display optical data within my map. I am running into path issues when referencing a file.

My Map file points to a shape file and the shape file points to a Geo tiff. MapServer finds the shape file just fine but cannot find the Geo tiff that the shape file is pointing to. I get the following error..

Corrupt, empty or missing file '.\Level_9\tx_192_137.tif' for layer 'Optical' ... ignoring this missing data.

Within the shape file location attribute I have tried the following,

  • Removed the "." in the front
  • Removed the "./" in the front
  • Tried path "\maps\Level_9......."
  • Tried path "maps\Level_9......."

Within my Map file I have SHAPEPATH "" as the shape file path.
Within my Map file for SHAPEPATH I have tried the following,

  • Changed the path to "/maps....."
  • Changed the path to "/"
  • Removed the SHAPEPATH line

It works just fine with a regular non-Docker windows MapServer.

Note: I am running this container within Docker for Windows.

This is what my Raster Layer looks like......
LAYER
NAME "Optical"
GROUP "default"
STATUS default
TYPE RASTER
METADATA
"wms_title" "Optical"
End
PROJECTION
"init=epsg:4326"
End
SCALETOKEN
NAME "%level%"
VALUES
#"0" "Level_15"
#"5000" "Level_14"
#"17062" "Level_13"
#"34123" "Level_12"
#"68247" "Level_11"
"0" "Level_9"
"272989" "Level_8"
"545978" "Level_7"
"1091957" "Level_6"
"2183915" "Level_5"
"4367830" "Level_4"
End
END
TILESRS src_srs
TILEINDEX "%level%.shp"
TILEITEM "LOCATION"
End

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions