Git Product home page Git Product logo

qgis-cartogram's People

Contributors

wulff avatar wvcpw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qgis-cartogram's Issues

error while installation

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 startPlugin
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
1/apps/qgis/./python\qgis\utils.py", line 674, in _import
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

"Cartogram creation cancelled by user“?

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?

Python error:

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

Handle 0 values

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?).

Output cartogram looks almost identical to input data

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:

http://imgur.com/IUScdT6

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.