[Qgis-user] PostGIS Manager plugin issue

2009-01-31 Thread Joe Larson

Last night I installed/ran the PostGIS Manager plugin with no issues on
my Ubuntu Intrepid laptop. Today (at work) I'm having an issue running
the plugin on my Ubuntu(guest), XP(host) - VirtualBox install.

I'll mention again that this worked right away on my laptop (after
installing psycopg2) not sure what's going on now..However currently,
when I click the plugin button, 1st I get the error msg:

#Couldn't connect to database:
#FATAL: Ident authentication failed for user "joe"

So I CREATE USER joe in psql. Attempt to run the plugin again:

#Couldn't connect to database:
#FATAL: database "joe" does not exist

I whip up a databased named joe and with OWNER postgres or joe I get the
error below

|###
An error has occurred while executing Python code:

Traceback (most recent call last):
 File
"/home/joe/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
148, in dbConnect
   self.dbInfo()
 File
"/home/joe/.qgis//python/plugins/postgis_manager/ManagerWindow.py", line
177, in dbInfo
   info = self.db.get_info()
 File
"/home/joe/.qgis//python/plugins/postgis_manager/postgis_utils.py", line
113, in get_info
   self._exec_sql(c, "SELECT version()")
 File
"/home/joe/.qgis//python/plugins/postgis_manager/postgis_utils.py", line
504, in _exec_sql
   raise DbError(e.message, e.cursor.query)
DbError: MESSAGE: current transaction is aborted, commands ignored until
end of transaction block

QUERY: SELECT version()

Python version:
2.5.2 (r252:60911, Oct  5 2008, 19:42:18)
[GCC 4.3.2]

Python path:['/usr/share/qgis/python',
'/home/joe/.qgis//python/plugins', '/usr/share/qgis/python/plugins',
'/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
'/usr/local/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/usr/lib/python2.5/site-packages/PIL',
'/usr/lib/python2.5/site-packages/gst-0.10',
'/var/lib/python-support/python2.5',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/var/lib/python-support/python2.5/gtk-2.0', '~/.qgis/python',
'/home/joe/.qgis/python/plugins/fTools/tools']
###

Also, when I 'OK' the error msg and click on the public schema in the
PostGIS Manager window - I get another err msg. I hope this is not just
some User/Login issue with Ubuntu..but I would appreciate some insight*joe
|

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


Re: [Qgis-user] polygon formation problems!

2009-01-31 Thread Goyo
El sáb, 31-01-2009 a las 20:57 +, ambrish dhaka escribió:
> Hello! Qgis users,
> I am a new user of qgis and wish to switch to open source but there
> are some usage difficulties that I need to be resolved.
> The polygons are created either by capture or splitting. There is no
> provision for creating an adjacent polygon with the help of a line.
> Secondly, whenever there are two polygons having common segment then
> there is overlaying of lines, which means that once the vertices are
> touched there is no more single common segment and it shows into two
> different segments. It has several demerits in terms of accuracy.

Did you try using GRASS vector layers? They use a more topological model than 
shapefiles.

Goyo

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


Re: [Qgis-user] polygon formation problems!

2009-01-31 Thread Carlos Dávila
ambrish dhaka escribió:
> Hello! Qgis users,
> I am a new user of qgis and wish to switch to open source but there
> are some usage difficulties that I need to be resolved.
> The polygons are created either by capture or splitting. There is no
> provision for creating an adjacent polygon with the help of a line.
> Secondly, whenever there are two polygons having common segment then
> there is overlaying of lines, which means that once the vertices are
> touched there is no more single common segment and it shows into two
> different segments. It has several demerits in terms of accuracy.
Have you tried "Enable topological editing" and "Avoid intersection of
new polygons" options under Project Properties>General tab.
Hope it helps.
Regards
Carlos
> I hope once these are properly addressed, I can go further into using
> this.
>
> Thanks!
> Ambrish Dhaka
> Assistant Professor
> Geography (New Delhi)

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


[Qgis-user] polygon formation problems!

2009-01-31 Thread ambrish dhaka

Hello! Qgis users,
I am a new user of qgis and wish to switch to open source but there are some 
usage difficulties that I need to be resolved.
The polygons are created either by capture or splitting. There is no provision 
for creating an adjacent polygon with the help of a line.
Secondly, whenever there are two polygons having common segment then there is 
overlaying of lines, which means that once the vertices are touched there is no 
more single common segment and it shows into two different segments. It has 
several demerits in terms of accuracy.
I hope once these are properly addressed, I can go further into using this.

Thanks!
Ambrish Dhaka
Assistant Professor
Geography (New Delhi)

_
For the freshest Indian Jobs Visit MSN Jobs
http://www.in.msn.com/jobs___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread Paolo Cavallini
Martin Dobias ha scritto:

> Even more work is underway! We're going to release a native C++
> OpenStreetMap provider for QGIS in few days. It will come also with
> OSM downloader and (very experimental) upload.
> 
> Creating another OSM plugin would therefore cause just code duplication.

That's quite a surprise! Great.
So Florian (and Maxim), I think you better move to another subject
(fortunately there are many suggestions).
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


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread Martin Dobias
On Sat, Jan 31, 2009 at 5:17 PM, Paolo Cavallini  wrote:
> Florian Hillen ha scritto:
>
>> first of all I want to thank everybody for the input an the suggestions.
>> Some plugins are a bit to extensive for my bachelor thesis (I can maximal
>> write about 40 pages), so I pick up the suggestion with the OpenStreetMap
>> plugin and modify it a little.
>
> I'm glad of this. Please keep in touch with the community of devs: more
> effort is underway, eg
> http://gis-lab.info/programs/qgis/qgis-repo.xml

Even more work is underway! We're going to release a native C++
OpenStreetMap provider for QGIS in few days. It will come also with
OSM downloader and (very experimental) upload.

Creating another OSM plugin would therefore cause just code duplication.

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


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread Paolo Cavallini
Florian Hillen ha scritto:

> first of all I want to thank everybody for the input an the suggestions.
> Some plugins are a bit to extensive for my bachelor thesis (I can maximal
> write about 40 pages), so I pick up the suggestion with the OpenStreetMap
> plugin and modify it a little.

I'm glad of this. Please keep in touch with the community of devs: more
effort is underway, eg
http://gis-lab.info/programs/qgis/qgis-repo.xml

> Thanks to everybody again and hopefully some of you will use my plugin in
> the future (even though I know that the plugin is more for private use
> than for commercial).

I'll do.
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


Re: [Qgis-user] Re: Feature inquiry: Multiple display windows?

2009-01-31 Thread G. Allegri
> AFAIU the wish, I've seen it also in GRASS GIS ;-)

Ahaha, right Martin. I wasn't considering GRASS because it was obvious to me :)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread G. Allegri
It's OT, we should open another thread... Anyway, it's not so clear.
When the Google license says "technology or means other than those
provided in the Service" what does it refer to exactly? OL is a "mean"
other than the google.maps interface... I'm not a lawyer, so I ask it
just to be sure.

2009/1/31 Yves Jacolin (free) :
> Le samedi 31 janvier 2009, G. Allegri a écrit :
>> >  10.1 access or use the Service or any Content through any
>> >  technology or means other than those provided in the Service,
>> >  or through other explicitly authorized means Google may designate;
>>
>> So even the OL google layer is out-of-law...
>
> OL is using Google API js, that's why it need javascript API link + google
> Key. In other words OL is using the one provided by the service by Google.
>
> Y.
> --
> Yves Jacolin
> -
> "Donner la liberté aux individus ne suffit pas, il faut aussi leur donner du
> pouvoir, de la puissance d'agir." M Gauchet
>
> "Give freedom to people is not enough, we also have to give them the power
> to use this freedom, to act". M Gauchet
> -
> http://yjacolin.gloobe.org
> http://softlibre.gloobe.org
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Feature inquiry: Multiple display windows?

2009-01-31 Thread Martin Landa
Hi,

2009/1/31 G. Allegri :
> +1
> It would be a unique feature respect other GIS systems. I've seen and
> used it only in Image Erdas...

AFAIU the wish, I've seen it also in GRASS GIS ;-)

Martin

-- 
Martin Landa  * http://gama.fsv.cvut.cz/~landa
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Feature inquiry: Multiple display windows?

2009-01-31 Thread G. Allegri
+1
It would be a unique feature respect other GIS systems. I've seen and
used it only in Image Erdas...

2009/1/31 Agustin Lobo :
> I share the interest on having linked displays, Sjur
> mentions several geographic displays (which could be
> even at different scales), but this could also be
> linking an scatter plot and the geographic display, for example.
> Could these ideas be included for the 2.0 roadmap?
>
> Agus
>
>> Hello, Qgis community:
>>
>> I am not yet a QGIS user, but I'd like to know if QGIS supports
>> several map display windows, possibly cooperating.
>>
>> One of the things I do most in my current GIS (which I am only partly
>> satisfied with) is to compare two rasters. It would be nice to plot
>> them in separate windows, and when pan/zooming around in one, the
>> other would update its extent and show the same area. I also
>> frequently have lots of raster windows up simultaneously, from the
>> QGIS screenshots this does not appear common usage. To take it even
>> further, the two maps could actually be time series, for instance
>> repeated satellite images and simulated snow cover from a distributed
>> hydrology model. Then also next/previous-buttons could be added to
>> the display windows, again affecting both windows simultaneously. If
>> I was to program such functionality (in C++, I don't speak Python),
>> would it be standard plugin procedure using QGIS API,or would the
>> display/GUI part of it require deep revisions of existing QGIS code?
>> Regards :-)
>>
>> Sjur Kolberg
>
>
>> Dear Sjur,
>>
>> for now you can try OpenEV (part of the FWTools [1]) out. It's fast
>> and reads (almost) all kinds of rasters. I use it all the time to
>> visual interpretation/comparison of multiple raster maps (=not only
>> two!).
>>
>> Kind regards, Nikos
>
> --
> 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: agustin.l...@ija.csic.es
> 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 mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread Yves Jacolin (free)
Le samedi 31 janvier 2009, G. Allegri a écrit :
> >  10.1 access or use the Service or any Content through any
> >  technology or means other than those provided in the Service,
> >  or through other explicitly authorized means Google may designate;
>
> So even the OL google layer is out-of-law...

OL is using Google API js, that's why it need javascript API link + google 
Key. In other words OL is using the one provided by the service by Google.

Y.
-- 
Yves Jacolin
-
"Donner la liberté aux individus ne suffit pas, il faut aussi leur donner du
pouvoir, de la puissance d'agir." M Gauchet

"Give freedom to people is not enough, we also have to give them the power 
to use this freedom, to act". M Gauchet
-
http://yjacolin.gloobe.org
http://softlibre.gloobe.org
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread G. Allegri
>  10.1 access or use the Service or any Content through any
>  technology or means other than those provided in the Service,
>  or through other explicitly authorized means Google may designate;

So even the OL google layer is out-of-law...
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread G. Allegri
There's a work in progress with Python and OSM, maybe it could be of
interest for your development:
http://code.google.com/p/osmlab/

giovanni

2009/1/31 Florian Hillen :
> Dear mailing list,
>
> first of all I want to thank everybody for the input an the suggestions.
> Some plugins are a bit to extensive for my bachelor thesis (I can maximal
> write about 40 pages), so I pick up the suggestion with the OpenStreetMap
> plugin and modify it a little.
> Sometimes I'm in the situation, that I want to show somebody a track or
> something, but didn't have the appropriate background data. There are some
> ways to receive a shp from OSM-Data, but I think it's a lot more
> comfortable and maybe faster if it's implemented in QGIS as a plugin.
> So my plan is to build a plugin, that transforms OSM-Data to shp (either
> with an existing .osm file or with a given extend) and add a new layer (or
> many layers) to QGIS. If anybody knows that this plugin is already
> developed, please contact me!
>
> Thanks to everybody again and hopefully some of you will use my plugin in
> the future (even though I know that the plugin is more for private use
> than for commercial).
>
> Best regards,
> Florian
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QgsCoordinateReferenceSystem in

2009-01-31 Thread Martin Dobias
On Thu, Jan 29, 2009 at 1:41 PM, Radosław Pasiok  wrote:
> Hello list!
>
> I am happy OSGeo4W user with QGIS 1.0.0-5.
> I got strange things using QgsCoordinateReferenceSystem in a custom
> python script.
> For example, from the following script:
>
> from qgis.core import *
>
> QgsApplication.setPrefixPath("C:\OSGeo4W\apps",True)
> QgsApplication.initQgis()
>
> cs = QgsCoordinateReferenceSystem(2180)
> print "EPSG ID:", cs.epsg()
> print "Is it valid CRS? ", cs.isValid()
>
> QgsApplication.exitQgis()
>
> I get:
>
> EPSG ID: 10
> Is it valid CRS? False

Hi,

I haven't tried qgis from osgeo4w yet, but it's possible that the CRS
is not found because of different paths to the qgis.db file (which
contains database of CRS). By default it should be located (on
windows) in "resources" subdirectory from the specified prefix path.
In case it's different, you could use
QgsApplication.setPkgDataPath(path) to change it.

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


Re: [Qgis-user] Ideas for QGIS plugin?

2009-01-31 Thread Florian Hillen
Dear mailing list,

first of all I want to thank everybody for the input an the suggestions.
Some plugins are a bit to extensive for my bachelor thesis (I can maximal
write about 40 pages), so I pick up the suggestion with the OpenStreetMap
plugin and modify it a little.
Sometimes I'm in the situation, that I want to show somebody a track or
something, but didn't have the appropriate background data. There are some
ways to receive a shp from OSM-Data, but I think it's a lot more
comfortable and maybe faster if it's implemented in QGIS as a plugin.
So my plan is to build a plugin, that transforms OSM-Data to shp (either
with an existing .osm file or with a given extend) and add a new layer (or
many layers) to QGIS. If anybody knows that this plugin is already
developed, please contact me!

Thanks to everybody again and hopefully some of you will use my plugin in
the future (even though I know that the plugin is more for private use
than for commercial).

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


[Qgis-user] Compiling QGIS with FWTools version of gdal with ecw and sid support

2009-01-31 Thread Agustin Lobo

I have the FWTools version of gdal with ecw and sid support
on my ubuntu 8.04 machine:

/usr/local/FWTools-2.0.6/bin_safe/gdalinfo
al...@alobo-laptop:~$ /usr/local/FWTools-2.0.6/bin_safe/gdalinfo 
--formats | grep -i ECW

  ECW (rw): ERMapper Compressed Wavelets
  JP2ECW (rw+): ERMapper JPEG2000
al...@alobo-laptop:~$ /usr/local/FWTools-2.0.6/bin_safe/gdalinfo 
--formats | grep -i sid

  MrSID (ro): Multi-resolution Seamless Image Database (MrSID)

someone could modify directions in
http://wiki.qgis.org/qgiswiki/BuildingFromSource#head-8e1e1ff25b5e9f587393e0592c0ff34891ec07cc

so that we know how to compile the stable version of QGIS but with the 
FWTools version of gdal (to have sid and ecw support in QGIS)?


I guess this implies modifying the GDAL* entries in ccmake, which by 
default are:
 GDAL_CONFIG */usr/bin/gdal-config 

 GDAL_CONFIG_PREFER_FWTOOLS_PAT  */bin_safe 

 GDAL_CONFIG_PREFER_PATH */bin 

 GDAL_INCLUDE_DIR*/usr/include/gdal 


 GDAL_LIBRARY*/usr/lib/libgdal1.5.0.so

but dont know what to put for:
 GDAL_CONFIG_PREFER_FWTOOLS_PAT 

 GDAL_CONFIG_PREFER_PATH 




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: agustin.l...@ija.csic.es
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: Feature inquiry: Multiple display windows?

2009-01-31 Thread Agustin Lobo

I share the interest on having linked displays, Sjur
mentions several geographic displays (which could be
even at different scales), but this could also be
linking an scatter plot and the geographic display, for example.
Could these ideas be included for the 2.0 roadmap?

Agus


Hello, Qgis community:

I am not yet a QGIS user, but I'd like to know if QGIS supports
several map display windows, possibly cooperating.

One of the things I do most in my current GIS (which I am only partly
satisfied with) is to compare two rasters. It would be nice to plot
them in separate windows, and when pan/zooming around in one, the
other would update its extent and show the same area. I also
frequently have lots of raster windows up simultaneously, from the
QGIS screenshots this does not appear common usage. To take it even
further, the two maps could actually be time series, for instance
repeated satellite images and simulated snow cover from a distributed
hydrology model. Then also next/previous-buttons could be added to
the display windows, again affecting both windows simultaneously. If
I was to program such functionality (in C++, I don't speak Python),
would it be standard plugin procedure using QGIS API,or would the
display/GUI part of it require deep revisions of existing QGIS code? 
Regards :-)


Sjur Kolberg




Dear Sjur,

for now you can try OpenEV (part of the FWTools [1]) out. It's fast
and reads (almost) all kinds of rasters. I use it all the time to
visual interpretation/comparison of multiple raster maps (=not only
two!).

Kind regards, Nikos


--
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: agustin.l...@ija.csic.es
http://www.ija.csic.es/gt/obster
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user