Re: [Qgis-user] What can you do with the Python console?

2008-10-31 Thread maning sambale
Yeah! QGIS Pythonistats!  Bring on those oneliners and scripts!

On Thu, Oct 30, 2008 at 8:45 PM, Carson Farmer [EMAIL PROTECTED] wrote:
 Agus,

 This is most useful, perhaps could we have a section
 in the wiki on Examples of using the QGIS console ?
 Another section on Examples of simple python scripts would
 be great also.

 These are very good ideas. I'm sure lots of pyQGIS users have some simple
 scripts that they use. It would be good to share. Perhaps a QGIS python
 recipe page? I'll try to add a page if I get some time in the next few days.

 C

 --
 Carson J.Q. Farmer
 PhD Fellow
 National Centre for Geocomputation (NCG),
 John Hume Building,
 National University of Ireland, Maynooth,
 Co. Kildare,
 Ireland.
 http://www.carsonfarmer.com
 http://www.ftools.ca

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




-- 
|-|--|
| __.-._  |Ohhh. Great warrior. Wars not make one great. -Yoda |
| '-._7' |Freedom is still the most radical idea of all -N.Branden|
|  /'.-c  |Linux registered user #402901, http://counter.li.org/ |
|  |  /T  |http://esambale.wikispaces.com|
| _)_/LI
|-|--|
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Fwd: Re: [Qgis-user] Edit polygon and measure]

2008-10-31 Thread Agustin Lobo


Please see
http://aloboaleu.googlepages.com/forMagnus

for screen shots.
Agus

Magnus Homann wrote:

Agustin Lobo skrev:

Well, I also got that projection..., but
my project is in UTM 31N ED50.
So it seems that you get geog. coordinates
regardless of the project settings.

Agus

Magnus Homann wrote:

Agustin Lobo skrev:


2. New vector layer should take by default the
projection of the project.


https://trac.osgeo.org/qgis/attachment/ticket/967/dump.jpg


Sorry, don't understand. I set project CRS to UTM 31N ED50 (epsg::23031),
and when i created a new layer it got the same CRS. You have to select 
the middle

radio button for this to work. Does this not work for you?



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


--
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] QGIS and ECW and MrSid formats

2008-10-31 Thread Agustin Lobo

Hi!

Could we clarify the situation for ecw and Mrsid
formats in QGIS? (and perhaps put a note
somewhere in the qgis web pages).

I think that not being
able to read these formats is a major drawback
in practice. At least in Spain, a lot of public
available raster layers are in these formats.
Also, for example, the imagery at
https://zulu.ssc.nasa.gov/mrsid/
(I know the original landsat images for those
are available in not compressed formats, but
that site is very convenient for many people)

If there is a compiled version of gdal including
support for these formats, why QGIS cannot? In any
case, is there any workaround so that users can get
to have ecw/Mrsid support out of their compiled version?
Perhaps through a plugin?

I really think that the final QGIS1.0 should be able to read in
those formats, somehow. This is probably seen as a minor concern for 
developers, but a significant problem for users.


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


Re: [Qgis-user] QGIS and ECW and MrSid formats

2008-10-31 Thread Micha Silver

Hi Agus:


Agustin Lobo wrote:


Hi!

Could we clarify the situation for ecw and Mrsid
formats in QGIS? (and perhaps put a note
somewhere in the qgis web pages).

The situation is, unfortunately, clear: The QGIS project can't allow 
itself to distribute software with support for formats which they 
themselves can not be further distributed.  And that seems to be the 
case with ecw.



If there is a compiled version of gdal including
support for these formats, why QGIS cannot? In any
case, is there any workaround so that users can get
to have ecw/Mrsid support out of their compiled version?
Perhaps through a plugin?

While I'm not a developer, the with my (very) little understanding of 
how QGIS and gdal interact, I don't think this is possible with a plugin.

I really think that the final QGIS1.0 should be able to read in
those formats, somehow. This is probably seen as a minor concern for 
developers, but a significant problem for users.


I totally agree. My guess is that this will eventually be resolved if 
some kind soul will produce a QGIS+gdal pair of binaries with the ecw 
and/or mrSid libraries compiled in.
Last time we exchanged our frustration with this situation, I even gave 
a name to the new gdal binaries: we need a gdal-good gdal-bad and 
gdal-ugly in the same fashion that licence encumbered audio codecs are 
released as binaries outside of the standard distro repositories.

Agus


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


Re: [Qgis-user] scaling bug?

2008-10-31 Thread Micha Silver




Borys Jurgiel wrote:


  
We might 
consider that each new project should have some projection defined (like
each new layer), and it need not necessarily be WGS84, as it is now.
Your suggestion of a "default_project.qgs" should fill the bill. And it
opens the way for adding other global project definitions it the future.

  
  
Yes, I've implemented it at mine by launching the project file at startup and 
it's really comfortable. However it's only a workaround... I still wonder if 
Global Default Projection shouldn't be used also for project projection.

  

In my opinion, yes...

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



This mail was received via Mail-SeCure System.


  




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


Re: [Qgis-user] QGIS and ECW and MrSid formats

2008-10-31 Thread Martin Dobias
On Fri, Oct 31, 2008 at 11:20 AM, Micha Silver [EMAIL PROTECTED] wrote:
 Hi Agus:


 Agustin Lobo wrote:

 Hi!

 Could we clarify the situation for ecw and Mrsid
 formats in QGIS? (and perhaps put a note
 somewhere in the qgis web pages).

 The situation is, unfortunately, clear: The QGIS project can't allow itself
 to distribute software with support for formats which they themselves can
 not be further distributed.  And that seems to be the case with ecw.

I think that things are not really that bad. Today I've took a brief
look at the licenses for ECW and MrSid and it seems that it's okay to
build and distribute qgis with their pieces of software if we
distribute only the binaries (i.e. not their SDKs). They additionaly
request to add their copyright text to about box / readme. MrSid SDK
allows only decoding, ECW also encoding, but only up to 500mb. And I
think they also require that user accepts their EULA before using
those formats.


 If there is a compiled version of gdal including
 support for these formats, why QGIS cannot? In any
 case, is there any workaround so that users can get
 to have ecw/Mrsid support out of their compiled version?
 Perhaps through a plugin?

 While I'm not a developer, the with my (very) little understanding of how
 QGIS and gdal interact, I don't think this is possible with a plugin.

For all work with raster data (except WMS) we use GDAL.
So, support for ecw/mrsid must be compiled against gdal.


 I really think that the final QGIS1.0 should be able to read in
 those formats, somehow. This is probably seen as a minor concern for
 developers, but a significant problem for users.

 I totally agree. My guess is that this will eventually be resolved if some
 kind soul will produce a QGIS+gdal pair of binaries with the ecw and/or
 mrSid libraries compiled in.
 Last time we exchanged our frustration with this situation, I even gave a
 name to the new gdal binaries: we need a gdal-good gdal-bad and
 gdal-ugly in the same fashion that licence encumbered audio codecs are
 released as binaries outside of the standard distro repositories.

From what I've written above, I think everything is just a matter of
packaging (and some more annoyances with license statements and
copyright notices).
- for windows we create the whole toolchain by ourselves so including
these formats in GDAL is a matter of compiling GDAL with appropriate
SDKs
- for linux the situation is more complicated. users usually use gdal
packages from their distribution, so we would need to produce
alternative packages for several distributions which would be
compatible with original ones. Or create qgis-with-gdal-ugly
packages with GDAL inside (but that would be nasty solution)
- for mac I have no idea


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


Re: [Qgis-user] QGIS and ECW and MrSid formats

2008-10-31 Thread Jacolin Yves
Hi,

Le Friday 31 October 2008 13:17:48 Martin Dobias, vous avez écrit :
 - for linux the situation is more complicated. users usually use gdal
 packages from their distribution, so we would need to produce
 alternative packages for several distributions which would be
 compatible with original ones. Or create qgis-with-gdal-ugly
 packages with GDAL inside (but that would be nasty solution)

Camptocamp created such gdal package with ECW. More information here: 
http://cartoweb.org/cwiki/DebianPackages

Regards,

Y.
-- 
Yves Jacolin
---
http://softlibre.gloobe.org
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] ISPRS-SC's Newsletter_No4_Vol2_October

2008-10-31 Thread Nikos Alexandris
Dear QGIS users and members of the osgeo-educational group mailing list,

I would like to inform you that the latest Newsletter of the ISPRS-SC is
out [1]. There are several stuff that might interest students. What is
directly related with the QGIS and the OSGeo community is a short
article with practical example using QGIS!

You can download the Newsletter following link [2]. The *very* short
article entitled Creating Overview Maps using WMSes with QGIS is on
the last page. A document with more details and some screenshots is to
be found on link [3].

A big thank you to QGIS developer's for their great work.
Kind regards, Nikos

[1] http://www.isprs-studentconsortium.org/index.php?id=2

[2]
http://www.isprs-studentconsortium.org/assets/files/Newsletters/Newsletter_No4_Vol2_October.pdf

[3]
http://isprs-studentconsortium.org/assets/files/Material_reports/Volume_2_No4/OverviewMap_QGIS_final.pdf


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


Re: [Qgis-user] QGIS and ECW and MrSid formats

2008-10-31 Thread William Kyngesburye

On Oct 31, 2008, at 11:57 AM, Tom Elwertowski wrote:

GDAL provides a configure script to add GRASS support as a plugin  
rather then built-in. There are no configure scripts for ECW and  
MrSID but it should be possible to copy and modify the GRASS plugin  
build script. William must have either done this or written his own  
build routine since he has created working Mac GDAL plugins.



Yes, I originally started with a configured GRASS plugin makefile to  
create makefiles for other plugins.  They're almost unrecognizable  
now, and are tailored to compiling for the OSX framework (universal,  
framework-only, no configure step), but could be easily extended to  
support other systems.


Generally, get the OBJ list from the driver's GNUmakefile, and  
discover the CFLAGS and LDFLAGS (include paths and external libraries)  
needed for the format for your system by running configure as if you  
wanted to build the formats into GDAL (values will be in gdalmake.opt).


Someone who knows autotools (or cmake) could make configurable  
standalone source packages like the GRASS plugin.


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

Mon Dieu! but they are all alike.  Cheating, murdering, lying,  
fighting, and all for things that the beasts of the jungle would not  
deign to possess - money to purchase the effeminate pleasures of  
weaklings.  And yet withal bound down by silly customs that make them  
slaves to their unhappy lot while firm in the belief that they be the  
lords of creation enjoying the only real pleasures of existence


- the wisdom of Tarzan


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


Re: [Qgis-user] QGIS and ECW and MrSid formats

2008-10-31 Thread Paolo Cavallini
Martin Dobias ha scritto:

 - for linux the situation is more complicated. users usually use gdal
 packages from their distribution, so we would need to produce
 alternative packages for several distributions which would be
 compatible with original ones. Or create qgis-with-gdal-ugly
 packages with GDAL inside (but that would be nasty solution)

It is possible to compile ECW support in GDAL as a plugin:
http://wiki.gfoss.it/index.php/Come_abilitare_il_supporto_ai_file_ECW_in_GDAL_e_visualizzarli_in_GRASS_e_QGIS#Creare_un_plugin_GDAL_per_il_supporto_ECW_.28DRAFT.29
(in Italian, sorry, but bash commands are international).
All the best.
pc
-- 
Paolo Cavallini, see: * http://www.faunalia.it/pc *
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user