Hi Thomas > On 12 Oct 2015, at 18:08, Thomas Gratier <osgeo.mailingl...@gmail.com> wrote: > > Hi, > > I'm working with the Python API to create a standalone app. > When I reuse this sample from > http://kartoza.com/how-to-load-a-qgis-project-in-python/ > <http://kartoza.com/how-to-load-a-qgis-project-in-python/>, it works > perfectly with only vector layer(s). > When I use a WMS with a vector layer, it fails directly. > I've done two samples to demonstrate the issue. You can take samples from > https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io= > > <https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io=> >
It seems like that framadrop.org site is broken (FileConstructor is not a constructor (evaluating 'new File(a, data.name, {type: data.type})’)) so I cannot view the example. But you said above that you were trying ‘WMS with a vector layer’ so I am wondering if you have been trying to add a WMS layer as a raster layer rather than a vector layer? If you can just reply with the relevant snippet of code you are trying to use that would help to see what is going on. Regards Tim > > Run the working vector sample with: > python test_project_standalone_no_wms.py > > Run the non working wms + vector sample with: > python test_project_standalone.py > > I should miss something. Do you have any clue? It's a bug or a feature > (unwanted for my case)? > > Cheers > > Thomas Gratier > _______________________________________________ > Qgis-user mailing list > Qgis-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-user Tim Sutton QGIS Project Steering Committee Member t...@qgis.org
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user