Tag Info

New answers tagged

0

now the QGIS web client has an easy installer that will take care of all the paths.


1

It would help if you provided some sort of debugging result from when you load your map. I know that you can get the console up on firefox with ctrl + shift + k. Then jump to javascript tab (because thats where errors happend to me) and you can find your error there. Usually the infinite loading icon means there is an error. And yes you should create ...


2

It seems you do not declare any projection at the beginning of your code, whereas you are using within the view the declaration projection: 'EPSG:2966', You should first declare var projection = new ol.proj.Projection({ code: 'EPSG:2966', units: 'ft' }); It does not relies on Proj4js, see a previous answer to understand it purpose You can also visit ...


0

Check out this question/answer (78422) for information about getting QGIS-web-client to show your map and not Central Africa. Basically it's a bug/missing feature, there are only a few projections that QGIS-web-client supports and if your project is not in the default then it will not display your extents. I tried adding a new projection in site/libs/proj4js ...


1

I have no experience in C++ and am just learning to write QGIS plugins so this answer may be questionable... Looking at the c++ source ( http://qgis.org/api/qgsproject_8cpp_source.html ) for the "write" method, I noticed the following code in the middle of the write and thought it might be relevant to your problem: 1091 // let map canvas and legend write ...


1

I just noticed that you missed to set the QGIS installation path, so no provider may be loaded properly and probably this is the root of the problem. Try to change your script as follow: def main(): ## second argument (GUI Enabled) may be False ## if you do not need of GUI stuff QgsApplication([], False) ## installation path for Linux: ...



Top 50 recent answers are included