ascii_qgis icon indicating copy to clipboard operation
ascii_qgis copied to clipboard

no map with single shp file in project

Open rduivenvoorde opened this issue 9 years ago • 5 comments
trafficstars

w.zip

Though I'm able to start the gis, I do not see layers in legend or map.

As a test, I just uploaded a zipfile with a qgis project + a world.shp.

Plz test if this is working for you

rduivenvoorde avatar Mar 09 '16 13:03 rduivenvoorde

@rduivenvoorde did you change the hard coded paths in the source?

timlinux avatar Mar 09 '16 18:03 timlinux

And yes awesome that you can now attach sample files!

timlinux avatar Mar 09 '16 18:03 timlinux

@timlinux you mean ni ascii_qgis.config ? Yes I did. And it asked me to load the file and silently loads ... nothing :-)

Yeah, let's try to move to github

rduivenvoorde avatar Mar 09 '16 22:03 rduivenvoorde

yeah it's strange

just going to try now

NathanW2 avatar Mar 09 '16 22:03 NathanW2

Trying the code on a python terminal here, and while QgsProject.instance().layerTreeRoot().children() returns 3 layers in QGIS, when I do it on command line after opening it with parfait, I get an empty layer list:

from parfait import QGIS, projects projects <module 'parfait.projects' from 'parfait/projects.pyc'> projects.open_project('/home/richard/temp/nl.qgs') <parfait.projects.Project object at 0x7f8329db2050> project = projects.open_project('/home/richard/temp/nl.qgs') project <parfait.projects.Project object at 0x7f8329db2090> QgsProject.instance().layerTreeRoot() <qgis._core.QgsLayerTreeGroup object at 0x7f8329da2218> QgsProject.instance().layerTreeRoot().children() []

rduivenvoorde avatar Mar 10 '16 19:03 rduivenvoorde