Re: [Qgis-developer] In with the new, out with the old?

2011-03-08 Thread Carson Farmer
 In any case, I like your suggestion to put wrappers to all these new plugins
 (C++ also) under the Vector menu. THere's been a lot of discussion
 regarding consolidating plugins under categories /menu topics to make things
 easier to find. Any spatial query tools should, in my opinion appear under
 the Vector menu.
Oops, perhaps I was misleading here. I do not intent to 'wrap' any
*plugins* within the Vector menu! Only some of the new *core*
functions. The Vector menu is a set of 'out of the box' functions
based on the QGIS core library functions, and as such only contains
code that I can 'vouch for'. I think it is important to separate the
plugins from the core functions for many reasons, the primary reason
being that if we wrap plugins into the Vector menu, we will get a
bunch of bug reports on tools in this menu that should really be
reported to the plugin author, or using the new plugin web interface.

 Furthermore, there's the MMQGIS set of vector tools, some of which duplicate
 fTools functions (i.e. merge shapefile). Perhaps an effort to organize all
 these tools in one place would be worthwhile.
I haven't had much luck with the MMQGIS plugin myself, but it would
certainly be a good idea to organize the plugins in general. I know
there has been a lot of talk about this, but again, it is my feeling
that the 'plugins' should be organised separately from the core
functions/menus, like the Vector and Raster menus.

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] In with the new, out with the old?

2011-03-08 Thread Paolo Cavallini
Il giorno lun, 07/03/2011 alle 22.43 +, Carson Farmer ha scritto:

 So a tool to delete vector(s)/raster(s) and associated files.
 Something like a open file dialog where you can select x number of
 QGIS supported vector/raster files, and delete them all in one go?
 That *would* be handy...

This could be a fairly simple addition to QGIS file browser plugin.
A very useful one, BTW.
Could you add a wish to the trac?
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


Re: [Qgis-developer] In with the new, out with the old?

2011-03-08 Thread Tim Sutton
Hi

On Tue, Mar 8, 2011 at 8:20 AM, Micha Silver mi...@arava.co.il wrote:

8--snip--


 Where is this spatial query. I updated a Win XP machine last night to the
 latest 1.7 with OSGeo4W setup, and I don't find any spatial query?


Its a C++ plugin, you can find it in the plugin manager.

8--snip--

Regards

-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] In with the new, out with the old?

2011-03-08 Thread Nathan Woodrow
Thanks for the patch greatly appreciated, I have applied it and have pushed
a new branch (https://github.com/madmanwoo/QGIS-File-Browser/tree/renametest)
to my github account while I test and add some things, mainly error
handling, to it then I will make merge and release.

Thanks again.

- Nathan

On Tue, Mar 8, 2011 at 10:47 PM, Carson Farmer carson.far...@gmail.comwrote:

 Attached is a quick attempt at it... Pretty rough but it works...

 Carson

 On Tue, Mar 8, 2011 at 11:36 AM, Nathan Woodrow madman...@gmail.com
 wrote:
  Are you talking about my FileBrowser plugin, if so I was thinking about
  adding support to delete and rename files some time in the future just
 have
  been super busy and haven't had a chance.  If someone wants to try it for
 me
  the code is up on https://github.com/madmanwoo/QGIS-File-Browser you can
  just fork and do what you need.   I will happily take any help.
  - Nathan
  On Tue, Mar 8, 2011 at 10:18 PM, Borys Jurgiel li...@borysjurgiel.pl
  wrote:
 
  Dnia wtorek 08 marca 2011 o 11:26:50 Paolo Cavallini napisał(a):
   Il giorno lun, 07/03/2011 alle 22.43 +, Carson Farmer ha scritto:
So a tool to delete vector(s)/raster(s) and associated files.
Something like a open file dialog where you can select x number of
QGIS supported vector/raster files, and delete them all in one go?
That *would* be handy...
  
   This could be a fairly simple addition to QGIS file browser plugin.
   A very useful one, BTW.
   Could you add a wish to the trac?
   All the best.
 
  If so, please link also this ticket:
  http://trac.osgeo.org/qgis/ticket/2719
  I believe in the future we will merge FileBrowser and Gary's Browser,
  won't
  we?
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 



 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.com/

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


Re: [Qgis-developer] In with the new, out with the old?

2011-03-08 Thread Paolo Cavallini
Il giorno mar, 08/03/2011 alle 11.47 +, Carson Farmer ha scritto:
 Attached is a quick attempt at it... Pretty rough but it works...

BTW: QGIS File Browser plugin seems to forget about its setting at every
startup of QGIS. It would be good to have it always in place, memebering
folder state etc.
Thanks.
-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


Re: [Qgis-developer] 1 Mac section was skipped in r15383

2011-03-08 Thread William Kyngesburye
On Mar 8, 2011, at 1:43 AM, Martin Dobias wrote:

 On Tue, Mar 8, 2011 at 4:55 AM, William Kyngesburye
 wokl...@kyngchaos.com wrote:
 Lines 806-826, still some old shortcuts-... stuff here.  It won't compile.
 
 Hi William,
 
 r15387 should fix that.
 
 Martin

It compiles now.  But something is wrong, I think with that whole ui file 
change - crash for me on OS X:

0   QtGui 0x00010144c4a7 QAction::setText(QString 
const) + 23
1   org.qgis.qgis 0x000100032a4e 
QgisApp::changeEvent(QEvent*) + 118
2   QtGui 0x0001014a8c8d QWidget::event(QEvent*) + 
1341
3   QtGui 0x00010183ab3b 
QMainWindow::event(QEvent*) + 219
4   QtGui 0x00010145150d 
QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
5   QtGui 0x00010145753d 
QApplication::notify(QObject*, QEvent*) + 349
6   libqgis_core.1.7.0.dylib  0x000100767d62 
QgsApplication::notify(QObject*, QEvent*) + 28
7   QtCore0x00010110469c 
QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
8   QtGui 0x00010149c82d 
QWidget::setWindowTitle(QString const) + 237
9   org.qgis.qgis 0x00010003e657 
Ui_MainWindow::retranslateUi(QMainWindow*) + 67
10  org.qgis.qgis 0x00010004d947 
Ui_MainWindow::setupUi(QMainWindow*) + 40091
11  org.qgis.qgis 0x00010002974e 
QgisApp::QgisApp(QSplashScreen*, bool, QWidget*, QFlagsQt::WindowType) + 518
12  org.qgis.qgis 0x000100011f53 main + 6753
13  org.qgis.qgis 0x0001fdac start + 52


-
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-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] 1 Mac section was skipped in r15383

2011-03-08 Thread Martin Dobias
On Tue, Mar 8, 2011 at 5:29 PM, Tom Elwertowski
telwertow...@comcast.net wrote:
 The following workaround may shed some light on the source of the problem:

 Comment out the first line of retranslateUI in ui_ggisapp.h
 (MainWindow-setWindowTitle)

 This suggests to me that something needed by setWindowTitle for this object
 may not be initialized yet.

Hmm... would it help to completely remove windowTitle property from
main window in qgisapp.ui file?

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


Re: [Qgis-developer] 1 Mac section was skipped in r15383

2011-03-08 Thread Tom Elwertowski
Removing the windowTitle property from qgisapp.ui works for me. The 
title after startup is Quantum GIS r15387M so it's still being set 
somewhere later.


Tom


Martin Dobias wrote:

On Tue, Mar 8, 2011 at 5:29 PM, Tom Elwertowski
telwertow...@comcast.net  wrote:

The following workaround may shed some light on the source of the problem:

Comment out the first line of retranslateUI in ui_ggisapp.h
(MainWindow-setWindowTitle)

This suggests to me that something needed by setWindowTitle for this object
may not be initialized yet.


Hmm... would it help to completely remove windowTitle property from
main window in qgisapp.ui file?

Martin



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


Re: [Qgis-developer] hackfest in Lisbon

2011-03-08 Thread Julien Malik

Dear hackers,

As a member of the Orfeo Toolbox core development team, I propose to 
join you at the next HackFest in Lisbon.


This would be a great occasion to discuss with you about :
- the image processing needs in QGis, and how they can eventually be 
fulfilled by OTB.
- the UI / end-user application needs of OTB users, for which we feel 
Qgis is a very serious option.


I could show to those interested what we've done with QGis recently, and 
will be glad to get some direct feedback.
Also, I know there is currently a huge initiative on raster providers, 
and that it's been an idea to have an OTB implementation supporting 
streaming, in memory images, etc... .
We did not follow the latest devs very closely, but that would be a good 
occasion to exchange ideas, and maybe get my hand on some code around this.


As OTB is primarily a C++ library, I'm also particularly interested in 
the C++ plugin functionnalities of Qgis, so if you need some help to add 
functionnalities to them, this might also be something I can work on.



Does the idea suit you ?

Regards,
Julien


Le 05/02/2011 19:12, Giovanni Manghi a écrit :

Hi all, Jurgen, Paolo,


Why should anyone if the date is not set yet?  Maybe there should have been a
deadline for the doodle page.

You're right.


Anyway, 15-17.4 seems set now.   Who closes the doodle page and fixes the date
on the wiki page?

The Doodle was set to make possible choose the best dates for you devs
(and was asked by you). I didn't realized it was a problem.

In any case the core devs have already voted and so I'll close the
Doodle. The dates will be then 15-17.4 and very soon I'll come out with
news (definitive venue, hotels/hostels, info about transportations,
etc.) on the wiki page. If there are no last minute changes the venue
will be just a couple of km away from the International airport, near
the centre of the city, served by metro.

Cheers

-- Giovanni --

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


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


Re: [Qgis-developer] hackfest in Lisbon

2011-03-08 Thread Tim Sutton
Hi Julien

On Tue, Mar 8, 2011 at 7:28 PM, Julien Malik julien.ma...@c-s.fr wrote:
 Dear hackers,

 As a member of the Orfeo Toolbox core development team, I propose to join
 you at the next HackFest in Lisbon.

 This would be a great occasion to discuss with you about :
 - the image processing needs in QGis, and how they can eventually be
 fulfilled by OTB.
 - the UI / end-user application needs of OTB users, for which we feel Qgis
 is a very serious option.

 I could show to those interested what we've done with QGis recently, and
 will be glad to get some direct feedback.
 Also, I know there is currently a huge initiative on raster providers, and
 that it's been an idea to have an OTB implementation supporting streaming,
 in memory images, etc... .
 We did not follow the latest devs very closely, but that would be a good
 occasion to exchange ideas, and maybe get my hand on some code around this.

 As OTB is primarily a C++ library, I'm also particularly interested in the
 C++ plugin functionnalities of Qgis, so if you need some help to add
 functionnalities to them, this might also be something I can work on.


 Does the idea suit you ?


Please come!!! :-)

Look forward to seeing you there!

Regards

Tim

 Regards,
 Julien


 Le 05/02/2011 19:12, Giovanni Manghi a écrit :

 Hi all, Jurgen, Paolo,

 Why should anyone if the date is not set yet?  Maybe there should have
 been a
 deadline for the doodle page.

 You're right.

 Anyway, 15-17.4 seems set now.   Who closes the doodle page and fixes
 the date
 on the wiki page?

 The Doodle was set to make possible choose the best dates for you devs
 (and was asked by you). I didn't realized it was a problem.

 In any case the core devs have already voted and so I'll close the
 Doodle. The dates will be then 15-17.4 and very soon I'll come out with
 news (definitive venue, hotels/hostels, info about transportations,
 etc.) on the wiki page. If there are no last minute changes the venue
 will be just a couple of km away from the International airport, near
 the centre of the city, served by metro.

 Cheers

 -- Giovanni --

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

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




-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Radim Blazek
Merged to trunk.

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


[Qgis-developer] Icons disappearing when opening attribute table

2011-03-08 Thread Ivan Mincik
Hi can anybody confirm following behavior ?

Would You please configure Your QGIS to Open attribute table in dock
window, load this example data [1] and choose Layer - Open Attribute
Table ?

In my case attribute table window is opened with blank buttons without
any icons. Icons will appear when moving mouse cursor over. The same I
can reproduce when resizing attribute table window. It seems that this
behavior occurs when some bigger shapefile with longer rendering time
( 5 seconds) is loaded. When using attribute table in separate window
(not in dock window), icons are loaded correctly.

Software details:
OS: Debian Squeeze - Gnome, standard Clearlooks theme using Clearlooks buttons
QGIS: Trunk (I remember this behavior for versions in last few weeks)

If somebody can confirm, I will open ticket.
Thanks, Ivan

[1] - http://gista.sk/home/ivo/dl/qgis_demodata.tar.gz
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Icons disappearing when opening attribute table

2011-03-08 Thread Werner Macho
hi Ivan!

Testet and confirmed.. no Icons appear - only when you move mouse cursor
over it ..

Tested latest trunk version r15392

so you can open a ticket..

regards
werner


On 03/08/11 22:25, Ivan Mincik wrote:
 Hi can anybody confirm following behavior ?

 Would You please configure Your QGIS to Open attribute table in dock
 window, load this example data [1] and choose Layer - Open Attribute
 Table ?

 In my case attribute table window is opened with blank buttons without
 any icons. Icons will appear when moving mouse cursor over. The same I
 can reproduce when resizing attribute table window. It seems that this
 behavior occurs when some bigger shapefile with longer rendering time
 ( 5 seconds) is loaded. When using attribute table in separate window
 (not in dock window), icons are loaded correctly.

 Software details:
 OS: Debian Squeeze - Gnome, standard Clearlooks theme using Clearlooks buttons
 QGIS: Trunk (I remember this behavior for versions in last few weeks)

 If somebody can confirm, I will open ticket.
 Thanks, Ivan

 [1] - http://gista.sk/home/ivo/dl/qgis_demodata.tar.gz
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

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


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Tim Sutton
\o/ \o/ \o/ \o/ -- happy QGIS users everywhere

On Tue, Mar 8, 2011 at 9:17 PM, Radim Blazek radim.bla...@gmail.com wrote:
 Merged to trunk.

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




-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Carson Farmer
Works beautifully (I'm looking at a reprojected alaska landcover test
dataset as I type this)! One comment though: The Debug output is
*extremely* verbose... as in... it looks like the matrix screen with
numbers running down my console ;-) Is this necessary?

Carson

On Tue, Mar 8, 2011 at 11:32 PM, Borys Jurgiel li...@borysjurgiel.pl wrote:
 Finally! :-) It's impressing. I observe two issues only:

 1. Histogram stretch doesn't work with OTFR enabled (both tools: the one in
 layer context menu and the one in toolbar). By the way, why there are the two
 tools for stretching? The one in toolbar works with grayscale rasters only,
 while the one in the layer context menu seems to work always.

 2. GDAL TMS layers don't work. I get a warning messageBox:

 Cannot ChunkAndWarpImage : Integer overflow : nSrcXSize=1048576,
 nSrcYSize=1048576

 This is, for example, a TMS source that doesn't work any more:

 GDAL_WMS
        Service name=TMS
                
 ServerUrlhttp://tile.openstreetmap.org/${z}/${x}/${y}.png/ServerUrl
        /Service
        DataWindow
                UpperLeftX-20037508.34/UpperLeftX
                UpperLeftY20037508.34/UpperLeftY
                LowerRightX20037508.34/LowerRightX
                LowerRightY-20037508.34/LowerRightY
                TileLevel16/TileLevel
                TileCountX1/TileCountX
                TileCountY1/TileCountY
                YOrigintop/YOrigin
        /DataWindow
        ProjectionEPSG:900913/Projection
        BlockSizeX256/BlockSizeX
        BlockSizeY256/BlockSizeY
        BandsCount3/BandsCount
        Cache
                Extension.png/Extension
        /Cache
 /GDAL_WMS

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] 1 Mac section was skipped in r15383

2011-03-08 Thread William Kyngesburye
Indeed, that works for me also.

On Mar 8, 2011, at 11:17 AM, Tom Elwertowski wrote:

 Removing the windowTitle property from qgisapp.ui works for me. The title 
 after startup is Quantum GIS r15387M so it's still being set somewhere 
 later.
 
 Tom
 
 
 Martin Dobias wrote:
 On Tue, Mar 8, 2011 at 5:29 PM, Tom Elwertowski
 telwertow...@comcast.net  wrote:
 The following workaround may shed some light on the source of the problem:
 
 Comment out the first line of retranslateUI in ui_ggisapp.h
 (MainWindow-setWindowTitle)
 
 This suggests to me that something needed by setWindowTitle for this object
 may not be initialized yet.
 
 Hmm... would it help to completely remove windowTitle property from
 main window in qgisapp.ui file?
 
 Martin
 
 

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

Earth: Mostly harmless

- revised entry in the HitchHiker's Guide to the Galaxy


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


Re: [Qgis-developer] 1 Mac section was skipped in r15383

2011-03-08 Thread Noli Sicad
Hi William,

Looking forward to see the new raster provider in QGIS Mac OS X build.

Watching your Developer Build.
http://www.kyngchaos.com/software/qgis

Thanks.

Noli


On 3/9/11, William Kyngesburye wokl...@kyngchaos.com wrote:
 Indeed, that works for me also.

 On Mar 8, 2011, at 11:17 AM, Tom Elwertowski wrote:

 Removing the windowTitle property from qgisapp.ui works for me. The title
 after startup is Quantum GIS r15387M so it's still being set somewhere
 later.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] How to handle errors when loading the project

2011-03-08 Thread Chris Crook
Hi All

I've recently had problems with loading project files and think it would be 
good to change the handling of this a bit!

First a bit of background.

My problems originally came from the changes to the delimited text provider to 
use Qurl.fromLocalFile as the datasource.  I think this is a great change - but 
it does break existing project files.  Also it isn't consistently implemented 
where the datasource is used in QgsMapLayer and QgsHandleBadLayers.  I've 
submitted a patch to fix this http://trac.osgeo.org/qgis/ticket/3570

But then I had problems with missing symbology information in my project files. 
 I've no idea why this was, but the result was that the layer failed to load, 
and I got the bad layer handler dialog (great improvement on the original one 
by one handling BTW).  The problem is that this only lets me reselect the file 
to load into the layer under the assumption that the layer isn't loading 
because the file has moved.  So in my case I can browse and reselect the 
correct file, but the layer still doesn't load as the symbology is still bad.
This is very confusing from a user's perspective.

There are certainly valid cases, apart from the apparent corruption in my 
project file, when a symbology won't load.  For example a user may have removed 
a renderer plugin.  

I've proposed a short term fix in http://trac.osgeo.org/qgis/ticket/3572, 
which is to revert to a default symbology if the layer cannot be loaded.

End of background.

This raises the question of how to deal well with project load errors.  Ideally 
the user should get a message indicating what the problem is, and some options 
as to how to deal with it.  And this requires a means of recording this 
information as the project is loading, which is independent of the GUI, and 
then displaying it and handling it in the GUI.

Where should this be stored?  

Thinking aloud now, one option would be to add error/warning status information 
to the projects and layers.  Say a QgsErrorStatus class (StringLists for 
errors, and warnings?).  The QgsProject and QgsMapLayer could have mLoadErrors 
members with this information (slight problem with layers if the object is 
deleted when it fails to load!).  

So far fairly easy!  The question I then have is how to handle the errors.  
Maybe it needs something more sophisticated like a base error class, and 
subclasses which can override a handleError method?  How would this interface 
with the GUI? With the project? Or with the project DOM?

Any thoughts on good implementation patterns?

Cheers
Chris



__

This message contains information, which is confidential and may be subject to 
legal privilege. 
If you are not the intended recipient, you must not peruse, use, disseminate, 
distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 
0800 665 463 or i...@linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any 
attachments, after its transmission from LINZ.

Thank you.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster on the fly

2011-03-08 Thread custard
I can confirm this with this data.

It is further than I get with my datasets. I usually only get to step 2, and 
the datum is unimportant.

It's quite annoying because it means that any dataset I have with a raster, and 
on the fly selected causes qgis-dev to crash.

-ramon.


- Original Message -
From: Luiz Motta motta.l...@gmail.com
To: qgis-dev qgis-developer@lists.osgeo.org
Sent: Wednesday, 9 March, 2011 9:26:09 AM GMT +08:00 Beijing / Chongqing / Hong 
Kong / Urumqi
Subject: [Qgis-developer] Raster on the fly

Devs,

I had problem with  image to set on the fly.

The example of image is:
http://www.engesat.com.br/cddemo/ikonos/11bits/composicao/psm/geotiff/guaxupe_psm11.zip

I am testing with:
1) Windows XP
2) QGIS 1.7 r15395

The QGIS crash with steps below:
1) Open image
2) Enable   on the fly with CRS WG84/Geographic (EPSG 4326)
3) Zoom to layer extent * Crash


Regards,
Luiz Motta
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Compile QGIS r15395 - ui_qgisapp.h not found

2011-03-08 Thread Luiz Motta
Devs,

I tried compile QGIS r15395, in ubuntu 10.10,  and get this message:

[ 35%] Building CXX object src/app/CMakeFiles/qgis.dir/main.cpp.o
In file included from /home/lmotta/dev/cpp/qgis/src/app/main.cpp:66:
/home/lmotta/dev/cpp/qgis/src/app/qgisapp.h:83: fatal error:
ui_qgisapp.h: Arquivo ou diretório não encontrado
compilation terminated.
make[2]: ** [src/app/CMakeFiles/qgis.dir/main.cpp.o] Erro 1
make[1]: ** [src/app/CMakeFiles/qgis.dir/all] Erro 2
make: ** [all] Erro 2

I followed the qgis-1.6.0_coding-compilation_guide_en.pdf (using ccmake).

Regards,
Luiz Motta
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Radim Blazek
On Wed, Mar 9, 2011 at 12:32 AM, Borys Jurgiel li...@borysjurgiel.pl wrote:
 1. Histogram stretch doesn't work with OTFR enabled (both tools: the one in
 layer context menu and the one in toolbar).

Fixed.

 By the way, why there are the two
 tools for stretching? The one in toolbar works with grayscale rasters only,
 while the one in the layer context menu seems to work always.

No idea. Each one is calling different method :
toolbar - QgisApp::localHistogramStretch()
c. menu - QgsLegend::legendLayerStretchUsingCurrentExtent()

It should use just one method and it should be moved to QgsRasterLayer.
But which one? QgsLegend::legendLayerStretchUsingCurrentExtent() may
also change drawingStyle and there is a comment in the code:
// Note: Do we really want to do these next clauses? The user will get
a surprise when the
// drawing style they are using suddenly changes! TS

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


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Ivan Mincik
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/08/2011 08:17 PM, Radim Blazek wrote:
 Merged to trunk.

Congratulations,
I was testing WMS layer reprojection. It is working flawlessly. I am
impressed by speed.

Perfect work.

- -- 
Ivan Mincik, Gista s.r.o.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk13JMMACgkQVqso/9cUsCwJLgCeNCzTpXc92e2IexG/dKb/Fhvg
uXgAn1ayCCcax7ONrCXNN+TsaWjCMa9X
=+E80
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Raster providers

2011-03-08 Thread Tim Sutton
Hi

On Wed, Mar 9, 2011 at 8:33 AM, Radim Blazek radim.bla...@gmail.com wrote:
 On Wed, Mar 9, 2011 at 12:32 AM, Borys Jurgiel li...@borysjurgiel.pl wrote:
 1. Histogram stretch doesn't work with OTFR enabled (both tools: the one in
 layer context menu and the one in toolbar).

 Fixed.

 By the way, why there are the two
 tools for stretching? The one in toolbar works with grayscale rasters only,
 while the one in the layer context menu seems to work always.

 No idea. Each one is calling different method :
 toolbar - QgisApp::localHistogramStretch()
 c. menu - QgsLegend::legendLayerStretchUsingCurrentExtent()


I will update the toolbar to use the same method - it should work for
multiband imagery too. I think I copied the context menu one when I
did the toolbar but maybe I am wrongI'll update it.


Regards

Tim


 It should use just one method and it should be moved to QgsRasterLayer.
 But which one? QgsLegend::legendLayerStretchUsingCurrentExtent() may
 also change drawingStyle and there is a comment in the code:
 // Note: Do we really want to do these next clauses? The user will get
 a surprise when the
 // drawing style they are using suddenly changes! TS

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




-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Compile QGIS r15395 - ui_qgisapp.h not found

2011-03-08 Thread Paolo Cavallini
Il giorno mar, 08/03/2011 alle 22.58 -0300, Luiz Motta ha scritto: 
 Devs,
 
 I tried compile QGIS r15395, in ubuntu 10.10,  and get this message:

Just compiled in Debian unstable, all went smoothly.
All the best.
-- 
http://www.faunalia.it/pc

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