Ticket #3279 (closed defect: wontfix)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by sdlime

  • status changed from new to closed
  • resolution set to wontfix
  • milestone set to FUTURE

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.