Bug report #2894
Mapserver export: mangles shapefile paths in mapfile (layerid=0)
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||12954|
When exporting a project file to mapserver's mapfile the paths to shapefiles (DATA "/path/...") gets written with a "|layerid=0" substring appended, making them all unresolvable to mapserver.
The substring seems to be also in the project file itself, and works fine there (<datasource>) just needs to be split before writing to mapfile.