informeren / qgis-cartogram Goto Github PK
View Code? Open in Web Editor NEWQGIS plugin for creating continuous cartograms
License: GNU General Public License v2.0
QGIS plugin for creating continuous cartograms
License: GNU General Public License v2.0
H,
I got an error while installation:
ImportError: PyQt4 classes cannot be imported in QGIS 3.x. Use PyQt5.QtCore or the version independent qgis.PyQt.QtCore import instead.
Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python\qgis\utils.py", line 337, in startPlugin1/apps/qgis/./python\qgis\utils.py", line 674, in _import
plugins[packageName] = package.classFactory(iface)
File "C:/Users/moni/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram_init_.py", line 7, in classFactory
from .cartogram import Cartogram
File "C:/OSGEO4
mod = _builtin_import(name, globals, locals, fromlist, level)
File "C:/Users/moni/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\cartogram\cartogram.py", line 1, in
from PyQt4.QtCore import (Qt, QCoreApplication, QSettings, QThread,
File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 672, in _import
raise ImportError(msg)
ImportError: PyQt4 classes cannot be imported in QGIS 3.x.
Use PyQt5.QtCore or the version independent qgis.PyQt.QtCore import instead.
Python-Version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS-Version: 3.2.3-Bonn Bonn, 9b176802e5
Best regards,
Swawa
Any idea how to go about changing the plugin so it applies the calculated rubber sheet from a shape onto raster, point and line layers?
I am using the QGIS Cartogram plugin, but unfortunately something is not working as it should.
First, the demo works just fine. But when I want to create a cartogram with my own layer. But as soon as I click „ok“, it says "Cartogram creation cancelled by user“.
Do you have a clue, what I'm doing wrong? What am I canceling?
I copied the qgis-cartogram-develop folder into .qgis2/plugins/ and get the following error upon starting up QGIS 2.8:
Couldn't load plugin qgis-cartogram-develop due to an error when calling
its classFactory() method
Full error message:
Traceback (most recent call last):
File "/Applications/QGIS_28/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 219, in startPlugin
plugins[packageName] = package.classFactory(iface)
File "/Users/myUserName/.qgis2/python/plugins/qgis-cartogram-develop/init.py", line 7, in classFactory
from .cartogram import Cartogram
File "/Applications/QGIS_28/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 478, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/myUserName/.qgis2/python/plugins/qgis-cartogram-develop/cartogram.py", line 10, in
from cartogram_dialog import CartogramDialog
File "/Applications/QGIS_28/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 478, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/Users/myUserName/.qgis2/python/plugins/qgis-cartogram-develop/cartogram_dialog.py", line 6, in
os.path.dirname(file), 'cartogram_dialog_base.ui'))
File "/Applications/QGIS_28/QGIS.app/Contents/MacOS/../Resources/python/PyQt4/uic/init.py", line 213, in loadUiType
exec(code_string.getvalue(), ui_globals)
File "", line 66, in
File "/Applications/QGIS_28/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 478, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named qgsfieldcombobox
In Plugins Manager I can see the plugin, but it is highlighted red, with the following error:
This plugin is broken
invalid syntax
I get a ZeroDivisionError
in the logs when I try to use this plugin with some features where the area column has a 0 in it. It would be great if the plugin could handle this more gracefully (eg by ignoring or removing those features?).
I have a dataset of the Canadian federal electoral districts in shapefile format. I ran the cartogram plugin with 5 iterations and the population field. When the output was created, I saved it to a new shapefile. At first, the boundaries looked like they had no changed at all. However, when I zoomed in to an urban area, it looked like this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.