[Qgis-developer] some problems with GRASS rasters

2011-04-05 Thread Paolo Cavallini
Hi all.
With current trunk:
- r.out.tiff produces a raster with wrong projection
- several modules now produce a raster with a grey color table, instead
of a coloured one as it happened before (e.g. r.los, r.reclass).
If anyone confirms, I can open tickets.
Thanks.
-- 
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] GSoC proposal: DBManager

2011-04-05 Thread Tim Sutton
Hi Guiseppe

8>
>> Proposal.
>> My aim is to merge both 3 plugins together and create the DB_manager plugin.
>>
>> First and the most important requirement, the DB_manager plugin *must* be
>> easily
>> expandable to manage different kind of databases (e.g. mysql, ...).
>> I didn't look ahead when I forked PG_manager, but I want to correct my
>> mistakes.
>>
>> Second, it should permit an easy management of databases, running common
>> tasks
>> as create/alter/delete tables, retrieve infos about tables, run queries, ...
>> .
>> Those are implemented in PG/SL_manager yet, but I have to do some changes to
>> make them more general than they are.
>>
>> Third, DB_manager should allow to load tables as layer on the QGis canvas
>> and,
>> on the contrary, import layers from the canvas into the db.
>>
>> What is your opinion? Did I miss something?
>> What other features would you like to see? And what other plugins (if any)
>> would it be
>> good to integrate in?
>>
>> Thanks for your comments.
>>

What about having some kind of plugin architecture (I know a plugin
with plugins is probably a bit meta!) so that other DBMS backends can
easily use your manager? I'm thinking that other backends like
SQLAnywhere could easily also benifit from your work just by
implementing a small stub for your plugin api

I think you GSOC proposal would make a fantastic addition to QGIS and
I wish you all success with your proposal.

Regards

Tim


>> --
>> Giuseppe Sucameli
>>
>>
>> ___
>> Qgis-developer mailing list
>> Qgis-developer@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>
>
>
> --
> ___ ___ __
> Ricardo Garcia Silva
> ___
> 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


[Qgis-developer] Re: [Qgis-user] Re: 2 Questions on Road-Graph plugin

2011-04-05 Thread Sergey Yakushev
Hello

> Start point doesn't tie to the road!
> That could happen when using an "on the fly projected layer" , no it`s
> original one

What version of QGIS are you using? In the trunk this not should be.

> It is planned to include "salesman trouble" through this same plugin ?

Yes, but not soon :-)

> Excellent job
Thanks___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] GSoC proposal: DBManager

2011-04-05 Thread Ricardo Filipe Soares Garcia da
Hi Guiseppe

I think it is great that you're willing to develop the Database manager idea :)

Me and Luiz Motta have been collaborating on the customDBQuery plugin,
which also allows for loading of spatial queries on the map canvas. It
takes a more minimalist approach than the other plugins, requiring
hand typing of the SQL commands, but it works with postgis and
spatialite. In fact you can't call it a manager at all. Still, I think
your suggestion is way better ;)

Codewise, I think that using the geoalchemy project[1] is probably a
great starting point in order to achieve specific DBMS independence.
It already has support for postgis, spatialite, mysql, oracle, and
MSSQL Server 2008. I have been wanting to get into it myself, but I'm
still learning sqlalchemy ;)

The code for the customDBQuery plugin is hosted at the new
hub.qgis.org, if you'd care to take a look at it.

As for suggestions, in addition to what you mentioned, I guess the
only comment I'd add is to try and keep the feature list to the more
common tasks for GIS users, as it is probably quite an effort to
develop a full and robust DB manager for lots of different backends.
Anyway, I support your proposal 100%.

[1] - http://www.geoalchemy.org/

On Tue, Apr 5, 2011 at 4:32 PM, Giuseppe Sucameli  wrote:
> Hi devs,
>
> I'd like to attend the GSoC 2011 as student to develop the following idea:
> http://www.qgis.org/wiki/Google_Summer_of_Code_2011#Database_Manager
>
> Brief.
> I think PG_manager is a very useful plugin because permits users to get
> informations
> and run queries on a PG database from within QGis. Furthermore PG_manager
> GUI is
> very intuitive!
> So, at the HF in Pisa (2010.04) I starting to develop SL_manager, based on
> PG_manager but working on SpatiaLite databases. Unfortunately I didn't
> adapted the
> existent code to manage SL databases, instead I forked it.
>
> Now there're 2 different plugins based on the same code and it's very
> difficult
> maintaining both as porting fixes between them and adding new features could
> require a lot of time.
>
> There's another plugin based on PG_manager, it's the RT_Sql_Layer plugin
> which
> allow users to load a PG or SL layer using whatever select statement.
>
> Proposal.
> My aim is to merge both 3 plugins together and create the DB_manager plugin.
>
> First and the most important requirement, the DB_manager plugin *must* be
> easily
> expandable to manage different kind of databases (e.g. mysql, ...).
> I didn't look ahead when I forked PG_manager, but I want to correct my
> mistakes.
>
> Second, it should permit an easy management of databases, running common
> tasks
> as create/alter/delete tables, retrieve infos about tables, run queries, ...
> .
> Those are implemented in PG/SL_manager yet, but I have to do some changes to
> make them more general than they are.
>
> Third, DB_manager should allow to load tables as layer on the QGis canvas
> and,
> on the contrary, import layers from the canvas into the db.
>
> What is your opinion? Did I miss something?
> What other features would you like to see? And what other plugins (if any)
> would it be
> good to integrate in?
>
> Thanks for your comments.
>
> --
> Giuseppe Sucameli
>
>
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



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


Re: [Qgis-developer] GRASS vectors unusable on win

2011-04-05 Thread Paolo Cavallini
Il giorno mar, 05/04/2011 alle 23.05 +1000, Nathan Woodrow ha scritto:
> I'm not sure how much help I will be but I will have a look into what
> might be happening over the next couple of days.  I use that plugin at
> work and I don't really want it dropped from the release.

I solicit an active response from all the GRASS users. Without concrete
help, I do not think we can ship GRASS plugin on win for now. 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


[Qgis-developer] GSoC proposal: DBManager

2011-04-05 Thread Giuseppe Sucameli
Hi devs,

I'd like to attend the GSoC 2011 as student to develop the following idea:
http://www.qgis.org/wiki/Google_Summer_of_Code_2011#Database_Manager

Brief.
I think PG_manager is a very useful plugin because permits users to get
informations
and run queries on a PG database from within QGis. Furthermore PG_manager
GUI is
very intuitive!
So, at the HF in Pisa (2010.04) I starting to develop SL_manager, based on
PG_manager but working on SpatiaLite databases. Unfortunately I didn't
adapted the
existent code to manage SL databases, instead I forked it.

Now there're 2 different plugins based on the same code and it's very
difficult
maintaining both as porting fixes between them and adding new features could

require a lot of time.

There's another plugin based on PG_manager, it's the RT_Sql_Layer plugin
which
allow users to load a PG or SL layer using whatever select statement.

Proposal.
My aim is to merge both 3 plugins together and create the DB_manager plugin.

First and the most important requirement, the DB_manager plugin *must* be
easily
expandable to manage different kind of databases (e.g. mysql, ...).
I didn't look ahead when I forked PG_manager, but I want to correct my
mistakes.

Second, it should permit an easy management of databases, running common
tasks
as create/alter/delete tables, retrieve infos about tables, run queries, ...
.
Those are implemented in PG/SL_manager yet, but I have to do some changes to

make them more general than they are.

Third, DB_manager should allow to load tables as layer on the QGis canvas
and,
on the contrary, import layers from the canvas into the db.

What is your opinion? Did I miss something?
What other features would you like to see? And what other plugins (if any)
would it be
good to integrate in?

Thanks for your comments.

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


Re: [Qgis-developer] GRASS vectors unusable on win

2011-04-05 Thread Paolo Cavallini
Il giorno mar, 05/04/2011 alle 14.06 +0100, Giovanni Manghi ha scritto: 
> About the other two it seems that was about problems with the dbf
> support.

Not confirmed. We have the same issues wit SQLite as a backend.

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] GRASS vectors unusable on win

2011-04-05 Thread Giovanni Manghi
The problems are described in three tickets I linked here in the past days.

g.remove does not work on wingrass then it does not work also in qgis.

About the other two it seems that was about problems with the dbf
support. A comment seems to point that these problem have been already
solved in the latest grass versions (I don't if there were backports
in grass 6.4).

cheers

-- Giovanni  --

On Tue, Apr 5, 2011 at 2:01 PM, Paolo Cavallini  wrote:
> Hi all.
> IMHO, the GRASS vector support is currently unusable on windows.
> Importing and removing vectors does not work reliably. I think we should
> either fix it or drop the plugin on windows before the release.
> 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
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] GRASS vectors unusable on win

2011-04-05 Thread Nathan Woodrow
I'm not sure how much help I will be but I will have a look into what might
be happening over the next couple of days.  I use that plugin at work and I
don't really want it dropped from the release.

- Nathan

On Tue, Apr 5, 2011 at 11:01 PM, Paolo Cavallini wrote:

> Hi all.
> IMHO, the GRASS vector support is currently unusable on windows.
> Importing and removing vectors does not work reliably. I think we should
> either fix it or drop the plugin on windows before the release.
> 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
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] GRASS vectors unusable on win

2011-04-05 Thread Paolo Cavallini
Hi all.
IMHO, the GRASS vector support is currently unusable on windows.
Importing and removing vectors does not work reliably. I think we should
either fix it or drop the plugin on windows before the release.
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] Design own QGIS icons

2011-04-05 Thread Tim Sutton
Hi


On Tue, Apr 5, 2011 at 11:38 AM, Andreas Neumann  wrote:
> Hi Christoph,
>
> You can finde them in the QGIS trunk sourcecode:
> http://svn.osgeo.org/qgis/trunk/qgis/images/themes/
>
> For most icons you can also get the source svg files which you can use for
> editing in Inkscape or Illustrator.
>
> Andreas

Christoph you can also get them from the source at

http://svn.osgeo.org/osgeo/graphics/trunk/toolbar-icons/24x24/

Note that QGIS has more than one icon theme - if you really want your
stuff to integrate nicely you should make your code theming aware. For
plugins there is an example of how to do that in e.g.
src/plugins/copyright_label/plugin.cpp for references to
'setCurrentTheme'. The aforementioned example has its theme icons in
the core qgis icon collection, but you can also store your different
them icons in the resource file (e.g.
src/plugins/copyright_label/copyright_plugin.qrc) and then use a
relative path into that qrc file to pick up the correct icon for the
current theme. The grass plugin and its qrc are probably the best
example of how this is done.

Its not been agreed yet, but in the run up to QGIS 2.0 we may drop
some of the alternate themes and just ship with GIS theme.


Regards

Tim

>
> On Tue, 5 Apr 2011 11:21:49 +0200, Goo Creations wrote:
>>
>> Hello
>>
>> I want to design my own icons for my QGIS plugin. These icons should
>> fit in with the QGIS theme. Is there any way I can get the individual
>> components (eg: the shape for the layer (raster or vector layer icon)
>> or the + icon on top of the add rsater layer)?
>>
>> Christoph
>
> --
> --
> Andreas Neumann
> Böschacherstrasse 10A
> 8624 Grüt (Gossau ZH)
> Switzerland
> ___
> 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] Design own QGIS icons

2011-04-05 Thread Andreas Neumann

Hi Christoph,

You can finde them in the QGIS trunk sourcecode:
http://svn.osgeo.org/qgis/trunk/qgis/images/themes/

For most icons you can also get the source svg files which you can use 
for editing in Inkscape or Illustrator.


Andreas

On Tue, 5 Apr 2011 11:21:49 +0200, Goo Creations wrote:

Hello

I want to design my own icons for my QGIS plugin. These icons should
fit in with the QGIS theme. Is there any way I can get the individual
components (eg: the shape for the layer (raster or vector layer icon)
or the + icon on top of the add rsater layer)?

Christoph


--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Design own QGIS icons

2011-04-05 Thread Goo Creations
Hello

I want to design my own icons for my QGIS plugin. These icons should fit in
with the QGIS theme. Is there any way I can get the individual components
(eg: the shape for the layer (raster or vector layer icon) or the + icon on
top of the add rsater layer)?

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


Re: [Qgis-developer] crash while loading shapefile when GRASS active

2011-04-05 Thread Paolo Cavallini
In particular, this happens when I load a shp with a preset style (qml).
If I load the style afterwards, It does not crash.
shp+style available it useful.
Thanks.

Il giorno mar, 05/04/2011 alle 11.13 +0200, Paolo Cavallini ha scritto: 
> Hi all.
> If I load a shp after having loaded one GRASS raster and one GRASS
> vector, I get a crash:

-- 
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] crash while loading shapefile when GRASS active

2011-04-05 Thread Paolo Cavallini
It was simpler that that: it crashes just by loading a shp.

Il giorno mar, 05/04/2011 alle 11.13 +0200, Paolo Cavallini ha scritto:

> Error: 
> GDAL Error 1: Invalid index : -1

-- 
Paolo Cavallini: http://www.faunalia.it/pc

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


[Qgis-developer] crash while loading shapefile when GRASS active

2011-04-05 Thread Paolo Cavallini
Hi all.
If I load a shp after having loaded one GRASS raster and one GRASS
vector, I get a crash:

Error: 
GDAL Error 1: Invalid index : -1

Here is the debug info:

Program terminated with signal 11, Segmentation fault.
#0  0x7f38d821bb5a in strchrnul () from /lib/libc.so.6

#0  0x7f38d821bb5a in strchrnul () from /lib/libc.so.6
#1  0x7f38d81dccbf in vfprintf () from /lib/libc.so.6
#2  0x7f38d82023f2 in vsnprintf () from /lib/libc.so.6
#3  0x7f38aef51a21 in Rf_warning () from /usr/lib/libR.so
#4  0x7f38aef995b5 in setup_Rmainloop () from /usr/lib/libR.so
#5  0x01c00200 in ?? ()
#6  0x in ?? ()

Any hint?
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] search and catalog tool

2011-04-05 Thread Barry Rowlingson
>  I don't see why a catalog index would use a particular standard, it
> would just enable searches in the metadata held by data sources
> according to the standards they may be using. So for a GDAL dataset,
> it would just call g.GetMetadata_List() (I think) and stash the
> returned text in its db.

 Although I've just looked at the OGR api and had a thought - where do
OGR vector layers get their metadata from?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] add form elements dynamically - qgis python plugin

2011-04-05 Thread Bernhard Ströbl

Hi Karsten,

I think you need to add the QComboBox to your dialog in order to make it 
show
_but_ if you have a ui file why don't you create the QComboBox in 
QtDesigner?
you can access it like this (ui file must have been converted into py 
file with pyuic4):

comboBoxNew = self.ui.comboBoxNew

I was in a similar situation (beginner with python, Qt and QGIS) some 8 
months ago, so here are some other thoughts:


be sure that you have read about QGIS' dynamic forms
http://linfiniti.com/2009/11/creating-dynamic-forms-a-new-feature-headed-for-qgis-1-4/

some Python code to use them:
http://www.osgeo.org/pipermail/qgis-developer/2010-January/008731.html

last but not least:
You can define a comboBox in the layer properties (edit widget = value 
map) and populate it from a csv file. The values are saved with the 
project or a qml file. It is even possible to manipulate the qml file 
thus synchronising the values with the current version of the csv file 
and then reapply it to the layer. I could provide some code for this if 
you are interested.


regards

Bernhard

karsten vennemann schrieb:

Hi I am a beginner with python , QGIS and pyQT.
 
I am working on a python plug-in and would like to populate dynamically 
a pyQT based QDialog form with combo boxes at runtime (the elements to 
be added are input via a config txt file that is read). Thus I would 
like to get hints how I can do this .
 
I have a a py file with the dialog form (streameditcustomformdialog.py):
 
from PyQt4 import QtCore, QtGui

from ui_streameditcustomform import Ui_StreamEditCustomForm
# create the dialog for zoom to point
class StreamEditCustomFormDialog(QtGui.QDialog):
def __init__(self, parent = None):
QtGui.QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_StreamEditCustomForm()
self.ui.setupUi(self)
 
and a routine that reads the config file and should populate the form 
with new comboxes:
 
def inputConfig(self):
   
# QgisMainWindow = qgis.utils.iface.mainWindow()   
filename = QFileDialog.getOpenFileName(None, 'Open File', "C:/", \
"Text Files (*.txt *.csv)");  
if filename:
formconfig_input = open(filename, 'r')   # input species 
info id , name for batch processing

while 1:
formconfig_line  = formconfig_input.readline() # 
read  csv text file line

if not formconfig_line: break
formconfig_splitline = formconfig_line.split(',')
if len(formconfig_splitline) < 3:
QMessageBox.information(None,"A problem occured with 
your input file.", \
"The file you choose did not have the proper \n 
syntax or number of comma separated fields.")

return
else:
fieldname1   = formconfig_splitline[0]
fieldtype1   = formconfig_splitline[1]
fieldlength1 = formconfig_splitline[2]
QMessageBox.information(None,"Form Info:", \
fieldname1 + '\n' + fieldtype1 + '\n' + fieldlength1)
self.dlg = StreamEditCustomFormDialog()
#show the dialog
self.dlg.comboBoxNew = QtGui.QComboBox()
self.dlg.comboBoxNew.setObjectName("comboBox")
self.dlg.comboBoxNew.setItemText(1, 
QtGui.QApplication.translate("Form", "bw", None, 
QtGui.QApplication.UnicodeUTF8))

self.dlg.show()
return
formconfig_input.close
 
However I tried it above - the combo box does not appear on the form 
which is showing ok if I run the plugin, no error message ...but no 
combo box ...
 
What am I doing wrong?
Will this take care of layout management or how could I have the layout 
(e.g. size of form handled if many combo boxes are added ?
 
Thanks

Karsten

Karsten Vennemann

Terra GIS LTD
www.terragis.net 




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


 Information from NOD32 
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com


--
Dipl.-Geogr. Bernhard Ströbl
Anwendungsbetreuer GIS
Kommunale Immobilien Jena
 - Datenverarbeitung -
mailto:bernhard.stro...@jena.de
http://kij.jena.de/



 Information from NOD32 
This message was checked by NOD32 Antivirus System for Linux Mail Server.
http://www.nod32.com
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] search and catalog tool

2011-04-05 Thread Barry Rowlingson
On Tue, Apr 5, 2011 at 8:51 AM, Paolo Cavallini  wrote:
> Il giorno mar, 05/04/2011 alle 09.23 +0200, Tim Sutton ha scritto:
>
>> The pieces for such functionality are coming together and I think it
>> wont be long before we have a robust catalogue tool for QGIS.
>
> Great news. Could you  please let us know more about the project? Which
> metadata standard will the catalogue use?
> All the best.

 I don't see why a catalog index would use a particular standard, it
would just enable searches in the metadata held by data sources
according to the standards they may be using. So for a GDAL dataset,
it would just call g.GetMetadata_List() (I think) and stash the
returned text in its db. This would then be indexed and searchable.
The catalog tool itself is then neutral about metadata schema.

 I guess if the layer presents a well-known metadata scheme then it
can do what Voyager does:

http://voyagergis.com/doc/current/Show%20Metadata

 I think its too much of a task to expect a catalog tool to collate
all possible layers metadata into a single schema, although it could
expose a summary metadata of the simple stuff like extent, projection
etc for the layers in the catalog.

 I was thinking a catalog database could be a spatialite database,
with each layer a rectangular polygon, easily enabling spatial and
non-spatial searches...

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


Re: [Qgis-developer] search and catalog tool

2011-04-05 Thread Tim Sutton
Hi

On Tue, Apr 5, 2011 at 9:51 AM, Paolo Cavallini  wrote:
> Il giorno mar, 05/04/2011 alle 09.23 +0200, Tim Sutton ha scritto:
>
>> The pieces for such functionality are coming together and I think it
>> wont be long before we have a robust catalogue tool for QGIS.
>
> Great news. Could you  please let us know more about the project? Which
> metadata standard will the catalogue use?
> All the best.

Its an extension / rewrite of Alex Mandel's metaedit plugin but aiming
to be more user friendly and allow faster data capture.

It supports IS19115 metadata - you need to define the profile you wish
to use with it. Currently there is one profile based on the needs of
my client.

@Alex Bruy can we give out your SVN repo details for interested people
to test with?

When the work is done we will offer it for inclusion into QGIS core.

Regards

Tim

> --
> Paolo Cavallini: http://www.faunalia.it/pc
>
>



-- 
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] add form elements dynamically - qgis python plugin

2011-04-05 Thread Camilo Polymeris
I would try any of the following:

>     self.dlg.comboBoxNew = QtGui.QComboBox()

- set the Combobox's parent to the dialog or layout:

self.dlg.comboBoxNew = QtGui.QComboBox(self.dlg)

>     self.dlg.comboBoxNew.setObjectName("comboBox")
>     self.dlg.comboBoxNew.setItemText(1,
> QtGui.QApplication.translate("Form", "bw", None,
> QtGui.QApplication.UnicodeUTF8))

- add the combobox to the dialog's layout after that:

self.dlg.layout().addWidget(self.dlg.comboBoxNew)

Does that help?

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


Re: [Qgis-developer] search and catalog tool

2011-04-05 Thread Paolo Cavallini
Il giorno mar, 05/04/2011 alle 09.23 +0200, Tim Sutton ha scritto:

> The pieces for such functionality are coming together and I think it
> wont be long before we have a robust catalogue tool for QGIS.

Great news. Could you  please let us know more about the project? Which
metadata standard will the catalogue use?
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


[Qgis-developer] add form elements dynamically - qgis python plugin

2011-04-05 Thread karsten vennemann
Hi I am a beginner with python , QGIS and pyQT.
 
I am working on a python plug-in and would like to populate dynamically a pyQT 
based QDialog form with combo boxes at runtime (the elements to be added are 
input via a config txt file that is read). Thus I would like to get hints how I 
can do this .
 
I have a a py file with the dialog form (streameditcustomformdialog.py):
 
from PyQt4 import QtCore, QtGui
from ui_streameditcustomform import Ui_StreamEditCustomForm
# create the dialog for zoom to point
class StreamEditCustomFormDialog(QtGui.QDialog):
def __init__(self, parent = None):
QtGui.QDialog.__init__(self)
# Set up the user interface from Designer.
self.ui = Ui_StreamEditCustomForm()
self.ui.setupUi(self)

 
and a routine that reads the config file and should populate the form with new 
comboxes:
 
def inputConfig(self):

# QgisMainWindow = qgis.utils.iface.mainWindow()
filename = QFileDialog.getOpenFileName(None, 'Open File', "C:/", \
"Text Files (*.txt *.csv)");   
if filename:
formconfig_input = open(filename, 'r')   # input species info id , 
name for batch processing
while 1:
formconfig_line  = formconfig_input.readline() # read  
csv text file line 
if not formconfig_line: break
formconfig_splitline = formconfig_line.split(',')
if len(formconfig_splitline) < 3:
QMessageBox.information(None,"A problem occured with your 
input file.", \
"The file you choose did not have the proper \n syntax or 
number of comma separated fields.")
return
else:
fieldname1   = formconfig_splitline[0]
fieldtype1   = formconfig_splitline[1]
fieldlength1 = formconfig_splitline[2]
QMessageBox.information(None,"Form Info:", \
fieldname1 + '\n' + fieldtype1 + '\n' + fieldlength1)
self.dlg = StreamEditCustomFormDialog()
#show the dialog
self.dlg.comboBoxNew = QtGui.QComboBox()
self.dlg.comboBoxNew.setObjectName("comboBox")
self.dlg.comboBoxNew.setItemText(1, 
QtGui.QApplication.translate("Form", "bw", None, 
QtGui.QApplication.UnicodeUTF8))
self.dlg.show()
return
formconfig_input.close
 
However I tried it above - the combo box does not appear on the form which is 
showing ok if I run the plugin, no error message ...but no combo box ...
 
What am I doing wrong?
Will this take care of layout management or how could I have the layout (e.g. 
size of form handled if many combo boxes are added ?
 
Thanks
Karsten

Karsten Vennemann

Terra GIS LTD
www.terragis.net

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


Re: [Qgis-developer] search and catalog tool

2011-04-05 Thread Tim Sutton
Hi Barry

Nathan Woodrow has written a file browser plugin (QGIS File Browser).
I think it should be quite simple to add search / filter options to
it. We have also subcontracted out the development of a metadata
editor plugin for QGIS to GIS-LAB (Maxim Dubinin / Alex Bruy & co). In
the future the two tools could be fused some how so that clicking on a
file in the file browser shows its metadata, and that the file browser
can search through the metadata records based on user queries.

The pieces for such functionality are coming together and I think it
wont be long before we have a robust catalogue tool for QGIS.

Regards

Tim

On Mon, Apr 4, 2011 at 10:17 PM, Barry Rowlingson
 wrote:
> Saw this thing on a few blogs today:
>
> http://freegeographytools.com/2011/search-and-catalog-your-local-geodata-arcgis-users-only
>
> and of course seeing 'arcgis only' made me think that a similar tool
> that used gdal/ogr and interfaced to qgis (and other mapping packages)
> would be rather good.
>
> I recall starting to write something similar, but discovered so many
> spatial data sets appeared twice - for example a directory with
> shapefiles in it is seen by OGR as a data set with each shapefile a
> layer, and the shapefiles themselves appear as data sets in their own
> right. I think I stopped there (I'm easily beaten).
>
>  But I have a vague recall that someone else has worked on something
> similar. Or did I dream it?
>
> Barry
> ___
> 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