Страница 1 из 1

MapServer и магические строки

Добавлено: 30 авг 2009, 00:39
Denis Rykov
При обновлении MapServer на сайте полетело пособие. MapServer ругался на отсутствие слова SYMBOLSET и на какие то магические строки (Magic String). После непродолжительного поиска причина была найдена:

The MAP and SYMBOLSET keywords used to be optional at the beginning of mapfiles and symbolsets respectively. With this change, the MAP keyword will be required on the first line of mapfiles and the SYMBOLSET keyword required on the first line of symbolset files. If the keyword is missing then the parser will reject the file.

...first line of a template must contain the “MapServer Template” magic string which can be surrounded by comment delimiters...

Код: Выделить всё

<!-- MapServer Template -->
<html>
 <head>...</head>
 <body>
 ...
 </body>
</html>
То есть в файл с символами нужно добавить первой строкой - SYMBOLSET, а в файлы шаблонов - <!-- MapServer Template -->.