Re: [Qgis-user] Stratified stats of Raster map by vector map in QGIS?

2008-10-28 Thread Agustin Lobo

Carson,

Sorry I did not answer to this.

Yes, this would be a workaround (just have to figure out how to get
the centers of the pixels, probably an R function will be the best),
but just in the case pixels are a lot smaller than polygons,
which is not always the case.

Note that many thematic maps are developed
from RS images in which pixels are (at least, should be) very small 
compared to the
resulting polygons (which are produced either by digitizing and 
interpretation, as the
Habitat maps in Europe, which are developed from 1:25M and 1:5M 
orthoimages with sub-meter resolution; or by (best segment-based) 
classification and subsequent raster to vector conversion).


But an important additional use of RS imagery
is to actually get information from other sources of imagery for each 
type of polygon, and these RS images can be much coarser than the

images used to generate the polygons. For example, I use time series
of NDVI, which are 300m to 1000m resolution only, to derive phenologic
attributes. In this application, you get that the boundaries
of polygons intersecting pixels very often, and the program must provide 
the user the choice of (i) weighted mean, (ii) ignoring any not fully 
included pixel

or (iii) count any partially included pixel as if it were fully included.

The application of transferring information from raster images to vector
thematic maps is crucial for RS applications in the GIS world and, IMO, 
cannot be left

to v.rasts.stats, we need a native tool within QGIS itself. It would be
great if you could consider including this functionality in fTools.

Thanks a lot for your plugins, they are very useful.

Agus


Carson Farmer wrote:

Agus,

Given a vector map (i.e., a land cover map)
and a raster of a continuous variable (i.e., height),
is there any plugin calculating a table of average
(and perhaps other stats) of the raster for
each category in the vector?
I don't know of any plugins that will do this directly, but here is one 
possible solution:


If you are able to convert your raster to points (i.e. extract the 
centre of each raster cell as a point), then you could use the 'Join 
attributes by location' tool in fTools to extract the info that you need 
(and you can opt to calculate the mean values).


Hope this helps,

Carson


--
Dr. Agustin Lobo
Institut de Ciencies de la Terra Jaume Almera (CSIC)
LLuis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
email: [EMAIL PROTECTED]
http://www.ija.csic.es/gt/obster
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGis proxy settings

2008-10-28 Thread Craig Leat
Hi

Craig Leat wrote:
Borys Jurgiel wrote:
 I've just uploaded the new proxy-friendly version of the Plugin Installer 
 with
 Barry's patch (0.06.5). Proxy users, Could you upgrade and test it please?

In a python console I tried:
 import urllib
 urllib.getproxies()
{'http': 'http://craig:[EMAIL PROTECTED]:8080/', 'no':
'localhost,127.0.0.0/8,*.local'}

My http proxy requires authentication and I see that my username and
password are returned. I tried adding the following to QPHttp:
self.proxy.setUser('craig')
self.proxy.setPassword('')

But I must be missing something because the repos are still unavailable.

I have upgraded to revision 9552 and now my patch to QPHttp works.
Cool, nice work guys.

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


[Qgis-user] the table manager for the trunk

2008-10-28 Thread Димитър Василев

Hi!
I'm using the QGIS 1.0 Preview 1 Windows Build on XP SP3
I installed the new Table Manager Plugin 0.1.5 from
http://bwj.aster.net.pl/temp/tablemanager-2008-10-27.zip
When I tryed to use it on any ESRI Shapefile I got the same error as Dr. 
Agustin Lobo reported:


Pithon error

An error has occured while executing Python code:

Traceback (most recent call last):
 File C:/Documents and 
Settings/konsulat/.qgis//python/plugins\tablemanager\tableManager.py, 
line 58, in run

   if layer == None or layer.type() != layer.VectorLayer:
AttributeError: VectorLayer

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Python path:['D:/QGIS-Dev/./python', 'C:/Documents and 
Settings/konsulat/.qgis//python/plugins', 
'D:/QGIS-Dev/./python/plugins', 'C:\\Program Files\\ArcGIS\\bin', 
'D:\\QGIS-Dev\\python25.zip', '', 'D:\\QGIS-Dev', 'C:\\Documents and 
Settings\\konsulat\\.qgis\\python\\plugins\\fTools\\tools']


Regards,
D. Vasilev
GIS-Sofia EOOD
Bulgaria



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


Re: [Qgis-user] the table manager for the trunk

2008-10-28 Thread Borys Jurgiel
Tuesday 28 of October 2008 09:53:49 Димитър Василев napisał(a):
 Hi!
 I'm using the QGIS 1.0 Preview 1 Windows Build on XP SP3
 I installed the new Table Manager Plugin 0.1.5 from
 http://bwj.aster.net.pl/temp/tablemanager-2008-10-27.zip
 When I tryed to use it on any ESRI Shapefile I got the same error as Dr.
 Agustin Lobo reported:

The zip I've provided above is for recent trunk QGIS version. 
For the 1.0-Preview-1 you should use the 'ordinary' table manager from my 
repository (you may need to enable the 3rd party repositories).
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] the table manager for the trunk

2008-10-28 Thread Giovanni Manghi

 No module named psycopg


You need to istall psycopg

http://pypi.python.org/pypi/psycopg/1.1.21


take care

-- Giovanni --


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


Re: [Qgis-user] the table manager for the trunk

2008-10-28 Thread Borys Jurgiel
Tuesday 28 of October 2008 11:22:31 Giovanni Manghi napisał(a):
  No module named psycopg

 You need to istall psycopg

 http://pypi.python.org/pypi/psycopg/1.1.21

No, you don't need it :) This Table Manger version doesn't include the PostGIS 
export yet, so I'm removing the dependence. Wait few minutes and upgrade to 
the 0.1.4 please ;)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] the table manager for the trunk

2008-10-28 Thread Dimitar Vasilev

Borys Jurgiel написа:

Tuesday 28 of October 2008 11:22:31 Giovanni Manghi napisaЕ‚(a):
  

No module named psycopg
  

You need to istall psycopg

http://pypi.python.org/pypi/psycopg/1.1.21



No, you don't need it :) This Table Manger version doesn't include the PostGIS 
export yet, so I'm removing the dependence. Wait few minutes and upgrade to 
the 0.1.4 please ;)

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

  

Hi, Borys!
I installed version 0.1.4. Installation was  successful  but  when I 
tryed to use it I got an error:


Python error

An error has occured while executing Python code:

Traceback (most recent call last):
 File C:/Documents and 
Settings/konsulat/.qgis//python/plugins\tablemanager\tableManager.py, 
line 61, in run

   dialoga = doTableManager.TableManager(self.iface)
 File C:/Documents and 
Settings/konsulat/.qgis//python/plugins\tablemanager\doTableManager.py, 
line 171, in __init__

   self.setupUi(self)
 File C:/Documents and 
Settings/konsulat/.qgis//python/plugins\tablemanager\tableManagerUi.py, 
line 271, in setupUi

   self.retranslateUi(Dialog)
 File C:/Documents and 
Settings/konsulat/.qgis//python/plugins\tablemanager\tableManagerUi.py, 
line 294, in retranslateUi
   
self.butSaveAsPostGis.setToolTip(QtGui.QApplication.translate(Dialog, 
To be implemented..., None, QtGui.QApplication.UnicodeUTF8))

AttributeError: butSaveAsPostGis

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Python path:['D:/QGIS-Dev/./python', 'C:/Documents and 
Settings/konsulat/.qgis//python/plugins', 
'D:/QGIS-Dev/./python/plugins', 'C:\\Program Files\\ArcGIS\\bin', 
'D:\\QGIS-Dev\\python25.zip', '', 'D:\\QGIS-Dev', 'C:\\Documents and 
Settings\\konsulat\\.qgis\\python\\plugins\\fTools\\tools']


Regards!
D. Vasilev
GIS-Sofia EOOD
Bulgaria
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] the table manager for the trunk

2008-10-28 Thread Dimitar Vasilev

Borys Jurgiel написа:

Hi, Borys!
I installed version 0.1.4. Installation was  successful  but  when I
tryed to use it I got an error:



Try to reinstall the 0.1.4 once again. Now it should work.

  

Yes, now it works fine.

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


[Qgis-user] Any errors when installing plugins under XP ?

2008-10-28 Thread Borys Jurgiel
Tuesday 21 of October 2008 22:06:47 Tara Athan napisał(a):
 I am using a QGIS 1.0 windows build on XP.
 I am trying to install the Geoprocessor plugin. I get the error message
 Python error

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File C:/Program
 Files/QGIS-Dev/./python/plugins\plugin_installer\installer_gui.py, line
 202, in requestFinished
 un.extract(tmpPath, pluginDir) # final extract.
   File C:/Program
 Files/QGIS-Dev/./python/plugins\plugin_installer\unzip.py, line 29, in
 extract
 os.mkdir(dir)
 WindowsError: [Error 3] The system cannot find the path specified:
 u'C:/Documents and Settings/Tara/.qgis/python/plugins'

Another words, it seems Pluigin Installer can't create missing directories 
(python/plugins). Has anybody else experienced such error? Unfortunatelly I 
can't replicate it, though I'm doing what only crosses my mind ;) The 
Installer always creates missing directories.

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


Re: [Qgis-user] QGis proxy settings

2008-10-28 Thread Borys Jurgiel
 I have upgraded to revision 9552 and now my patch to QPHttp works.
 Cool, nice work guys.

Hi!

I've just uploaded Installer 0.06.6. Now it uses QGIS proxy settings from the 
options window (including login  password). Could you test it?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] iLocalize

2008-10-28 Thread Werner Macho

hi list!

A new translator is using (mainly?) iLocalize to translate (MacOS) Software.

Now a few questions:
Is it possible to use iLocalize for the QGIS Project on a Mac for 
translation?

Does anyone have experience with it?
Is it possible to get somewhat a live preview of Qgis during 
translation? (Like it seems to be possible with iLocalize)
Is anyone translating using MacOSX and is able to give a brief 
description.. something like a HOWTO?


thx in advance
regards
Werner
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Any errors when installing plugins under XP ?

2008-10-28 Thread Martin Dobias
2008/10/28 Borys Jurgiel [EMAIL PROTECTED]:
 Tuesday 21 of October 2008 22:06:47 Tara Athan napisał(a):
 I am using a QGIS 1.0 windows build on XP.
 I am trying to install the Geoprocessor plugin. I get the error message
 Python error

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File C:/Program
 Files/QGIS-Dev/./python/plugins\plugin_installer\installer_gui.py, line
 202, in requestFinished
 un.extract(tmpPath, pluginDir) # final extract.
   File C:/Program
 Files/QGIS-Dev/./python/plugins\plugin_installer\unzip.py, line 29, in
 extract
 os.mkdir(dir)
 WindowsError: [Error 3] The system cannot find the path specified:
 u'C:/Documents and Settings/Tara/.qgis/python/plugins'

 Another words, it seems Pluigin Installer can't create missing directories
 (python/plugins). Has anybody else experienced such error? Unfortunatelly I
 can't replicate it, though I'm doing what only crosses my mind ;) The
 Installer always creates missing directories.

... maybe you need to call os.makedirs() instead of os.mkdir() as it
has to create first python and then plugins directory?

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


Re: [Qgis-user] Any errors when installing plugins under XP ?

2008-10-28 Thread Borys Jurgiel
 ... maybe you need to call os.makedirs() instead of os.mkdir() as it
 has to create first python and then plugins directory?

 Martin

Thanks. I've implemented it as an additional security. However it's not very 
elegant way...
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] proportional symbols

2008-10-28 Thread Goyo
It seems to be a more common feature than I thought. Still I don't
understand the use if this (I think double size should mean double
population) but I guess I can live with the clutter.

Goyo

El lun, 27-10-2008 a las 23:21 +0100, G. Allegri escribió:
 It's very strange to me that it seams so strange to have proportional
 point size symbology on the base of attributes values.
 It's a basic feature of cartography...
 
 Some example references I can give:
 http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#scaling-of-symbols
 http://demo.mapfish.org/mapfishsample/1.0/examples/geostat/proportionalSymbols.html
 http://www96.reliefweb.int/tools/details/geospatial-analysis/symbols-and-markers
 
 2008/10/27 Goyo [EMAIL PROTECTED]:
  OK I read the ticket and I think I've got the point now. First of all
  you'll want to know that the lower size limit is gone in 1.0 but I don't
  think you're going to get good looking results with your data anyway.
 
  So you want to tell the sizes for maximum and minimum field values
  (whatever they are) and get the size for any value computed by linear
  interpolation.
 
  To be honest I don't see this useful enough (in general) as to justify
  the additional clutter in UI. On the other hand that's the way colormaps
  are handled in rasters, more or less.
 
  Just some thoughts.
 
  Goyo
 
  El lun, 27-10-2008 a las 21:49 +0100, Goyo escribió:
  Hi Giovanny,
 
  it scales the symbol size, not the attribute values. Since your
  attribute values are big you're getting big symbols.
 
  Goyo
 
  El dom, 19-10-2008 a las 21:15 +0200, G. Allegri escribió:
   I migrate here a discussion started in a ticket
   https://trac.osgeo.org/qgis/ticket/960
  
   I change the question asking the following: how to make proportional
   symbols, i.e. with the size based on a certain attribute?
   I thought I should use the Area scale fields in the Properties
   window. It does the work, but it doesn't scale the sttribute values,
   so if the they are big the symbols overlay each other even covering
   the entire screen.
  
   I show two images about this:
   Property dialog: http://www.geospatial.it/allegri/property.png
   Result: http://www.geospatial.it/allegri/graduated.png
  
   I've used the lower allowed Dimension (=3)...
  
   Am I using a tool that wasn't supposed to do this work? Or am I using
   it in the wrong way?
  
   Giovanni
   ___
   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] proportional symbols

2008-10-28 Thread G. Allegri
Yes, it's very common, and in my field it's very useful too. For
example it is used to visualize wells water chemical monitoring...

2008/10/28 Goyo [EMAIL PROTECTED]:
 It seems to be a more common feature than I thought. Still I don't
 understand the use if this (I think double size should mean double
 population) but I guess I can live with the clutter.

 Goyo

 El lun, 27-10-2008 a las 23:21 +0100, G. Allegri escribió:
 It's very strange to me that it seams so strange to have proportional
 point size symbology on the base of attributes values.
 It's a basic feature of cartography...

 Some example references I can give:
 http://mapserver.gis.umn.edu/docs/howto/cartosymbols/#scaling-of-symbols
 http://demo.mapfish.org/mapfishsample/1.0/examples/geostat/proportionalSymbols.html
 http://www96.reliefweb.int/tools/details/geospatial-analysis/symbols-and-markers

 2008/10/27 Goyo [EMAIL PROTECTED]:
  OK I read the ticket and I think I've got the point now. First of all
  you'll want to know that the lower size limit is gone in 1.0 but I don't
  think you're going to get good looking results with your data anyway.
 
  So you want to tell the sizes for maximum and minimum field values
  (whatever they are) and get the size for any value computed by linear
  interpolation.
 
  To be honest I don't see this useful enough (in general) as to justify
  the additional clutter in UI. On the other hand that's the way colormaps
  are handled in rasters, more or less.
 
  Just some thoughts.
 
  Goyo
 
  El lun, 27-10-2008 a las 21:49 +0100, Goyo escribió:
  Hi Giovanny,
 
  it scales the symbol size, not the attribute values. Since your
  attribute values are big you're getting big symbols.
 
  Goyo
 
  El dom, 19-10-2008 a las 21:15 +0200, G. Allegri escribió:
   I migrate here a discussion started in a ticket
   https://trac.osgeo.org/qgis/ticket/960
  
   I change the question asking the following: how to make proportional
   symbols, i.e. with the size based on a certain attribute?
   I thought I should use the Area scale fields in the Properties
   window. It does the work, but it doesn't scale the sttribute values,
   so if the they are big the symbols overlay each other even covering
   the entire screen.
  
   I show two images about this:
   Property dialog: http://www.geospatial.it/allegri/property.png
   Result: http://www.geospatial.it/allegri/graduated.png
  
   I've used the lower allowed Dimension (=3)...
  
   Am I using a tool that wasn't supposed to do this work? Or am I using
   it in the wrong way?
  
   Giovanni
   ___
   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] More Projection Issues - Shapefile appears in wrong spot

2008-10-28 Thread Jon Lillestolen
Hello all,

I've followed the posts and read the archives and cannot seem to find any 
solutions to my problem.  I have a raster layer drg in NAD83 that seems to 
display in the correct spot.  When I import custom shapefiles the points 
overlay in the correct spots relative to the raster.  When I import a tiger 
file (shapefile, roads layer) from the census bureau, it will appear but not in 
the right spot.  It appears as if the shapefile has the correct coordinates, 
but has been saved with the units as latlon.  So instead of appearing at 
(35.944 degrees North, -83.2983 degrees East) it appears at (35.944 meters, 
-83.2983 meters).  Does this make sense?  Is there a simple fix to this?

Also, not sure if it is a related issue, but I cannot change the project units 
in the project properties page.  No matter which units I choose and then save, 
the next time I open the project properties page it is always back to meters.  
I have tried reinstalling several times and OTF has always been selected.  I 
have also tried every conceivable combination of CRS es on each dataset, to see 
if I could get a wierd selection to make it magically appear to no avail.

I have a WinXP machine and I have had the same problems in both QGIS 0.11.02 
and in the Preview version 1.0. 

Thanks in advance for any help,
-Jon L
QGIS User




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