Cartogram creator not working

5 messages Options
Embed this post
Permalink
Agustin Lobo

Cartogram creator not working

Reply Threaded More More options
Print post
Permalink
Hi!
When I run plugin Cartogram Creator a window named
"Generate Centroids"
pops up in which I cannot select anything in field
Input Shapefile

(qgis 1.3.0 ubuntu jaunty from ubuntugis-unstable binaries)

Cheers

Agus
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Rainer M Krug-6

Re: Cartogram creator not working

Reply Threaded More More options
Print post
Permalink


On Tue, Oct 27, 2009 at 10:13 AM, Agustin Lobo <[hidden email]> wrote:
Hi!
When I run plugin Cartogram Creator a window named
"Generate Centroids"
pops up in which I cannot select anything in field
Input Shapefile

(qgis 1.3.0 ubuntu jaunty from ubuntugis-unstable binaries)

Works for me - does the shape file contains polygons? Does the shape file contain a column, which can be used for the cartogram?

Otherwise, I have no idea.

Rainer

 
Cheers

Agus
_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user



--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:           +27 - (0)83 9479 042
Fax:            +27 - (0)86 516 2782
Fax:            +49 - (0)721 151 334 888
email:          [hidden email]

Skype:          RMkrug
Google:         [hidden email]


_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Agustin Lobo

Re: Cartogram creator not working

Reply Threaded More More options
Print post
Permalink
In reply to this post by Agustin Lobo
True, I was using an inappropriate layer, sorry for the noise.

You should consider that sometimes 0 are present?
(ZeroDivisionError: float division)

Agus

Carson Farmer wrote:

> Hi Agus,
>
> The 'Generate Centroids' name is simply me reusing code, I'll fix this
> later...
> as for not being able to select anything, all I can think of is perhaps
> you don't
> have a valid polygon layer loaded, or if you do, perhaps it doesn't have
> any numeric fields?
>
> Carson
>
> On Tue, Oct 27, 2009 at 8:13 AM, Agustin Lobo <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi!
>     When I run plugin Cartogram Creator a window named
>     "Generate Centroids"
>     pops up in which I cannot select anything in field
>     Input Shapefile
>
>     (qgis 1.3.0 ubuntu jaunty from ubuntugis-unstable binaries)
>
>     Cheers
>
>     Agus
>
>
>
>
> --
> Carson Farmer
> National Centre for Geocomputation
> John Hume Building,
> National University of Ireland, Maynooth,
> Maynooth,
> Co. Kildare,
> Ireland.
> www.carsonfarmer.com <http://www.carsonfarmer.com>

_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Rainer M Krug-6

Re: Cartogram creator not working

Reply Threaded More More options
Print post
Permalink


On Tue, Oct 27, 2009 at 4:31 PM, Agustin Lobo <[hidden email]> wrote:
True, I was using an inappropriate layer, sorry for the noise.

No problem - could the plugin check if the layer is a polygon layer?
 

You should consider that sometimes 0 are present?
(ZeroDivisionError: float division)


I agree - that should be checked and caught - I had the same error.
But I am also just a user and not the author.

Cheers,

Rainer

Agus

Carson Farmer wrote:
Hi Agus,

The 'Generate Centroids' name is simply me reusing code, I'll fix this later...
as for not being able to select anything, all I can think of is perhaps you don't
have a valid polygon layer loaded, or if you do, perhaps it doesn't have any numeric fields?

Carson


On Tue, Oct 27, 2009 at 8:13 AM, Agustin Lobo <[hidden email] <mailto:[hidden email]>> wrote:

   Hi!
   When I run plugin Cartogram Creator a window named
   "Generate Centroids"
   pops up in which I cannot select anything in field
   Input Shapefile

   (qgis 1.3.0 ubuntu jaunty from ubuntugis-unstable binaries)

   Cheers

   Agus




--
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com <http://www.carsonfarmer.com>




--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:           +27 - (0)83 9479 042
Fax:            +27 - (0)86 516 2782
Fax:            +49 - (0)721 151 334 888
email:          [hidden email]

Skype:          RMkrug
Google:         [hidden email]


_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user
Carson Farmer

Re: Cartogram creator not working

Reply Threaded More More options
Print post
Permalink
Hi guys,

No problem - could the plugin check if the layer is a polygon layer?
Yes, certainly, does it not already do this? I thought I had put this check in, will fix later today if I have time...
 
You should consider that sometimes 0 are present?
(ZeroDivisionError: float division)


I agree - that should be checked and caught - I had the same error.
But I am also just a user and not the author.
Yes, this should probably be caught, though certainly not allowed... will also add this check later...
At this stage, the plugin is really just a fun little tool for making cartograms...
In fact, it's not even really the best cartogram algorithm out there...

Carson

--
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com

_______________________________________________
Qgis-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-user