[Qgis-user] RE: Create an ODBC connection

2010-11-23 Thread LeventB

Thank you, Alister!
I simply did not think of such a simple workaround.
Yet, if someone knows more about how to establish an ODBC connection, i'm
still interested!
Perhaps it comes in handy another time.
Levent
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Create-an-ODBC-connection-tp5762667p5765913.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] qGIS WMS client question

2010-11-23 Thread paalkr

Hi!

I have some trouble using the new WMS client with support for group layers
introduced somewhere after qGIS 1.0. It looks like qGIS is not using the
named group layers in the GetMap request, but instead lists all sub-layers
contained in a group in the LAYERS GetMap parameter. And for some reason the
default layer order in the GetCapabilities document is not preserved in the
GetMap request by default. I know that the layer order dialog lets you
rearrange layers, but that is not very useful when the service consist of
more than 250 layers.

You could try the following service that will illustrate the problem pretty
good: http://openwms.statkart.no/skwms1/wms.topo2?

The service has two levels of named group layers, and selecting on of the
group layers in the qGIS WMS dialog should (ideally) result in a GetMap
request with the group layer(s) name in the LAYERS parameter, and not a list
of all the sub layers contained in the selected group(s). The described
method is used in uDig and other WMS clients, and I thing that qGIS should
consider the same behavior as it makes it easier to request services with
many layers.

Layer structure:

top group (name/title)
|-first group (name/title)
|--first group first layer (name/title)
|--first group second layer (name/title)
|-second group (name/title)
|--second group first layer (name/title)
|--second group second layer (name/title)
and so on...

example requests:

Top group layer (will result in a complete topographic map)
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1SERVICE=WMSREQUEST=GetMapSRS=EPSG:32633BBOX=-450399.46,6423971.38,1472547.15,7964820.62LAYERS=topo2_WMSSTYLES=WIDTH=926HEIGHT=742FORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=FALSE

Requesting all sub layers in default order (provided in the GetCapabilities
document) should result in the same map as the above request, but thats not
the case in qGIS 


First two group layers
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1SERVICE=WMSREQUEST=GetMapSRS=EPSG:32633BBOX=-450399.46,6423971.38,1472547.15,7964820.62LAYERS=Hoydelag,ArealdekkeflateSTYLES=WIDTH=926HEIGHT=742FORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=FALSE

All single layers in the first two group layers
http://openwms.statkart.no/skwms1/wms.topo2?VERSION=1.1.1SERVICE=WMSREQUEST=GetMapSRS=EPSG:32633BBOX=-450399.46,6423971.38,1472547.15,7964820.62LAYERS=N5000Hoydelag,N2000Hoydelag,N1000Hoydelag,N500Hoydelag,N250Hoydelag,N5000Arealdekkeflate,N2000Arealdekkeflate,N1000Arealdekkeflate,N500Arealdekkeflate,N250Arealdekkeflate,N50Arealdekkeflate,fkb_ar5,fkb_arealbrukSTYLES=WIDTH=926HEIGHT=742FORMAT=image/pngBGCOLOR=0xFFTRANSPARENT=FALSE

Regards,
Pål Kristensen
Norwegian Mapping Authority

-

Regards,
Pål Kristensen
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/qGIS-WMS-client-question-tp5766121p5766121.html
Sent from the qgis-user mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] An idea/wish for QGIS

2010-11-23 Thread Jorge Tornero
Hi all,

well, I've been experiencing lately with QGis diagram overlay feature
and I have to say that is still not enough for what I need. Plots are
not very customizable, adding categories is a matter of patience when
you have a relatively large amount of fields to plot (in my case, in
anchovy length distribution, about 25 of them) and normalization of the
diagrams is a little confusing. Anyway, it is a big feature but
unfortunately at last I have had to make my maps with gvSIG what really
disappoints me because map tools in gvSIG are (for me) a little bit
poor.

But I'have been messing with qgis new simbology and I have found very
interesting the option RULE BASED (I guess this is the correct
translation for the spanish Basado en reglas). Because I can define
individual marker for different values (based in that rules), I've done
the following:

1) I've created an bar chart with matplotlib as I want it to be (scale,
ticks..., colors)
2) I've saved it to a folder in my computer as SVG graphic, say
so /home/Figures
3) I've created a soft link to that folder in /usr/local/share/qgis/svg

Following this steps, what I get is the chance to choose my graph as the
marker of my point and I have to say that is really, really cool for me
because the look of the maps is great!!

But there is one problem... You can choose the graph but you don't have
any clue to tell which graph is what you want, because all you get in
the dialog of selection are the thumbnails of the SVG's in that
folder!!! So with, let's say 20 micro-pictures to choose is not very
useful...

So my idea/suggestion/wish is: To add to the symbol properties dialog
the possibility of loading a concrete SVG as marker, apart from the list
of default markers. It will not be a feature like automatic diagram
overlay but I think it is a very simple improvement that provides a
solution and eases the work of overlaying charts in maps (not only pie
and bar charts)

I don't really know if this is of any use for you but in my case, it has
been the big prize in days, because I feared of having to say goodbye to
Qgis until the diagram feature is improved.

Also I apologize if what I've said is just a obviousness... Maybe this
is a feature everybody knows and here I am thinking that I've discovered
the Philosopher's stone... :)

Best regards

Jorge Tornero


-- 
-
Jorge Tornero Núñez
Centro Oceanográfico de Cádiz
Instituto Español de Oceanografía
Puerto Pesquero - Muelle de Levante, s/n
11006 Cádiz - España
Tel. +34 956294189
Fax. +34 956294232
www.ieo.es
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Postgres 9 and PostGIS layers - 1 cursor states lost

2010-11-23 Thread Standaert Arnout
Hello,

I'm running QGis 1.7.0-Trunk (rev 14747) on Windows XP, from the OSGeo4W 
distribution.

When I try to load a PostGIS layer from a PostgreSQL 9 database (PostGIS 1.5), 
the loading fails and QGis shows this error message:

1 cursor states lost.
SQL: CLOSE qgisf6
Result: 7 (ERROR: current transaction is aborted, commands ignored 
until end of transaction block
)

I happen to have the same database in a PostgreSQL 8.3 + PostGIS 1.4 setup, and 
the layers do load without problems from there.

I haven't seen too much references online for this kind of error. Bug #3089 
seems to be related, and it has apparently been mentioned on IRC already, 
however without any clues for a solution.

Can anyone shed some more light on this?

Kind regards,
Arnout Standaert

PS. My apologies for the company disclaimer that will probably appear below 
this post.


---
This e-mail, any attachments and the information it contains are confidential 
and meant only for the use of the addressee(s) only.  Access to this e-mail by 
anyone other than the addressee(s) is unauthorized.  If you are not the 
intended addressee (or responsible for delivery of the message to such person), 
you may not use, copy, distribute or deliver to anyone this message (or any 
part of its contents) or take any action in reliance on it.  In such case, you 
should destroy this message and notify the sender immediately.  If you have 
received this e-mail in error, please notify us immediately by e-mail or 
telephone and delete the e-mail from any computer.
All reasonable precautions have been taken to ensure no viruses are present in 
this e-mail and its attachments.  As our company cannot accept responsibility 
for any loss or damage arising from the use of this e-mail or attachments we 
recommend that you subject these to your virus checking procedures prior to use.


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


Re: [Qgis-user] error postgis manager

2010-11-23 Thread Martin Dobias
On Tue, Nov 23, 2010 at 3:29 PM, Dario dari...@yahoo.com.br wrote:
 [...]
   File C:\Documents and
 Settings\Dgalvao/.qgis/python/plugins\postgis_manager\DatabaseModel.py,
 line 77, in constructTreeFromDb
     list_tables = db.list_geotables()
   File C:\Documents and
 Settings\Dgalvao/.qgis/python/plugins\postgis_manager\postgis_utils.py,
 line 256, in list_geotables
     items[i] = geo_item
 IndexError: list assignment index out of range

Hi,
does this happen every time you try to connect to your database?

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