<br><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 4:31 PM, Agustin Lobo <span dir="ltr"><<a href="mailto:alobolistas@gmail.com">alobolistas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
True, I was using an inappropriate layer, sorry for the noise.<br></blockquote><div><br>No problem - could the plugin check if the layer is a polygon layer?<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
You should consider that sometimes 0 are present?<br>
(ZeroDivisionError: float division)<br>
<br></blockquote><div><br>I agree - that should be checked and caught - I had the same error. <br>But I am also just a user and not the author.<br><br>Cheers,<br><br>Rainer <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Agus<br>
<br>
Carson Farmer wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Agus,<br>
<br>
The 'Generate Centroids' name is simply me reusing code, I'll fix this later...<br>
as for not being able to select anything, all I can think of is perhaps you don't<br>
have a valid polygon layer loaded, or if you do, perhaps it doesn't have any numeric fields?<br>
<br>
Carson<div class="im"><br>
<br>
On Tue, Oct 27, 2009 at 8:13 AM, Agustin Lobo <<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a> <mailto:<a href="mailto:alobolistas@gmail.com" target="_blank">alobolistas@gmail.com</a>>> wrote:<br>

<br>
    Hi!<br>
    When I run plugin Cartogram Creator a window named<br>
    "Generate Centroids"<br>
    pops up in which I cannot select anything in field<br>
    Input Shapefile<br>
<br>
    (qgis 1.3.0 ubuntu jaunty from ubuntugis-unstable binaries)<br>
<br>
    Cheers<br>
<br>
    Agus<br>
<br>
<br>
<br>
<br></div>
-- <br>
Carson Farmer<br>
National Centre for Geocomputation<br>
John Hume Building,<br>
National University of Ireland, Maynooth,<br>
Maynooth,<br>
Co. Kildare,<br>
Ireland.<br>
<a href="http://www.carsonfarmer.com" target="_blank">www.carsonfarmer.com</a> <<a href="http://www.carsonfarmer.com" target="_blank">http://www.carsonfarmer.com</a>><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)<br><br>Centre of Excellence for Invasion Biology<br>Natural Sciences Building<br>
Office Suite 2039<br>Stellenbosch University<br>Main Campus, Merriman Avenue<br>Stellenbosch<br>South Africa<br><br>Cell:           +27 - (0)83 9479 042<br>Fax:            +27 - (0)86 516 2782<br>Fax:            +49 - (0)721 151 334 888<br>
email:          <a href="mailto:Rainer@krugs.de">Rainer@krugs.de</a><br><br>Skype:          RMkrug<br>Google:         <a href="mailto:R.M.Krug@gmail.com">R.M.Krug@gmail.com</a><br><br>