[Qgis-user] Announcing ProfileFromLine plugin

Ricardo Filipe Soares Garcia da ricardo.garcia.silva at gmail.com
Sat Aug 14 08:57:39 PDT 2010


Hello Benoit and list

I regret to inform you that, after a more careful inspection of the
available libs offered by the osgeo4w installer, I realised that users
that are using osgeo4w probably can't use my plugin (yet).

The reason for this is the version of GEOS and Shapely libs that are
packaged by the osgeo4w folks are a bit older than what the plugin
requires. I am sorry for this inconvenience. I'll open a ticket at the
osgeo4w trac to ask for packaging of newer libs. If you feel that you
absolutely must have this feature, try using GRASS or SAGA GIS as an
alternative.

Thank you for your feedback

On Sat, Aug 14, 2010 at 4:16 PM, Benoit de Cabissole <benoit at exigesa.com> wrote:
> Hello again Ricardo,
>
> You could be right!
>
> After installing the latest version from the plugin repo I got the following error:
>
> Couldn't load plugin ProfileFromLine due an error when calling its classFactory() method
>
> Traceback (most recent call last):
>  File "C:/PROGRAMS/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 138, in startPlugin
>    plugins[packageName] = package.classFactory(iface)
>  File "C:/Documents and Settings/Benoit/.qgis/python/plugins\ProfileFromLine\__init__.py", line 30, in classFactory
>    from ProfileFromLine import ProfileFromLine
>  File "C:/PROGRAMS/OSGeo4W/apps/qgis-dev/./python\qgis\utils.py", line 279, in _import
>    mod = _builtin_import(name, globals, locals, fromlist, level)
>  File "C:/Documents and Settings/Benoit/.qgis/python/plugins\ProfileFromLine\ProfileFromLine.py", line 25, in
>    from shapely.geos import geos_capi_version
> ImportError: cannot import name geos_capi_version
>
> Python version:
> 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
>
>
> QGIS version:
> 1.6.0-Trunk Trunk, 14077M
>
>
> I'm running QGIS 1.6.14077M from OSGeo4W on Windows XP.
> It then seems that the OSGeo4W Shapely libs (1.0.14-1) are quite old... And I do not know how to compile packages for OSGeo4W :-(
>
>
> Thanks for the quick answer.
>
> Cheers,
> Benoit
>
>
>
>> -----Original Message-----
>> From: Ricardo Filipe Soares Garcia da
>> [mailto:ricardo.garcia.silva at gmail.com]
>> Sent: Saturday, 14 August 2010 16:55
>> To: benoit at exigesa.com
>> Cc: qgis-user
>> Subject: Re: [Qgis-user] Announcing ProfileFromLine plugin
>>
>>
>> Hi Benoit
>>
>> > While testing it I've got the following error:
>>
>> ...
>>
>> > Any idea why?
>>
>> I think you probably have an older version of the GEOS library. Please
>> open a python console (it can be the Qgis python console) and type:
>>
>> import shapely.geos
>> shapely.geos.geos_capi_version
>>
>> it should return a tuple with version 1.6.0 or higher (on my system it
>> reads 1.6.2). Could this be the problem? What OS are you using?
>> I added a check for this variable that will (hopefully) display an
>> informative error message to the user.
>>
>> > Another thing, could you tell what is the unit of Sampling
>> interval you are using? Is it in the project units (m, feet, ...)
>> or is it in another unit (the default, 4.00, seems very small to
>> be in metres, but it would depend on the type of project, I
>> suppose)? Also, the sampling interval is limited to 99.99, again,
>> if in the project units, this is a serious limitation. Could you
>> use an 'open' sampling interval?
>>
>> Well, the unit for the sampling interval is actually the layer's own
>> units according to its own reference system and not the project's. The
>> default value of 4,00 is indeed in meters, because the original
>> project for which I designed this plugin is dealing with lines that
>> are 60m long or so. Anyway, I changed the 'sampling interval' spinbox
>> to accept values in the range 0.01 - 1000000. I'll try to come up with
>> a nicer solution, but in the mean time I hope it will work for people
>> that are using longer line lengths.
>>
>> I uploaded a newer version (0.3) to the repository so please test it
>> out and see if it works for you.
>> Thanks for testing it out :)
>>
>>
>> --
>> ___________________________ ___ __
>> Ricardo Garcia Silva
>>
>
>



-- 
___________________________ ___ __
Ricardo Garcia Silva



More information about the Qgis-user mailing list