[Qgis-user] Re: plugin_installer error

2009-03-15 Thread Nik Go
By the way, I encountered this problem on version 0.9.8. I just found verion
0.9.9 herebut
encountered what seems to be the same problem.

 Couldn't load plugin plugin_installer due an error when calling its
initGui() method

Traceback (most recent call last):
  File "", line 1, in
  File
"/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
line 53, in initGui
self.action = QAction(self.getThemeIcon("plugin_installer.png"),
QCoreApplication.translate("QgsPluginInstaller","Fetch Python Plugins..."),
self.mainWindow())
  File
"/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
line 37, in getThemeIcon
myCurThemePath = QgsApplication.activeThemePath() + "/plugins/" +
theName;
TypeError: unsupported operand type(s) for +: 'QTextCodec' and 'str'

Python version:
2.5.2 (r252:60911, Oct  5 2008, 19:49:54)
[GCC 4.3.2]

Python path:
['/usr/share/qgis/python', '/home/erwin/.qgis//python/plugins',
'/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/var/lib/python-support/python2.5',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/var/lib/python-support/python2.5/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/home/erwin/.qgis/python/plugins/fTools/tools']


I'm confused as to why fTools is working fine but the plugin_installer is
not.


On Mon, Mar 16, 2009 at 10:54 AM, Nik Go  wrote:

>
> I'm using Ubuntu 64-bit Intrepid and QGIS 1.0.1 Kore.
>
> I manually installed the ftools plugin in ~/.qgis/python/plugins/ and it
> works but the plugin_installer in the same path gets me an error:
>
> Couldn't load plugin plugin_installer due an error when calling its
> initGui() method
>
> Traceback (most recent call last):
>   File "", line 1, in
>   File
> "/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
> line 43, in initGui
> self.iface.pluginMenu().insertAction(nextAction,self.action)
> TypeError: argument 1 of QWidget.insertAction() has an invalid type
>
> Python version:
> 2.5.2 (r252:60911, Oct  5 2008, 19:49:54)
> [GCC 4.3.2]
>
> Python path:
> ['/usr/share/qgis/python', '/home/erwin/.qgis//python/plugins',
> '/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
> '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
> '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages',
> '/usr/lib/python2.5/site-packages/Numeric',
> '/usr/lib/python2.5/site-packages/PIL',
> '/usr/lib/python2.5/site-packages/gst-0.10',
> '/var/lib/python-support/python2.5',
> '/usr/lib/python2.5/site-packages/gtk-2.0',
> '/var/lib/python-support/python2.5/gtk-2.0',
> '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
> '/home/erwin/.qgis/python/plugins/fTools/tools']
>
>
> How do I fix this? Why is there a double slash in there?
>
>
>
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] plugin_installer error

2009-03-15 Thread Nik Go
I'm using Ubuntu 64-bit Intrepid and QGIS 1.0.1 Kore.

I manually installed the ftools plugin in ~/.qgis/python/plugins/ and it
works but the plugin_installer in the same path gets me an error:

Couldn't load plugin plugin_installer due an error when calling its
initGui() method

Traceback (most recent call last):
  File "", line 1, in
  File
"/home/erwin/.qgis//python/plugins/plugin_installer/installer_plugin.py",
line 43, in initGui
self.iface.pluginMenu().insertAction(nextAction,self.action)
TypeError: argument 1 of QWidget.insertAction() has an invalid type

Python version:
2.5.2 (r252:60911, Oct  5 2008, 19:49:54)
[GCC 4.3.2]

Python path:
['/usr/share/qgis/python', '/home/erwin/.qgis//python/plugins',
'/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
'/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/var/lib/python-support/python2.5',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/var/lib/python-support/python2.5/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/home/erwin/.qgis/python/plugins/fTools/tools']


How do I fix this? Why is there a double slash in there?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


AW: [Qgis-user] shape file to gridded

2009-03-15 Thread Hugentobler Marco
Hi Marc

Do you mean spatial interpolation? There are several methods you can use with 
the GRASS plugin and there is also an interpolation plugin in QGIS (inverse 
distance weighting or triangle based interpolation).

Regards,
Marco


-Ursprüngliche Nachricht-
Von: qgis-user-boun...@lists.osgeo.org im Auftrag von Marc Fischer
Gesendet: So 15.03.2009 07:00
An: qgis-user@lists.osgeo.org
Betreff: [Qgis-user] shape file to gridded
 
Folks,

I have polygons in a shape file with an attribute that I'd like to  
distribute on a geographic grid and then export to netcdf or ascii.   
I've done this in Arcview using Spatial Analyst Extension.

Is there a way to do this in QGIS?

Best,

Marc
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] shape file to gridded

2009-03-15 Thread pcreso

Hi Marc

I don't think QGIS can do this natively, although via the Grass plugin, you may 
be able to, as Grass can do this sort of thing.

I think your best option is to use GMT & GDAL/OGR.

OGR can be used to export the shapefile into a variety of formats, including 
GMT. My preference is to use PostGIS for this sort of thing, as you have more 
flexibility, & generating a GMT point file is a simple SQL. Loading a shapefile 
into PostGIS can be done with ogr2ogr or with the shp2pgsql utility that comes 
with PostGIS. 

GMT can grid point data using a variety of algorithms & paramaters, & the 
native grid file format is netCDF, althiugh an export to ascii is easy enough 
as well.

http://gmt.soest.hawaii.edu
http://www gdal.org (go to the OGR page, & see the ogr2ogr utility)
http://www.postgis.org


Cheers,

 Brent Wood

--- On Sun, 3/15/09, Marc Fischer  wrote:

> From: Marc Fischer 
> Subject: [Qgis-user] shape file to gridded
> To: qgis-user@lists.osgeo.org
> Date: Sunday, March 15, 2009, 7:00 PM
> Folks,
> 
> I have polygons in a shape file with an attribute that
> I'd like to distribute on a geographic grid and then
> export to netcdf or ascii.  I've done this in Arcview
> using Spatial Analyst Extension.
> 
> Is there a way to do this in QGIS?
> 
> Best,
> 
> Marc
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] shape file to gridded

2009-03-15 Thread Andreas Neumann

Hi Marc,

QGIS doesn't have this functionaliyt out of the box - but gdal has:

See http://www.gdal.org/gdal_rasterize.html

There may exist a QGIS plugin for this purpose, but I don't know one. I 
also heard that some people are working on QGIS plugins to integrate 
gdal/ogr functionality in QGIS.


If you aren't afraid of the command-line, gdal_rasterize will work fine 
for you.


Andreas

Marc Fischer wrote:

Folks,

I have polygons in a shape file with an attribute that I'd like to 
distribute on a geographic grid and then export to netcdf or ascii.  
I've done this in Arcview using Spatial Analyst Extension.


Is there a way to do this in QGIS?

Best,

Marc
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user