Opened 13 years ago
#4054 new defect
Mapfile - File path syntax for Windows is undocumented and ambiguous.
Reported by: | panzel | Owned by: | jmckenna |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Documentation - MapServer | Version: | unspecified |
Severity: | normal | Keywords: | mapfile, path, Windows |
Cc: |
Description
Under Windows, the backslash is used as a file path separator; in addition a double-backslash introduces a "Windows UNC" (Universal Naming Convention) path. Within a mapfile, the exact format to use is undocumented (and may represent a parsing problem as well).
Consider a file specification for a layer's DATA statement. MapServer is unable to find this image:
DATA '
someHost\theShareName\aDirectory\anImage.jpg'
Both of these work:
DATA 'someHost/theShareName/aDirectory/anImage.jpg'
DATA '
someHost
theShareName
aDirectory
anImage.jpg'
Note:
See TracTickets
for help on using tickets.