Re: [Qgis-user] Raster selection

2008-11-21 Thread Agustin Lobo

Jose Maria,

If your layer in question is vector layer why is the
subject of your message Raster selection?

I suggest:

1. Define a rectangle for your area of interest and save it
as a vector layer. Use New Layer (be sure to define the layer as 
polygon), Toggle Editing on and Capture rectangle to define your 
rectangle. Toggle Editing off and save.

2. Use ftools/Geoprocessing tools/Clip

It's clear that QGIS lacks 2 simple but critical tools on these issues:

1. A simpler way to define a rectangular polygon for a given area.
Currently, it's hard to get a real rectangle by defining a polygon with 
4 points. Also, a tool just saving as a rectangle the currently 
displayed extent would be most practical (and perhaps also another 
defining a rectangle from the extent of a given object, which would be 
required to display the extent of geographical objects out of their 
metadata anyway).


2. Clipping raster layers.

You mention that you use grass. Note that through the grass plugin you 
can also solve these problems with grass (although I don't like the fact 
that you have to go through the location definition and the 
import/export from/to grass; we should be able to solve these problems 
within qgis itself).


If you have problems to communicate in English, you are welcome to write 
me in Spanish.


Regards,

Agus

--

Message: 8
Date: Fri, 21 Nov 2008 01:30:16 -0300
From:  Jos? Mar?a Michia  [EMAIL PROTECTED]
Subject: Re: [Qgis-user] Raster selection
To:  Sergio Z?rate Pedroche  [EMAIL PROTECTED]
Cc: Qgis-user@lists.osgeo.org
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=ISO-8859-1

Thanks Sergio, but it's not what I'm looking to do. I'm difficult with
english, and i can not explain precisely.

The layer in question is vector layer, not raster. More exactly, is an
LABEL/ANNOTATION layer. And to be more exact, I wish this layer
processed by MapServer for generalize at certain scale.

My previous post is about some alternatives that I've explored
explored in QGIS. The raster extraction mentioned, is not useful for
me in this case.

2008/11/21 Sergio Zárate Pedroche [EMAIL PROTECTED]:

 Hi, José María,
 Have you tried MultiSpec?
 It allows for establishing a rectangle selection, either manually or by
 coordinates (rows, cols; degrees or meters) and then saving selection.
 I vave found it usefull for importing raster selections in QGis


Yes, I tried MultiSpec. However, I am a Linux user, and I prefer to
use gdal_translate and GRASS for handling raster files.

Thank you very much Sergio
José María

--
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 segmentation fault

2008-11-21 Thread Borys Jurgiel
Friday 21 of November 2008 07:36:15 Gavin Fleming napisał(a):
 Hi

 Ubuntu server 7.10. QGIS worked until I did an apt-get update some time
 back. It was using standard repositories plus the launchpad/timlinux
 one. Yesterday I added launchpad/qgis to my apt sources and tried a new
 install but I still get this, I'm not even sure what version it's
 attempting to run. The splash screen was coming up in earlier versions
 of this crash but now that's not even happening:

 qgis

 Warning: No valid projection. Unable to set map units.

 Warning: No valid projection. Unable to set map units.

 Warning: No valid projection. Unable to set map units.

 Segmentation fault

Here are the simplest solutions, sometimes help:

Try to remove (or better rename or move anywhere to not lost your settings) 
the configuration file: ~/.config/QuantumGIS/qgis.conf

If it doesn't help, the problem may be caused by an incompatible C++ plugin. 
Have you compiled any for older version by youself? If so, try to (re)move it 
and recompile. Python plugins shouldn't give such error, but to be sure, you 
can remove or rename the ~/.qgis/python/plugins directory

Btw. The warning message you've reported appears frequently in some qgis 
versions and probably isn't related to the subsequent segfault.

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


Re: [Qgis-user] select elements from a wms layer

2008-11-21 Thread Richard Duivenvoorde

Hi,
Not sure if I understand you correctly, but a WFS SHOULD be selectable 
in QGIS. Try the 'rijkswaterstaat'-url below, and you can select 1 
province, and via the attribute table copy WKT to the clipboard:


wkt_geom,MPPerimete,MPArea,AREA,PERIMETER,OMSCHR,GAQ,NL
MULTIPOLYGON(((149480.042914 476598.605781,149482.755927
... a LOT of coordinates here ...
476598.605781))),265264,143640,1436408320.,265278.25000,Utrecht,10,0

But if it is only the LABELS that you actually want to copy, it's 
different. Labelplacement is done using the geographic object it's 
attached to.
First I thought that you maybe could transform your original layer to a 
point-layer, but in that way you do not have the exact same label 
locations as before. But having a pointlayer with labels, they should be 
selectable, thereby copyable.


Another option?? in arcview it was/is(?) possible to transform a labels 
to a 'graphic'...


Regards,
Richard Duivenvoorde

José María Michia wrote:

With WFS I've come close to what I need. The problem is that WFS does
not work with layers of labels. I've changed the geometry type, to
polygon, without style, and with label, and i can display this layer
in QGIS. I've inserted this WFS layer in QGIS. And, at certain scale,
QGIS show only the labels that i want to write out. So, QGIS display
the data that i wish to write to some GIS file. But, QGIS not let me
select elementos from WFS/WMS layers. Selection tools is deactivated.
And i cannot found any way of convert to gis format. Only found a way
to convert it to image.

Using QGIS, with both WMS and WFS layers, the selection tool is
deactivated. I can not select elements of these layers. With other
layer formats, the tool is activated, and I can select elements. Is
correct this behavior?


If you want to try out a WFS: use this url:
http://www.rijkswaterstaat.nl/services/geoservices/overzichtskaartnl?service=WFStypename=NL-provversion=1.0.0
you will be able to receive provinces, highways etc from the Netherlands.

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


[Qgis-user] Raster Map tips?

2008-11-21 Thread Agustin Lobo

Is there any other way to check pixel values other
than the Identify Features tool?
(plugin Value Tool does not work since 0.11, I think)

Agus

--
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


[Qgis-user] Problem with grass plugin: r.statistics

2008-11-21 Thread Agustin Lobo

I select 2 layers in the raster plugin menu for r.statistics but
according to what is written to the output tab, the
layers that are actually used are different:

r.statistics [EMAIL PROTECTED] [EMAIL PROTECTED] method=median output=delme2

while I actually have selected  [EMAIL PROTECTED] as base in the menu

(see http://aloboaleu.googlepages.com/r.statistics1.jpg
and http://aloboaleu.googlepages.com/r.statistics2.jpg )

Anyway, r.statistics does not work even from the command line. In:
r.statistics [EMAIL PROTECTED] [EMAIL PROTECTED] method=median output=delme2

delme2 is identical to NDVI2003

(but this second one is for the grass list, actually).

Agus
--
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


[Qgis-user] Re: [Qgis-developer] Getting some newbie views

2008-11-21 Thread Carson Farmer

Developers,

I just wanted to add a comment to Barry's summary of the course:

1) Under layer properties  General, we have the option to Chance CRS. 
I think this terminology is potentially misleading for one primary reason:
When a newbie sees this button, they immediately think, Ah, what a 
handy way to (re) project my data!
In reality, it doesn't 'change' the coordinates themselves al all, just 
the specification of the CRS. I propose ( for a 1.1 release of course 
;-) ) that this be changed to something like Define CRS, Specify 
CRS, or change the abreviation of CRS to the full 'Coordinate Reference 
System. As is, it insinuates more of a change than is actually going 
on. As I'm sure many lecturers and tutors will agree, one of the biggest 
problems when teaching GIS to beginners comes from problems properly 
defining a layers CRS.


I realise that this is a bit of a silly thing to worry about, but I just 
wanted to hear what other people though about this terminology.


Cheers,

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


[Qgis-user] Spread of colors in Continuous Color

2008-11-21 Thread Agustin Lobo

I don't quite understand the way colors are
distributed among values between the
color set for the min and the color
set for the max value (Properties/Symbology/Continuous colors).
I'm used to set the entire color ramp, not just the
extreme colors.

Also, does anyone have rules for Which couple of colors can be selected 
for best

results in different situations?

Thanks

Agus
--
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


[Qgis-user] Bug about custom CRS

2008-11-21 Thread Leonardo Lami

Hi all,
I'm testing QGIS 0.10 on Debian and I see a bug about manage of the
custom CRS.

In the past version I had a custom projection like this:

+proj=tmerc +lat_0=0 +lon_0=9 +k=0.9996 +x_0=150 +y_0=0 +ellps=intl
+towgs84=-104.1,-49.1,-9.9,0.971,-2.917,0.714,-11.68 +units=m +no_defs

and I used this like default CRS for the geographical data without
projection file and to reproject on the fly data from an another
proiection system with good result.

In the test vers 1.0 I have this problem:
1) if I set this custom projection like default projection the data is
associated with WGS84 lat long projection
2) if I use this custom projection to make reprojection on the fly, QGIS
automatically use CRS 3003 (EPSG code) instead of my custom projection
with relative errors of projection.

Anyone have similar bugs or know why it happens?

Thank you very much

Leonardo



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


[Qgis-user] internal sqlite3

2008-11-21 Thread Chris h
Greets:

Going through the build source and ccmake there is a setting for with internal 
sqlite3. Was wondering what sqlite is used for and its default seting is to 
off. 

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


Re: [Qgis-user] QGIS segmentation fault

2008-11-21 Thread Tim Sutton
Hi Gavin

On Fri, 2008-11-21 at 08:36 +0200, Gavin Fleming wrote:
 Hi
 
  
 
 Ubuntu server 7.10. QGIS worked until I did an apt-get update some
 time back. It was using standard repositories plus the
 launchpad/timlinux one. Yesterday I added launchpad/qgis to my apt
 sources and tried a new install but I still get this, I’m not even
 sure what version it’s attempting to run. The splash screen was coming
 up in earlier versions of this crash but now that’s not even
 happening:
 



Try purging all QGIS related packages and uninstalling any hand built
QGIS you may have, and then installing the launchpad/jef packages listed
on http://download.qgis.org for heron. That will get you 1.0 preview 2
which is IMHO more stable than 0.11 anyway.

Buzz if you still cant come right.

Regards

Tim


  
 
 qgis
 
 Warning: No valid projection. Unable to set map units.
 
 Warning: No valid projection. Unable to set map units.
 
 Warning: No valid projection. Unable to set map units.
 
 Segmentation fault
 
  
 
  
 
 Any tips?
 
  
 
 Gavin 
 
  
 
 
 This message is intended for the addressee only. 
 Information and attachments in this e-mail may contain confidential, 
 proprietary, or legally privileged information. 
 If you are not the intended recipient, or responsible for delivery of the 
 message to the intended recipient, 
 any disclosure, copying, distribution, or any action taken is prohibited and 
 may be unlawful, 
 and could result in a claim against you.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting  Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==


signature.asc
Description: This is a digitally signed message part
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] internal sqlite3

2008-11-21 Thread Tim Sutton
Hi Chris

On Fri, 2008-11-21 at 13:03 -0500, Chris h wrote:
 Greets:
 
 Going through the build source and ccmake there is a setting for with 
 internal 
 sqlite3. Was wondering what sqlite is used for and its default seting is to 
 off. 

Sqlite is used to store the CRS database, user CRS database, spatial
bookmarks, QML for databases and in the future probably more.

The default setting is off since typically folks will link to sqlite
installed via package manager. I added it as an 'internal' option for
those not willing / able to install sqlite library separately on their
system. There were other reasons for adding it which you can probably
pick up from my initial commit messages when I added it (if you are
interested for further info).

Regards

Tim

 

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting  Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==


signature.asc
Description: This is a digitally signed message part
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] Getting some newbie views

2008-11-21 Thread Tim Sutton
Hi

On Fri, 2008-11-21 at 15:44 +, stefaan dondeyne wrote:
 Hi developers,
  
 I have been teaching qGIS over the last six months for introducing GIS
 to government staff in Mozambique and I cannot agree more with Carson
 point !!!

  
 So yes please take that suggestion into account.


As always file tickets in trac. These suggestions are great but we cant
implement them until after 1.0 release. Keeping them in trac will ensure
they dont get lost. Since they are trivial to implement and add a lot to
usability, it will be a pleasure to implement these changes in the next
iteration.



8--snip


Regards

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Visit http://linfiniti.com to find out about:
 * QGIS programming services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting  Support Services
Skype: timlinux Irc: timlinux on #qgis at freenode.net
==


signature.asc
Description: This is a digitally signed message part
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Raster selection

2008-11-21 Thread José María Michia
2008/11/21 Agustin Lobo [EMAIL PROTECTED]:
 Jose Maria,

 If your layer in question is vector layer why is the
 subject of your message Raster selection?

I think that the message with subject Raster selection is a message
from Sergio , not my. This message, I think, is product of the
interest of Sergio in my problem, and a product of a confusion about
the problem. I'm poor English writer, my apologies for imprecise on
describe them.

Subject of the original message, from my, is select elements from a
wms layer. In this thread, Richard tell me, that the output from WMS,
is a flat image.

When I answered the message from Richard, I explained that I did not
know that, so, WMS is not what I need.

 I suggest:

 1. Define a rectangle for your area of interest and save it
 as a vector layer. Use New Layer (be sure to define the layer as polygon),
 Toggle Editing on and Capture rectangle to define your rectangle. Toggle
 Editing off and save.
 2. Use ftools/Geoprocessing tools/Clip

 It's clear that QGIS lacks 2 simple but critical tools on these issues:

 1. A simpler way to define a rectangular polygon for a given area.
 Currently, it's hard to get a real rectangle by defining a polygon with 4
 points. Also, a tool just saving as a rectangle the currently displayed
 extent would be most practical (and perhaps also another defining a
 rectangle from the extent of a given object, which would be required to
 display the extent of geographical objects out of their metadata anyway).

 2. Clipping raster layers.

 You mention that you use grass. Note that through the grass plugin you can
 also solve these problems with grass (although I don't like the fact that
 you have to go through the location definition and the import/export from/to
 grass; we should be able to solve these problems within qgis itself).

 If you have problems to communicate in English, you are welcome to write me
 in Spanish.

 Regards,

 Agus

Creo que estos consejos van a ser muy útiles para hacer alguna prueba más.

Habitualmente, cuando se trata de capas normales, comunes, no tengo
problemas con esta clase de tareas. Pero en este caso, la capa que
quiero procesar, además de ser una capa WFS, quiero obtenerla con la
generalización que MapServer realiza sobre los elementos de la capa, a
una escala determinada.

Mi objetivo final es reutilizar el sistema de etiquetado que realiza
MapServer con otros programas. QGIS lo hace muy bien, porque puedo
agregar capas de tipo WFS, y la visualiza con generalizada, tal como
la visualiza MapServer. Pero con GMT, no puedo leer esa capa WFS,
necesito capturar los datos de alguna manera. Hasta ahora, he
integrado los resultados al final del proceso de creación del mapa,
integrando archivos PS y PDF. Pero quería encontrar una mejor forma de
integrar esas etiquetas en GMT.

La forma óptima de realizar esta tarea, se muy bien que esta lejos de
mis intentos. Habría que aplicar un algoritmo de etiquetado sobre los
datos originales. Pero eso también parece mucho más dificil, por eso
quería buscar una forma rápida de utilizar las etiquetas que genera
MapServer.

Insisto: QGIS las muestra muy bien, pero quiero utilizarlas en otros programas.

Gracias a todos por su ayuda. (Thanks all for your help).

 --

 Message: 8
 Date: Fri, 21 Nov 2008 01:30:16 -0300
 From:  Jos? Mar?a Michia  [EMAIL PROTECTED]
 Subject: Re: [Qgis-user] Raster selection
 To:  Sergio Z?rate Pedroche  [EMAIL PROTECTED]
 Cc: Qgis-user@lists.osgeo.org
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=ISO-8859-1

 Thanks Sergio, but it's not what I'm looking to do. I'm difficult with
 english, and i can not explain precisely.

 The layer in question is vector layer, not raster. More exactly, is an
 LABEL/ANNOTATION layer. And to be more exact, I wish this layer
 processed by MapServer for generalize at certain scale.

 My previous post is about some alternatives that I've explored
 explored in QGIS. The raster extraction mentioned, is not useful for
 me in this case.

 2008/11/21 Sergio Zárate Pedroche [EMAIL PROTECTED]:

  Hi, José María,
  Have you tried MultiSpec?
  It allows for establishing a rectangle selection, either manually or by
  coordinates (rows, cols; degrees or meters) and then saving selection.
  I vave found it usefull for importing raster selections in QGis

 Yes, I tried MultiSpec. However, I am a Linux user, and I prefer to
 use gdal_translate and GRASS for handling raster files.

 Thank you very much Sergio
 José María

 --
 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