Re: [Qgis-user] RE: ERROR When trying to add postgis raster

2011-08-22 Thread Andreas Forø Tollefsen
Uninstalled all QGIS and plugins and reinstalled using the OSGeo4W
installer.

Same problem.
Seems like plugins go in the home directory, while the program is in a
different folder.

New error:

An error has occured while executing Python code:

Traceback (most recent call last):
  File C:/Users/andreas/.qgis/python/plugins\wktraster\wktRasterPlugin.py,
line 83, in callAddLayer
from DlgAddRasterLayer import DlgAddRasterLayer
  File C:/OSGeo4W/apps/qgis/./python\qgis\utils.py, line 283, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
C:/Users/andreas/.qgis/python/plugins\wktraster\DlgAddRasterLayer.py, line
28, in
import conn
  File C:/OSGeo4W/apps/qgis/./python\qgis\utils.py, line 283, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File C:/Users/andreas/.qgis/python/plugins\wktraster\conn.py, line 78
except DbError as e:
^
SyntaxError: invalid syntax

Python version:
2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)]


QGIS version:
1.7.0-Wroclaw Wroclaw, 63ecdd7

Python path: ['C:/OSGeo4W/apps/qgis/./python',
'C:/Users/andreas/.qgis/python', 'C:/Users/andreas/.qgis/python/plugins',
'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\Program Files
(x86)\\ArcGIS\\bin', 'C:\\Program Files (x86)\\PostgreSQL\\8.4\\bin',
'C:\\Windows\\system32\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
'C:\\OSGeo4W\\apps\\Python25\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin',
'C:\\OSGeo4W\\apps\\Python25',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\OSGeo4W\\apps\\qgis\\python\\plugins\\fTools\\tools']
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Announcement QGIS WPS Client major upgrade

2011-08-22 Thread Luca Casagrande

Horst Düster wrote:
 
 Today I published a major upgrade of the QGIS WPS Plugin. Now the client 
 is running as a dockwidget. Processes now are running as asynchronous 
 processes. As the result the GUI is not freezed and you can go on with 
 your work during the process is running. Additionally you have the 
 option to kill a running process.
 
 For testing purpose I set up some WPS based on PyWPS. Please give it a 
 try. At the moment the server has some limitations:
 - upload is limited to 3Mb
 - max 3 simultaniously running processes.
 
 The process URL:  http://www.kappasys.ch/pywps/pywps.cgi
 
 All the best
 Horst
 
 -- 
 Dr. Horst Düster
 Burchacker 6
 CH-4556 Aeschi
 
 Tel.: +41 (0) 62 961 03 74
 Mobil: +41 (0) 76 408 51 06
 eMail: horst.dues...@kappasys.ch
 skype: horstduester
 Web: www.kappasys.ch
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 
Hello Horst and thanks for this great news.
I tested the demo server using this data [1], but every process gives me an
error of 'not well-formed (invalid token): line 7, column 6716.

All the best
Luca


[1]http://dl.dropbox.com/u/348430/test.tar.gz

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Announcement-QGIS-WPS-Client-major-upgrade-tp6709261p6710800.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] error message: Couldn't load PyQGIS. Python support will be disabled

2011-08-22 Thread Martin Dobias
On Sun, Aug 21, 2011 at 11:01 AM, zehari zehari mridua...@gmail.com wrote:
  dear all,
  is there any among you who can help me, I get an error message like
 the following:

 Couldn't load PyQGIS.
 Python support will be disabled.

 Traceback (most recent call last):
  File , line 1, in
 RuntimeError: the PyQt4.QtCore module is version 1 but the qgis.core
 module requires version -1

 Python version:
 2.7.2+ (default, Aug 16 2011, 07:56:26)
 [GCC 4.6.1]

 QGIS version:
 1.8.0-Trunk 'Trunk', exported

 Python path:
 ['/python', '/home/zehari/.qgis/python',

Hi

the invalid python path suggest there is some clash with the
libraries/modules. Please make sure to completely clean up your qgis
installation and try again. This could be a result of some old c++
plugins in the (prefix)/lib/qgis directory or something similar - have
you done any updates of Qt4, PyQt4 or sip recently?

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


Re: [Qgis-user] Re: Announcement QGIS WPS Client major upgrade

2011-08-22 Thread Horst Düster

Hi Luca

I tested your data and it seems to be an encoding problem. When I save 
the point shape-layer as a new layer with encoding latin1 it works fine 
for me.


Ill have a look at the plugin code.

Regards
Horst

Am 22.08.2011 11:41, schrieb Luca Casagrande:


Horst Düster wrote:


Today I published a major upgrade of the QGIS WPS Plugin. Now the client
is running as a dockwidget. Processes now are running as asynchronous
processes. As the result the GUI is not freezed and you can go on with
your work during the process is running. Additionally you have the
option to kill a running process.

For testing purpose I set up some WPS based on PyWPS. Please give it a
try. At the moment the server has some limitations:
- upload is limited to 3Mb
- max 3 simultaniously running processes.

The process URL:  http://www.kappasys.ch/pywps/pywps.cgi

All the best
Horst

--
Dr. Horst Düster
Burchacker 6
CH-4556 Aeschi

Tel.: +41 (0) 62 961 03 74
Mobil: +41 (0) 76 408 51 06
eMail: horst.dues...@kappasys.ch
skype: horstduester
Web: www.kappasys.ch
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Hello Horst and thanks for this great news.
I tested the demo server using this data [1], but every process gives me an
error of 'not well-formed (invalid token): line 7, column 6716.

All the best
Luca


[1]http://dl.dropbox.com/u/348430/test.tar.gz

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Announcement-QGIS-WPS-Client-major-upgrade-tp6709261p6710800.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


--
Dr. Horst Düster
Burchacker 6
CH-4556 Aeschi

Tel.: +41 (0) 62 961 03 74
Mobil: +41 (0) 76 408 51 06
eMail: horst.dues...@kappasys.ch
skype: horstduester
Web: www.kappasys.ch
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Testing the CSW plugin

2011-08-22 Thread Alexander Bruy
Hi Andrea,

2011/8/21 aperi2007 aperi2...@gmail.com:
 Hi,
 I'm study-ing the CSW plugin (from GIS-Lab repository).

 To do this I'm using as csw server an istance of Geonetwork .

 It seem to work but seem don't enable never the button Add WMS.
The Add WMS button enabled only for records with liveData type.

 In the plugin there is some servers available as default,
 and only one of they GeoSpatial One Stop server is capable to enable the
 Add WMS button with its metadata.
 I study the response from this server but it seem to be a bit different from
 that of a Geonetwork server.
 So I cannot reproduce it with GeoNetwork.
May be there are no records with liveData type in your search or GeoNetwork
server returns a bit non-standard response. I'll try to find time and
debug this.

 There is some information available on this plugin ?
There is a short description here http://gis-lab.info/qa/cswclient-eng.html.
Hope this helps.

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


Re: [Qgis-user] Announcing Metatools plugin

2011-08-22 Thread Alexander Bruy
Hi, Bernhard

2011/8/22  bernhard.stro...@jena.de:
 Dear Alexander,

 thank you for your work. As there is no English description yet I need to
 ask directly: Can the plugin be used with PostGIS data, or (as far as I
 understand) only with file-based datasets? Any chance loaded PostGIS data
 can be described in the future?
There is a development branch with FGDC and PostGIS support. We plan to merge
it into trunk soon.

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


[Qgis-user] Re: Join attributes in 1.7

2011-08-22 Thread magerlin
Hi

I am trying to use this method, but all columns/attributes in my csv file
appears as text so I can not use them for instance for scaling (in New
symbology).

Is there any way to control how Qgis interpret the data when adding a csv
file?

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Join-attributes-in-1-7-tp6354019p6711550.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Join attributes in 1.7

2011-08-22 Thread Anita Graser
Hi,

You'll have to create a .csvt file. More info:
http://underdark.wordpress.com/2011/03/07/how-to-specify-data-types-of-csv-columns-for-use-in-qgis/

Anita


On Mon, Aug 22, 2011 at 3:26 PM, magerlin m...@ramboll.dk wrote:

 Hi

 I am trying to use this method, but all columns/attributes in my csv file
 appears as text so I can not use them for instance for scaling (in New
 symbology).

 Is there any way to control how Qgis interpret the data when adding a csv
 file?

 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/Join-attributes-in-1-7-tp6354019p6711550.html
 Sent from the qgis-user mailing list archive at Nabble.com.
 ___
 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


[Qgis-user] Re: Testing the CSW plugin

2011-08-22 Thread Andrea Peri
Firstly of all,
my thx
for this very interesting plugin.

 There is some information available on this plugin ?
There is a short description here http://gis-lab.info/qa/cswclient-eng.html
.
Hope this helps.

thx for info.
I read the description and analyze better the interoperability with the CSW
of GeoNetwork.

The Add WMS button enabled only for records with liveData type.

Yes, this is clearly readable in your docs.
Unfortunately, GeoNetwork's CSW populate the type of the csw response
using the
value from the tag hierarchy-level.
This value has a set of availables values, but there isn't the liveData
value as optional value.
So I'm not able to produce a good metadata able to activate this very
interesting function.

From a quick search I guess the liveData is available only in the
esri-systems.
So perhaps is an enhancement of the esri-profile.

In the ISO19115/19139 specs for the tag HierarchyLevel (for the csw-type
tag) could be the service value.

However I like better understand why is need to have only the metadata
liveData as WMSadd-able.
I guess, instead, that every metadata having an URL and a protocol named
OGC-WMS could be a good candidate to have the AddWMS button available.

Regards,

Andrea Peri.

-- 
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Testing the CSW plugin

2011-08-22 Thread Alexander Bruy
2011/8/22 Andrea Peri aperi2...@gmail.com:
The Add WMS button enabled only for records with liveData type.

 Yes, this is clearly readable in your docs.
 Unfortunately, GeoNetwork's CSW populate the type of the csw response
 using the
 value from the tag hierarchy-level.
 This value has a set of availables values, but there isn't the liveData
 value as optional value.
 So I'm not able to produce a good metadata able to activate this very
 interesting function.

 From a quick search I guess the liveData is available only in the
 esri-systems.
 So perhaps is an enhancement of the esri-profile.
May be you're right. In this case it is possible to enable this button with
other type values.

 In the ISO19115/19139 specs for the tag HierarchyLevel (for the csw-type
 tag) could be the service value.
Ok, I'll update plugin to handle also service type.

 However I like better understand why is need to have only the metadata
 liveData as WMSadd-able.
 I guess, instead, that every metadata having an URL and a protocol named
 OGC-WMS could be a good candidate to have the AddWMS button available.
May be I'm wrong, but seems that there is no strict requirements which
tag in metadata
should specify is this WMS resource or not, also different servers
store URL to this
resource can be stored in different tags.

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


Re: [Qgis-user] Re: Testing the CSW plugin

2011-08-22 Thread aperi2007

 May be you're right. In this case it is possible to enable this
button with
 other type values.

should be great :)

 May be I'm wrong, but seems that there is no strict requirements which
 tag in metadata
 should specify is this WMS resource or not, also different servers
 store URL to this
 resource can be stored in different tags.

You are perfectly right.
The metadata ISO19115 allow many combinations.
But however also a dataset or series type (hierarchylevel)
could be have a WMS URL infact a simple metadata
could be of dataset or series type (hierarchy-level) and
give the information for a WMS/WFS/Download in the
section
distributionInfo - transferOption

I guess that in the protocol field there is a OGC-WMS string more 
probably the URL (if available) is forward a WMS server.


But of course this is only one of many availables configurations.

In GN, for example, there also the possibility to link a dataset 
metadata to a service metadata.
Retrieving so the info on the WMS url (from service) and the idlayer 
(from dataset).
This combination will allow to add not only a WMS to wms list, but it 
allow also to add directly a wms layer to the canvas.


But of course this is a very special and complex configuration.


Il 22/08/2011 17:12, Alexander Bruy ha scritto:

2011/8/22 Andrea Periaperi2...@gmail.com:

The Add WMS button enabled only for records with liveData type.


Yes, this is clearly readable in your docs.
Unfortunately, GeoNetwork's CSW populate the type of the csw response
using the
value from the tag hierarchy-level.
This value has a set of availables values, but there isn't the liveData
value as optional value.
So I'm not able to produce a good metadata able to activate this very
interesting function.

 From a quick search I guess the liveData is available only in the
esri-systems.
So perhaps is an enhancement of the esri-profile.

May be you're right. In this case it is possible to enable this button with
other type values.


In the ISO19115/19139 specs for the tag HierarchyLevel (for the csw-type
tag) could be the service value.

Ok, I'll update plugin to handle also service type.


However I like better understand why is need to have only the metadata
liveData as WMSadd-able.
I guess, instead, that every metadata having an URL and a protocol named
OGC-WMS could be a good candidate to have the AddWMS button available.

May be I'm wrong, but seems that there is no strict requirements which
tag in metadata
should specify is this WMS resource or not, also different servers
store URL to this
resource can be stored in different tags.



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


[Qgis-user] Re: python error in opening

2011-08-22 Thread dpan
Hi, 

I'm getting the same error after having installed the latest packages in
Snow Leopard:
http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png
 

...and wonder if anyone can help.

Here is the full error text:
***
Couldn't load plugin GdalTools due an error when calling its classFactory()
method

Traceback (most recent call last):
  File
/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
line 138, in startPlugin
plugins[packageName] = package.classFactory(iface)
  File
/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py,
line 32, in classFactory
from GdalTools import GdalTools
  File
/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
line 283, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py,
line 39, in 
raise ImportError( error_str )
ImportError: No module named _gdal

Python version:
2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)]


QGIS version:
1.8.0-Trunk Trunk, 7f611e9

Python path:
['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',
'/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',
'/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',
'/Library/Frameworks/SQLite3.framework/Versions/3/Python',
'/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',
'/Library/Python/2.6/site-packages/numpy-override',
'/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',
'/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',
'/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
'/Library/Python/2.6/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
'/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
'/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']

*

Thanks!
Dave

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python error in opening

2011-08-22 Thread William Kyngesburye
It worked when I tested it, though I may not have updated GDAL (it's just a 
repackaging).  The only odd thing I see is that it looks like the old gdal.pth 
is left behind, which points to the old location I had the gdal-python stuff.  
Maybe this is confusing python (there's nothing there).  Try deleteing 

/Library/Python/2.6/site-packages/gdal.pth

(but not gdal-py2.6.pth).  ...Just a wild guess really.

On Aug 22, 2011, at 10:57 AM, dpan wrote:

 Hi, 
 
 I'm getting the same error after having installed the latest packages in
 Snow Leopard:
 http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png
  
 
 ...and wonder if anyone can help.
 
 Here is the full error text:
 ***
 Couldn't load plugin GdalTools due an error when calling its classFactory()
 method
 
 Traceback (most recent call last):
  File
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 138, in startPlugin
plugins[packageName] = package.classFactory(iface)
  File
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py,
 line 32, in classFactory
from GdalTools import GdalTools
  File
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 283, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py,
 line 39, in 
raise ImportError( error_str )
 ImportError: No module named _gdal
 
 Python version:
 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
 [GCC 4.2.1 (Apple Inc. build 5646)]
 
 
 QGIS version:
 1.8.0-Trunk Trunk, 7f611e9
 
 Python path:
 ['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',
 '/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',
 '/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',
 '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
 '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',
 '/Library/Python/2.6/site-packages/numpy-override',
 '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',
 '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',
 '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
 '/Library/Python/2.6/site-packages',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
 '/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']
 
 *
 
 Thanks!
 Dave
 
 --
 View this message in context: 
 http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html
 Sent from the qgis-user mailing list archive at Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

I ache, therefore I am.  Or in my case - I am, therefore I ache.

- Marvin


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


Re: [Qgis-user] python error in opening

2011-08-22 Thread Dave Panitz
That worked.
Many thanks William!
-Dave

On Mon, Aug 22, 2011 at 10:27 AM, William Kyngesburye wokl...@kyngchaos.com
 wrote:

 It worked when I tested it, though I may not have updated GDAL (it's just a
 repackaging).  The only odd thing I see is that it looks like the old
 gdal.pth is left behind, which points to the old location I had the
 gdal-python stuff.  Maybe this is confusing python (there's nothing there).
  Try deleteing

 /Library/Python/2.6/site-packages/gdal.pth

 (but not gdal-py2.6.pth).  ...Just a wild guess really.

 On Aug 22, 2011, at 10:57 AM, dpan wrote:

  Hi,
 
  I'm getting the same error after having installed the latest packages in
  Snow Leopard:
 
 http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png
 
  ...and wonder if anyone can help.
 
  Here is the full error text:
  ***
  Couldn't load plugin GdalTools due an error when calling its
 classFactory()
  method
 
  Traceback (most recent call last):
   File
 
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
  line 138, in startPlugin
 plugins[packageName] = package.classFactory(iface)
   File
 
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py,
  line 32, in classFactory
 from GdalTools import GdalTools
   File
 
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
  line 283, in _import
 mod = _builtin_import(name, globals, locals, fromlist, level)
   File
 
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py,
  line 39, in
 raise ImportError( error_str )
  ImportError: No module named _gdal
 
  Python version:
  2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
  [GCC 4.2.1 (Apple Inc. build 5646)]
 
 
  QGIS version:
  1.8.0-Trunk Trunk, 7f611e9
 
  Python path:
  ['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',
  '/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',
  '/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',
  '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
  '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',
  '/Library/Python/2.6/site-packages/numpy-override',
  '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',
 
 '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',
  '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
  '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
  '/Library/Python/2.6/site-packages',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
 
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
 
 '/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']
 
  *
 
  Thanks!
  Dave
 
  --
  View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html
  Sent from the qgis-user mailing list archive at Nabble.com.
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user

 -
 William Kyngesburye kyngchaos*at*kyngchaos*dot*com
 http://www.kyngchaos.com/

 I ache, therefore I am.  Or in my case - I am, therefore I ache.

 - Marvin



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


[Qgis-user] New draft Ubuntu tutorial on QGIS server

2011-08-22 Thread mayeul . kauffmann
Hi,
I've put a full Ubuntu QGIS Server Tutorial here:

http://www.qgis.org/wiki/Talk:QGIS_Server_Tutorial

The approach is somehow different from what I saw here and there, especially as 
I do not use the pre-compiled packages (which are in theory much simpler to 
use).
After all the difficulties I encountered, I'm still surprised that my own 
procedure works on 2 machines! Maybe it would be great if this could be somehow 
merged with other existing documentation, but I have little experience with the 
QGIS-server product and fastcgi, and I do not know if the procedure I propose 
work on other machines and/or other Linux distributions.

I have put it in the talk part because there is some overlap with the main page 
and I do not feel to master the subject enough to modify the main page. For the 
same reason, I already used the talk page 3 months ago here: 
http://www.qgis.org/wiki/Talk:Building_QGIS_from_Source
But this did not trigger the discussion I hoped... that's why I'm posting here.

Hope this helps someone and that someone could help!

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


Re: [Qgis-user] python error in opening

2011-08-22 Thread Dave Panitz
OK, will do - thanks again.
D

On Mon, Aug 22, 2011 at 11:05 AM, William Kyngesburye wokl...@kyngchaos.com
 wrote:

 OK, good to know, I'll fix the framework installers soon.  Another one you
 should remove: sqlite.pth (leaving sqlite-py2.6.pth).

 On Aug 22, 2011, at 11:38 AM, Dave Panitz wrote:

  That worked.
  Many thanks William!
  -Dave
 
  On Mon, Aug 22, 2011 at 10:27 AM, William Kyngesburye 
 wokl...@kyngchaos.com wrote:
  It worked when I tested it, though I may not have updated GDAL (it's just
 a repackaging).  The only odd thing I see is that it looks like the old
 gdal.pth is left behind, which points to the old location I had the
 gdal-python stuff.  Maybe this is confusing python (there's nothing there).
  Try deleteing
 
  /Library/Python/2.6/site-packages/gdal.pth
 
  (but not gdal-py2.6.pth).  ...Just a wild guess really.
 
  On Aug 22, 2011, at 10:57 AM, dpan wrote:
 
   Hi,
  
   I'm getting the same error after having installed the latest packages
 in
   Snow Leopard:
  
 http://osgeo-org.1803224.n2.nabble.com/file/n6712115/Screen_shot_2011-08-22_at_9.54.29_AM.png
  
   ...and wonder if anyone can help.
  
   Here is the full error text:
   ***
   Couldn't load plugin GdalTools due an error when calling its
 classFactory()
   method
  
   Traceback (most recent call last):
File
  
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
   line 138, in startPlugin
  plugins[packageName] = package.classFactory(iface)
File
  
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/__init__.py,
   line 32, in classFactory
  from GdalTools import GdalTools
File
  
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/qgis/utils.py,
   line 283, in _import
  mod = _builtin_import(name, globals, locals, fromlist, level)
File
  
 /Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins/GdalTools/GdalTools.py,
   line 39, in
  raise ImportError( error_str )
   ImportError: No module named _gdal
  
   Python version:
   2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
   [GCC 4.2.1 (Apple Inc. build 5646)]
  
  
   QGIS version:
   1.8.0-Trunk Trunk, 7f611e9
  
   Python path:
   ['/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python',
   '/Users/dpanitz/.qgis/python', '/Users/dpanitz/.qgis/python/plugins',
  
 '/Applications/QGIS-1.8.app/Contents/MacOS/../Resources/python/plugins',
   '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
   '/Library/Frameworks/SQLite3.framework/Versions/3/Python/2.6',
   '/Library/Python/2.6/site-packages/numpy-override',
   '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/site-packages',
  
 '/Library/Frameworks/GDAL.framework/Versions/1.8/Python/2.6/site-packages',
   '/Library/Frameworks/cairo.framework/Versions/1/Python/2.6',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload',
   '/Library/Python/2.6/site-packages',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC',
  
 '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode',
  
 '/Applications/QGIS-1.8.app/Contents/Resources/python/plugins/fTools/tools']
  
   *
  
   Thanks!
   Dave
  
   --
   View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/python-error-in-opening-tp6456668p6712115.html
   Sent from the qgis-user mailing list archive at Nabble.com.
   ___
   Qgis-user mailing list
   Qgis-user@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/qgis-user
 
  -
  William Kyngesburye kyngchaos*at*kyngchaos*dot*com
  http://www.kyngchaos.com/
 
  I ache, therefore I am.  Or in my case - I am, therefore I ache.
 
  - Marvin
 
 
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user

 -
 William Kyngesburye kyngchaos*at*kyngchaos*dot*com
 http://www.kyngchaos.com/

 Oh, look, I seem to have fallen down a deep, dark hole.  Now what does
 that remind me of?  Ah, yes - life.

 - Marvin



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org

[Qgis-user] Table manager: cannot delete several fields at once

2011-08-22 Thread Agustin Lobo
Even if several fields can be selected, after clicking on Delete
only the first one is deleted (actually the user is prompted on making
sure the first selected field has to be deleted). I understand this is a bug,
am I wrong?

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


Re: [Qgis-user] New draft Ubuntu tutorial on QGIS server

2011-08-22 Thread Pirmin Kalberer
Hi Mayeul,

Am Montag, 22. August 2011, 18.49:55 schrieb mayeul.kauffm...@free.fr:
 I've put a full Ubuntu QGIS Server Tutorial here:
 
 http://www.qgis.org/wiki/Talk:QGIS_Server_Tutorial
 
 The approach is somehow different from what I saw here and there,
 especially as I do not use the pre-compiled packages (which are in theory
 much simpler to use). After all the difficulties I encountered, I'm still
 surprised that my own procedure works on 2 machines! Maybe it would be
 great if this could be somehow merged with other existing documentation,
 but I have little experience with the QGIS-server product and fastcgi, and
 I do not know if the procedure I propose work on other machines and/or
 other Linux distributions.
 
 I have put it in the talk part because there is some overlap with the main
 page and I do not feel to master the subject enough to modify the main
 page. For the same reason, I already used the talk page 3 months ago here:
 http://www.qgis.org/wiki/Talk:Building_QGIS_from_Source
 But this did not trigger the discussion I hoped... that's why I'm posting
 here.

You're using mod_fastcgi and not mod_fcgid as the original tutorials do. 
mod_fcgid comes with a working configuration. I installed QGIS server at least 
on half a dozen machines with one apt-get install. If you find a problem with 
the precompiled packages we should fix them.

Pirmin

-- 
Pirmin Kalberer
Sourcepole  -  Linux  Open Source Solutions
http://www.sourcepole.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Bugfix for wktraster 0.5.1

2011-08-22 Thread Maurício de Paulo
Hi everyone,
I'd like to thank everyone that tested wktraster 0.5 and replied with the
bugs. I could not reproduce it until today. As far as I've tested it's more
stable now as this version aimed to improve exception handling.
I don't think that I announced it but there is a wktrasterplugin project on
google code http://code.google.com/p/wktrasterplugin/ where everyone can
send tickets and see the current svn.
Again thanks to everyone that tested. I hope that the plugin gets better
with every line of code written in order to help everyone solve their
problems.

Some curiosities:
this version also included tile appending to an existing table. It's very
unstable with pyramids but I've tested with non overviewed raster data.
I've also tested the creation of sql-made raster tables. Seems to work fine.
I haven't tested on views yet, but there should be no reason to crash.
Soon i'm going to implement a change to not list the overview as raster
tables. They are, indeed, but they seem to not carry much information. I
have to test it again. Does anyone have any point in favor of listing the
overviews?

Best regards,

-- 
Mauricio de Paulo
Engenheiro Cartografo
MapeandoOBrasil http://mapeandoobrasil.blogspot.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] New draft Ubuntu tutorial on QGIS server

2011-08-22 Thread Noli Sicad
 I have put it in the talk part because there is some overlap with the main
 page and I do not feel to master the subject enough to modify the main
 page. For the same reason, I already used the talk page 3 months ago here:
 http://www.qgis.org/wiki/Talk:Building_QGIS_from_Source
 But this did not trigger the discussion I hoped... that's why I'm posting
 here.

 You're using mod_fastcgi and not mod_fcgid as the original tutorials do.
 mod_fcgid comes with a working configuration. I installed QGIS server at
 least
 on half a dozen machines with one apt-get install. If you find a problem
 with
 the precompiled packages we should fix them.

I think it would be good to include these links (below) to complete
the whole picture.

QGIS Serving Testing
http://linfiniti.com/2010/08/qgis-mapserver-a-wms-server-for-the-masses/

Using OpenLayers with QGIS server:
http://live.osgeo.org/en/quickstart/openlayers_quickstart.html

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