<div dir="ltr">Hi Jukka,<div><br></div><div>both files are in the same directory.</div><div>I tried :</div><div><ul><li>INCLUDE
"TextCharacteristics.txt" </li><li>INCLUDE
"./TextCharacteristics.txt" </li></ul><div>with the same error</div></div><div><br></div><div>Philippe</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Jun 4, 2025 at 9:19 AM Rahkonen Jukka <<a href="mailto:jukka.rahkonen@maanmittauslaitos.fi">jukka.rahkonen@maanmittauslaitos.fi</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
From the documentation:<br>
"File paths may be given as absolute paths, or as paths relative to the location of the mapfile. In addition, data files may be specified relative to the SHAPEPATH."<br>
<br>
Is the place of your "TextCharacteristics.txt" now relative to what?<br>
<br>
-Jukka Rahkonen-<br>
<br>
________________________________________<br>
Lähettäjä: MapServer-users <<a href="mailto:mapserver-users-bounces@lists.osgeo.org" target="_blank">mapserver-users-bounces@lists.osgeo.org</a>> käyttäjän Philippe Ghesquiere via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>> puolesta<br>
Lähetetty: Keskiviikko 4. kesäkuuta 2025 9.46<br>
Vastaanottaja: <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a> <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>><br>
Aihe: [MapServer-users] INCLUDE a relative path file does not work in LABEL definition<br>
<br>
Dear all,Environment :Windows : mapmanager, based on MapServer 8.0.1, GDAL 3.8.4Linux : MapServer 8.2.0, GDAL 3.8.4In order to make my map files more generic, I am using INCLUDE directives.When defining a LABEL, I tried to INCLUDE some common definitions. For example :MyClass.map file :CLASS STYLE .... END LABEL EXPRESSION ('[NAME]' != 'UNK') TEXT "[NAME]" INCLUDE "TextCharacteristics.txt" ENDENDTextCharacteristics.txt file :POSITION CCCOLOR "#000000"FONT condensedSIZE 12I get the following error :'load_Label(): Premature End-of-File. ;msyylex(): Unable to access file.Error opening included file "TextCharacteristics.txt"..Please correct the issue in the text tab'As a workaround, I gave the absolute file path to make it work.The documentation says that relative path could be used.Did I make something wrong ?Thanks for your helpPhilippeThe information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</blockquote></div>
<font style="font-size: 9px;">The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.<br>If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.<br>Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.<br>All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.</font>