Quantcast

profile from line: 2 issues

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

profile from line: 2 issues

Paolo Cavallini
Hi all.
A couple of issues we have encountered:

- when the line hits NULLs, we get an error:

Traceback (most recent call last):
   File "C:\Documents and Settings\eleauser/.qgis/python/plugins\profilefromline\ProfileFromLineDialog.py", line 54, in accept
     self.ui.progressBar)
   File "C:\Documents and Settings\eleauser/.qgis/python/plugins\profilefromline\ProfileFromLine.py", line 153, in create_profile_layer
     stepInterval = int(remainingSteps / numberOfLines)
ZeroDivisionError: long division or modulo by zero

- it is important (and does not look too difficult) to add a plot of the profile, which is what users want.

Should I open tickets?
Thanks.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: profile from line: 2 issues

Paolo Cavallini
Il 07/02/2012 13:40, Paolo Cavallini ha scritto:

> Hi all.
> A couple of issues we have encountered:
>
> - when the line hits NULLs, we get an error:
>
> Traceback (most recent call last):
>   File "C:\Documents and
> Settings\eleauser/.qgis/python/plugins\profilefromline\ProfileFromLineDialog.py",
> line 54, in accept
>     self.ui.progressBar)
>   File "C:\Documents and
> Settings\eleauser/.qgis/python/plugins\profilefromline\ProfileFromLine.py",
> line 153, in create_profile_layer
>     stepInterval = int(remainingSteps / numberOfLines)
> ZeroDivisionError: long division or modulo by zero
>
> - it is important (and does not look too difficult) to add a plot of
> the profile, which is what users want.
>
One more:

Traceback (most recent call last):
   File "C:\Documents and Settings\eleauser/.
qgis/python/plugins\profiletool\doProfile.py", line 244, in selectLayer1
     self.readData(0)
   File "C:\Documents and Settings\eleauser/.
qgis/python/plugins\profiletool\doProfile.py", line 152, in readData
     res = self.profiles[nr]["layer"].rasterUnitsPerPixel() * 1.2    # a * 1.2
is a "mean" dimiesion of pixel on any direction
AttributeError: 'QgsVectorLayer' object has no attribute
'rasterUnitsPerPixel'




--
Paolo Cavallini
See: http://www.faunalia.it/pc

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: profile from line: 2 issues

Ricardo Filipe Soares Garcia da
Hi Paolo

Thanks for your reports, I am the author of this plugin. I'll be
looking into the mentioned issues in a short while.

I am using hub.qgis.org for this plugin, so feel free to open new
tickets there in the future. For these issues I will do it myself.

>> - it is important (and does not look too difficult) to add a plot of the
>> profile, which is what users want.

This is a new feature request. I guess I can try to add this feature,
although the really cool thing would be a shiny new plugin for
plotting all kinds of charts using vector and raster values - any
takers? I've been wanting to do something like this for ages (see my
infant chartMaker plugin for a start) but haven't been able to focus
on it.

Best regards


--
___________________________ ___ __
Ricardo Garcia Silva
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: profile from line: 2 issues

Ricardo Filipe Soares Garcia da
In reply to this post by Paolo Cavallini
Hi Paolo

> One more:
>
>
> Traceback (most recent call last):
>  File "C:\Documents and Settings\eleauser/.
> qgis/python/plugins\profiletool\doProfile.py", line 244, in selectLayer1
>    self.readData(0)
>
>  File "C:\Documents and Settings\eleauser/.
> qgis/python/plugins\profiletool\doProfile.py", line 152, in readData
>    res = self.profiles[nr]["layer"].rasterUnitsPerPixel() * 1.2    # a * 1.2
> is a "mean" dimiesion of pixel on any direction
> AttributeError: 'QgsVectorLayer' object has no attribute
> 'rasterUnitsPerPixel'

This crash is refering to the 'Profile tool' plugin, not 'Profile from line'.

I guess the name of my plugin is kind of unfortunate... it could
probably be changed to something like 'sample along line'...

Best regards


--
___________________________ ___ __
Ricardo Garcia Silva
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: profile from line: 2 issues

Paolo Cavallini
In reply to this post by Ricardo Filipe Soares Garcia da
Il 07/02/2012 16:00, Ricardo Filipe Soares Garcia da ha scritto:
> Hi Paolo
>
> Thanks for your reports, I am the author of this plugin. I'll be
> looking into the mentioned issues in a short while.
>
> I am using hub.qgis.org for this plugin, so feel free to open new
> tickets there in the future. For these issues I will do it myself.
Thanks a lot Ricardo.
If you prefer, I can open tickets for these issues.
All the best.

--
Paolo Cavallini
See: http://www.faunalia.it/pc

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