Opened 5 years ago

Closed 5 years ago

#3279 closed defect (wontfix)

INCLUDE directive seems not to work with variable substitution

Reported by: lellomarello Owned by: sdlime
Priority: normal Milestone: FUTURE
Component: MapServer C Library Version: 5.4
Severity: normal Keywords:
Cc:

Description

INCLUDE directive in mapfiles seems not to work with variable substitution.

ex. INCLUDE "%mapfiles_path%/layer_regions.map"

return the following error: msLoadMap(): Premature End-of-File. msyylex(): Unable to access file. Error opening included file "%mapfiles_path%/layer_regions.map".

Change History (1)

comment:1 Changed 5 years ago by sdlime

  • Milestone set to FUTURE
  • Resolution set to wontfix
  • Status changed from new to closed

It's not documented to work and really can't work. The reason being that substitution is done post-include parsing. The runtime substitution is done on a mapObj not a map file. Substitution within an include file is supported.

Wish I had better news but I don't, sorry. Marking as won't fix...

Steve

Note: See TracTickets for help on using tickets.