Re: [Qgis-user] Error with QGIS Server on Debian wheezy
Hi The server normally detects the relative path and expands it to an absolute one internally. I just tested a project with relative pathes containing a shape and a spatialite layer and it worked fine here (tested with QGIS 2.2 / current master / Enterprise worked in all cases). Regards, Marco On 11.06.2014 09:48, Zedler, Jörg (regio iT) wrote: Hi, I have found an explanation for my problem: Although in my project the path to Shape-File is stored relative, QGIS Server interpreted the path as an absolute path. Example out of the project file: datasource./TestShape.shp/datasource Therefore the shape file is not found. With an symbolic link in root-directory, everything works. Is this problem known? Is there any better workaround? Thanks, J. Zedler *Von:*qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] *Im Auftrag von *Zedler, Jörg (regio iT) *Gesendet:* Donnerstag, 5. Juni 2014 21:07 *An:* qgis-user@lists.osgeo.org *Betreff:* [Qgis-user] Error with QGIS Server on Debian wheezy Hi, I need some help, running QGIS Server 2.2.0 on Debian wheezy. Using QGIS-Projects with Datasource Postgres works fine. Using QGIS-Projects with Datasource Shape-File didn't work. The same Project on Windows (also QGIS Server 2.2.0) works. GetCapabilities-Request gives all but no info for Shape-Layers Output on stderr: ERROR 10: Pointer 'hDS' is NULL in 'OGR_DS_Destroy' GetMap-Request crashes with Segmentation fault The Debian-Server is installed without X-Server Packages. Is there any idea, what's going wrong? Regards J. Zedler ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Error with QGIS Server on Debian wheezy
My bad I do a rapid test and on windows it seem to work. I surely had some troubles when move a qgis project from a windows machine to a linux server. The relative paths seem don't work correctly. This was experienced in the qgis 2.0 version. I don't explore more and choose the rapid and easy solution to change manually the paths in the file (with a script obviously). From that time I do no more tests. I see now it seem to work, but I donnot any test moving the project on server side. So perhaps the problem is on Linux.. I do some other test. Regards. 2014-06-12 9:20 GMT+02:00 Marco Hugentobler marco.hugentob...@sourcepole.ch: Hi The server normally detects the relative path and expands it to an absolute one internally. I just tested a project with relative pathes containing a shape and a spatialite layer and it worked fine here (tested with QGIS 2.2 / current master / Enterprise worked in all cases). Regards, Marco On 11.06.2014 09:48, Zedler, Jörg (regio iT) wrote: Hi, I have found an explanation for my problem: Although in my project the path to Shape-File is stored relative, QGIS Server interpreted the path as an absolute path. Example out of the project file: datasource./TestShape.shp/datasource Therefore the shape file is not found. With an symbolic link in root-directory, everything works. Is this problem known? Is there any better workaround? Thanks, J. Zedler Von: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Zedler, Jörg (regio iT) Gesendet: Donnerstag, 5. Juni 2014 21:07 An: qgis-user@lists.osgeo.org Betreff: [Qgis-user] Error with QGIS Server on Debian wheezy Hi, I need some help, running QGIS Server 2.2.0 on Debian wheezy. Using QGIS-Projects with Datasource Postgres works fine. Using QGIS-Projects with Datasource Shape-File didn’t work. The same Project on Windows (also QGIS Server 2.2.0) works. GetCapabilities-Request gives all but no info for Shape-Layers Output on stderr: ERROR 10: Pointer 'hDS' is NULL in 'OGR_DS_Destroy' GetMap-Request crashes with Segmentation fault The Debian-Server is installed without X-Server Packages. Is there any idea, what’s going wrong? Regards J. Zedler ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- Dr. Marco Hugentobler Sourcepole - Linux Open Source Solutions Weberstrasse 5, CH-8004 Zürich, Switzerland marco.hugentob...@sourcepole.ch http://www.sourcepole.ch Technical Advisor QGIS Project Steering Committee ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Error with QGIS Server on Debian wheezy
Hi, I have found an explanation for my problem: Although in my project the path to Shape-File is stored relative, QGIS Server interpreted the path as an absolute path. Example out of the project file: datasource./TestShape.shp/datasource Therefore the shape file is not found. With an symbolic link in root-directory, everything works. Is this problem known? Is there any better workaround? Thanks, J. Zedler Von: qgis-user-boun...@lists.osgeo.org [mailto:qgis-user-boun...@lists.osgeo.org] Im Auftrag von Zedler, Jörg (regio iT) Gesendet: Donnerstag, 5. Juni 2014 21:07 An: qgis-user@lists.osgeo.org Betreff: [Qgis-user] Error with QGIS Server on Debian wheezy Hi, I need some help, running QGIS Server 2.2.0 on Debian wheezy. Using QGIS-Projects with Datasource Postgres works fine. Using QGIS-Projects with Datasource Shape-File didn't work. The same Project on Windows (also QGIS Server 2.2.0) works. GetCapabilities-Request gives all but no info for Shape-Layers Output on stderr: ERROR 10: Pointer 'hDS' is NULL in 'OGR_DS_Destroy' GetMap-Request crashes with Segmentation fault The Debian-Server is installed without X-Server Packages. Is there any idea, what's going wrong? Regards J. Zedler ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Error with QGIS Server on Debian wheezy
I confirm this situation with spatialite. To partially resolve we modify manually the paths when transfer on qgis.server. A search and replace. Il 11/giu/2014 09:48 Zedler, Jörg (regio iT) joerg.zed...@regioit.de ha scritto: Hi, I have found an explanation for my problem: Although in my project the path to Shape-File is stored relative, QGIS Server interpreted the path as an absolute path. Example out of the project file: datasource./TestShape.shp/datasource Therefore the shape file is not found. With an symbolic link in root-directory, everything works. Is this problem known? Is there any better workaround? Thanks, J. Zedler *Von:* qgis-user-boun...@lists.osgeo.org [mailto: qgis-user-boun...@lists.osgeo.org] *Im Auftrag von *Zedler, Jörg (regio iT) *Gesendet:* Donnerstag, 5. Juni 2014 21:07 *An:* qgis-user@lists.osgeo.org *Betreff:* [Qgis-user] Error with QGIS Server on Debian wheezy Hi, I need some help, running QGIS Server 2.2.0 on Debian wheezy. Using QGIS-Projects with Datasource Postgres works fine. Using QGIS-Projects with Datasource Shape-File didn’t work. The same Project on Windows (also QGIS Server 2.2.0) works. GetCapabilities-Request gives all but no info for Shape-Layers Output on stderr: ERROR 10: Pointer 'hDS' is NULL in 'OGR_DS_Destroy' GetMap-Request crashes with Segmentation fault The Debian-Server is installed without X-Server Packages. Is there any idea, what’s going wrong? Regards J. Zedler ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] Error with QGIS Server on Debian wheezy
Hi, I need some help, running QGIS Server 2.2.0 on Debian wheezy. Using QGIS-Projects with Datasource Postgres works fine. Using QGIS-Projects with Datasource Shape-File didn't work. The same Project on Windows (also QGIS Server 2.2.0) works. GetCapabilities-Request gives all but no info for Shape-Layers Output on stderr: ERROR 10: Pointer 'hDS' is NULL in 'OGR_DS_Destroy' GetMap-Request crashes with Segmentation fault The Debian-Server is installed without X-Server Packages. Is there any idea, what's going wrong? Regards J. Zedler ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user