Giter Site home page Giter Site logo

gisquick / gisquick-qgis-plugin-old Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 4.0 87 KB

DEPRECATED Gisquick QGIS Plugin - tool for publishing QGIS projects in Gisquick platform

Home Page: http://gisquick.readthedocs.io

License: GNU General Public License v3.0

Makefile 2.01% Python 97.35% Batchfile 0.63%

gisquick-qgis-plugin-old's Introduction

Gisquick

Gisquick (http://gisquick.org) is designed as an open source platform for publishing geospatial data in the sense of rapid sharing QGIS projects on the web. The platform consists of QGIS plugin, QGIS server and Gisquick server and web applications.

Important

Please beware, that current Gisquick documentation is not up to date. It was written for version 1.x, which is now obsolete and no longer maintained!

Latest version of Gisquick is running on our public instance. If you would like to run it locally or your server, easiest way is to use our Gisquick CLI tool.

To keep track of substantial changes, planned features or new proposals, please use Gisquick RFCs repository.

License

GNU General Public License version 2 or later.

Contact

gisquick at opengeolabs.cz

gisquick-qgis-plugin-old's People

Contributors

jachym avatar landam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gisquick-qgis-plugin-old's Issues

Warning from project page validation may not be noticable

Because widget for displaying errors and warnings is only of the first wizard page, user has no chance to notice warnings generated on page validation if there is no errors - wizard will display next page immediately (you have to return to previous page to see it). It would be better to have shared widget visible on every page.

qgis3 plugin fails on compressed project (qgz)

When storing project in compressed file (qgz) the plugin fails after pressing 'Next' button with

Traceback (most recent call last):
  File "/home/martin/git/gislab-npo/gisquick-qgis-plugin/publish.py", line 328, in validate
    self.publish_project()
  File "/home/martin/git/gislab-npo/gisquick-qgis-plugin/publish.py", line 284, in publish_project
    project_data = fin.read()
  File "/usr/lib/python3.7/codecs.py", line 701, in read
    return self.reader.read(size)
  File "/usr/lib/python3.7/codecs.py", line 504, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 10: invalid start byte

XYZ layers publishing fails

Attempt to publish QGIS project containing XYZ layers fails with

  File "/Users/xxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/gisquick-qgis-plugin/project.py", line 902, in base_layers_data
    'format': source_params['format'][0],
KeyError: 'format

Postgres Data types to shapefile datatypes

Current version of GISQuick plugin is taking data types from Postgres and stores them to meta file.

We need to remap the data types, so that GISQuick web understands them

INT4 -> INTEGER
NUMERIC -> DOUBLE
VARCHAR -> TEXT

and of course others (DATE e.g. is missing)

avoid dots in layer names (WFS issue)

A dot is used in WFS requests - <layer name>.<feature id>. It means that dots in layer names can cause problems as broken 'Zoom to feature' functionality in Gisquick UI.

Possible solutions:

  • modify plugin to print errors when layer names contain a dot and appropriate short name is not define
  • modify plugin to define short name automatically (no dots, no diacritics, etc.)

AttributeError: 'NoneType'

Hi,

Been using the gisquick plugin and all has worked well but when I created a new QGIS project recently when I clicked on the 'gisquick plugin' then moving from 'Base layer' > 'next' the following error appears:-

An error has occurred while executing Python code:

AttributeError: 'NoneType' object has no attribute 'mapUnitsToLayoutUnits'
Traceback (most recent call last):
File "/home/paul/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/gisquick-qgis-plugin/project.py", line 291, in validate
self.get_metadata()
File "/home/paul/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins/gisquick-qgis-plugin/project.py", line 1133, in get_metadata
units_conversion = map.mapUnitsToLayoutUnits()
AttributeError: 'NoneType' object has no attribute 'mapUnitsToLayoutUnits'

Python version: 3.7.4 (default, Nov 10 2011, 15:00:00) [GCC 9.2.0]
QGIS version: 3.12.3-București București, 82342615

Python Path:
/app/share/qgis/python
/home/paul/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python
/home/paul/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python/plugins
/app/share/qgis/python/plugins
/usr/lib/python37.zip
/usr/lib/python3.7
/usr/lib/python3.7/lib-dynload
/usr/lib/python3.7/site-packages
/app/lib/python3.7/site-packages
/app/lib/python3.7/site-packages/numpy-1.14.3-py3.7-linux-x86_64.egg
/app/lib/python3.7/site-packages/MarkupSafe-1.0-py3.7-linux-x86_64.egg
/home/paul/.var/app/org.qgis.qgis/data/QGIS/QGIS3/profiles/default/python
/home/paul/Desktop/My Desktop Stuff/gisquick

No idea why it won't now work on any project anymore. I'm using QGIS 3.12.3 on Ubuntu 20.04 LTS 64 bit.

Many thanks,

New topic added twice

Description of situation:

I add New topic e.g. "A", then "B", "C", etc. by Add button. When I go next by Next button, then I return and add new topic "D", it is OK, but when I go back by Back button and then I add new topic, New topic has twin, see figure below. When I want to delete it, both are deleted after one click on Remove button.

glw-new-topics

ValueError: No JSON object could be decoded

hi all,
I have problem to create project in my QGIS (win 8 pro, 64x). Maybe problem will be related to utf8?
Jan

Traceback (most recent call last):
File "C:/Users/M�stostarostaFL/.qgis2/python/plugins\gisquick-qgis-plugin\webgisplugin.py", line 423, in show_publish_dialog
self.last_metadata = self.last_metadata() or {}
File "C:/Users/M�stostarostaFL/.qgis2/python/plugins\gisquick-qgis-plugin\webgisplugin.py", line 400, in last_metadata
return json.load(f)
File "C:\PROGRA1\QGIS21.18\apps\Python27\lib\json_init
.py", line 291, in load
**kw)
File "C:\PROGRA1\QGIS21.18\apps\Python27\lib\json_init
.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\PROGRA1\QGIS21.18\apps\Python27\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\PROGRA1\QGIS21.18\apps\Python27\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Verze Pythonu: 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 64 bit (AMD64)]
QGIS verze: 2.18.28 Las Palmas, 6551c2a73e

Configuration summary is not updating

When I get into 'Configuration summary' page and then return back in wizard and change layers configuration, Configuration summary will not reflect these changes. Generated project metadata is as expected, so the problem must be in Configuration summary page.

Special settings in Project Properties

Before QGIS project publishing it is important to set in Project Properties:

1.) OWS server --> Service capabilities --> Keyword list, e.g. <some value>
2.) OWS server --> WMS capabilitie

  • Add geometry to feature response

3.) OWS server --> WFS and WCS capabilities -->

  • Published layers or Select all

and also manually set sources to *.svg styles if any exist

Note: Size of symbol has to be set in mm or px, can't be set in map units

Without settings mentioned above point layers are displayed as question marks, symbols in legend are very large and attribute table is not displayed.

Key error on start

Traceback (most recent call last):
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/gisquick-qgis-plugin/wizard.py", line 30, in _initialize_page
self.initialize()
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/gisquick-qgis-plugin/project.py", line 492, in initialize
resolutions = self.plugin.project_layers_resolutions()
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/gisquick-qgis-plugin/webgisplugin.py", line 280, in project_layers_resolutions
wmsc_layers_scales = self.resolutions_to_scales(project_tile_resolutions)
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/gisquick-qgis-plugin/webgisplugin.py", line 217, in resolutions_to_scales
return resolutions_to_scales(resolutions, self.map_units())
File "/home/jencek/qgis3_profiles/profiles/default/python/plugins/gisquick-qgis-plugin/webgisplugin.py", line 195, in map_units
}[self.iface.mapCanvas().mapUnits()]
KeyError: 6

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.