carsonfarmer / cartogram Goto Github PK
View Code? Open in Web Editor NEWA QGIS plugin for creating cartograms
License: GNU General Public License v2.0
A QGIS plugin for creating cartograms
License: GNU General Public License v2.0
Hi,
launching cartogram on either Qgis 2.0 or 2.4 on Fedora 20, I get the following error:
Traceback (most recent call last):
File "/home/nao/.qgis2/python/plugins/cartogram_creator/plugin.py", line 136, in run
d = doCartogram.Dialog(self.iface)
File "/home/nao/.qgis2/python/plugins/cartogram_creator/doCartogram.py", line 61, in init
for name, layer in layermap.iteritems():
File "/home/nao/.qgis2/python/plugins/cartogram_creator/doCartogram.py", line 61, in init
for name, layer in layermap.iteritems():
File "/usr/lib64/python2.7/bdb.py", line 49, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib64/python2.7/bdb.py", line 68, in dispatch_line
if self.quitting: raise BdbQuit
BdbQuit
Version de Python :
2.7.5 (default, Jun 25 2014, 10:19:55)
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)]
Version de QGIS :
2.4.0-Chugiak Chugiak, exported
the cartogram plugin has been unzipped to the "/home/nao/.qgis2/python/plugins/cartogram_creator" directory.
Have you any idea of what is going wrong ?
regards,
Just cloned this into /usr/share/qgis/python/plugins and it ain't working ("no metadata file"). Happy to work on a fix because it's a great plugin when working. Any suggestions?
I have joined a .csv file to the data in my .shp file (well, the .dbf, obviously), and I can see the data in the attribute table, but the field doesn't show up on the list of available fields in the drop down to choose a data field in the cartogram creator plugin.
Perhaps I'm doing something wrong, but...
An error has occured while executing Python code:
Traceback (most recent call last):
File "C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\cartogram-plugin\plugin.py", line 136, in run
d = doCartogram.Dialog(self.iface)
File "C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\cartogram-plugin\doCartogram.py", line 61, in init
for name, layer in layermap.iteritems():
File "C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\cartogram-plugin\doCartogram.py", line 61, in init
for name, layer in layermap.iteritems():
File "C:\PROGRA1\QGISCH1\apps\Python27\lib\bdb.py", line 49, in trace_dispatch
return self.dispatch_line(frame)
File "C:\PROGRA1\QGISCH1\apps\Python27\lib\bdb.py", line 68, in dispatch_line
if self.quitting: raise BdbQuit
BdbQuit
Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a
Python path: ['C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins\processing', 'C:/PROGRA1/QGISCH1/apps/qgis/./python', u'C:/Users/bjquinn/.qgis2/python', u'C:/Users/bjquinn/.qgis2/python/plugins', 'C:/PROGRA1/QGISCH1/apps/qgis/./python/plugins', 'C:\PROGRA1\QGISCH1\bin\python27.zip', 'C:\PROGRA1\QGISCH1\apps\Python27\DLLs', 'C:\PROGRA1\QGISCH1\apps\Python27\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\plat-win', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\lib-tk', 'C:\PROGRA1\QGISCH1\bin', 'C:\PROGRA1\QGISCH1\apps\Python27', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\PIL', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\pytz-2012j-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\win32\lib', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Pythonwin', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\six-1.3.0-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\wx-2.8-msw-unicode', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg', 'C:\PROGRA1\QGISCH1\apps\qgis\python\plugins\fTools\tools']
I don't know enough about QGis to install the plugin manually; could you publish it in the official repository? (Or is it published and my QGis 2.4 just doesn't see it?)
Or add a guide on where to clone this repository to?
If I'm looking for an "accurate" result, where the polygons get reasonably correctly sized relative to the data column being used, how do I know how many iterations to run? I've already seen that it looks like I need to run more iterations in order to get a reasonably-looking distorted result when the low to high range of the data is separated by several orders of magnitude. But what I don't know is how to determine how many iterations I "should" run in order for my result to be mathematically accurate. Does running too many iterations endlessly exaggerate differences between polygons? Is there a way to know what the correct number of iterations I should run is?
When I put these files in /Users/me/.qgis2/python/plugins/cartogram-master and start QGIS, and select Cartogram Creator from the plugins menu, the side panel says
"This plugin is broken
invalid syntax"
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.