Please sign in to comment.
[Server][BUGFIX] Resolve relative pathes (SVGMArker, Netcdf, etc)
QGIS-Server has some trouble to resolve relative pathes. For example, SVGMarker path and NETCDF datasource are not resolved in QGIS Server unlike in QGIS Desktop. To resolve relative path for SVGMarker, the class QgsSombolLayerV2Utils is used and it based on QgsProject::instance()->fileName(). To resolve relative path for NETCDF datasource and other GDAL datasources, the class QgsMapLayer is used and it based on QgsProject::instance()->readPath( filename ). To fix the issue, the QgsProject instance fileName is set in the QgsServerProjectParser constructor.
- Loading branch information