Re: [Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread Astrid Emde
Hello,

thanks to all of you for the feedback.

Looks like it is better, not to handle different geometrytype in one column.

I will try your suggestions

Thanks Astrid

On Mon, December 17, 2012 5:32 pm, pcr...@pcreso.com wrote:
> Hi Astrid,
>
>
> The only way of doing what you suggest is to create your table, then add
> views splitting out the geometries into the different types for use in
> QGIS. Update rules may need to be applied to the views to support editing
> through them
>
> There are other ways of achieving a similar effect, but this is the only
> way to have the single database geometry column that you specify.
>
> If your use case allows this, I suggest you revisit your requirement for
> a single table, so that you manage your underlying data in separate
> tables, & apply a view unioning the tables into the single database view.
> I think this will be a more robust way to have the editing & data
> management facilities, & the apparent single table/column that you
> require.
>
> Brent Wood
>
>
> --- On Mon, 12/17/12, Astrid Emde  wrote:
>
>
> From: Astrid Emde 
> Subject: [Qgis-user] How to digitze points, linestrings, polygons in a
> single PostGIS geometry-column To: qgis-user@lists.osgeo.org
> Date: Monday, December 17, 2012, 9:22 PM
>
>
> Hello,
>
>
> in a project I want to handle in one PostgreSQl/PostGIS table different
> geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
> single geometrycolumn.
>
> Then I would like to digitize with QGIS new objects. Is this possible?
>
>
> I tried it already but in QGIS it is not possible to select the
> different geometrytypes although I already have different geometrytypes in
> the table.
>
> I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
> support this at all.
>
> I am using PostGIS 1.5 and QGIS 1.8.0.
>
>
> Thanks for your help.
>
>
> --
> Best regards
>
>
> Astrid Emde
>
>
> --
> Astrid Emde
> WhereGroup GmbH & Co.KG
> Eifelstraße 7
> 53119 Bonn
> Germany
>
>
> Fon: +49(0)228 90 90 38 - 19
> Fax: +49(0)228 90 90 38 - 11
>
>
> astrid.e...@wheregroup.com www.wheregroup.com Folgen Sie der WhereGroup auf
> twitter: http://twitter.com/WhereGroup_com
>
>
> Amtsgericht Bonn, HRA 6788
> ---
> Komplementärin:
> WhereGroup Verwaltungs GmbH
> vertreten durch: Olaf Knopp, Peter Stamm
> ---
> pgp-public key:
> http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
>   Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
>   Signed and/or encrypted mail is highly appreciated
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


-- 
Mit freundlichen Grüßen

Astrid Emde

*
Das WhereGroup Team wünscht Ihnen ein frohes
Weihnachtsfest und ein glückliches Jahr 2013!
http://www.wheregroup.com
*

--

 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated

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


Re: [Qgis-user] Add new selection to previous selected items

2012-12-17 Thread Goyo
2012/12/16 Xan Vieiro :
>
> The question is how to do that when you apply a filter (or advanced search)
> opening the attributes table?
>

There doesn't seem to be a way for doing it in the attribute table
other than saving your query as a file, then load and edit it. You can
also use the query builder which remember your query (no need to save
it) but it does a different kind of selection.

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


Re: [Qgis-user] QGIS Web Client - Problem Load Map

2012-12-17 Thread Salvatore Larosa
Hi,

2012/12/17 Ahmed-Diouf DIRIEH DIBAD 

> Hello,
> I installed QGIS QGIS Server and QGIS Web Client.
> First, the file WMS Get Capabilitie works so it shows that QGIS Server
> works well
> But I can't see my map in QGIS Browser .
> QGIS Browser displays but loading is infinite...
>
>
Following the below linked thread can help you !

Regards,

-SL

[1] - http://lists.osgeo.org/pipermail/qgis-user/2012-December/020533.html


>
> --
> *
> **Dr DIRIEH DIBAD Ahmed-Diouf**
> 
> *
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] OpenLayer scales differently from other in QGIS Print Composer

2012-12-17 Thread Alex Druk
I am running QGIS 1.8.0-Lisboa on Mac 10.8.2
Yes, my problem looks like the bug
http://hub.qgis.org/issues/**6653


On Mon, Dec 17, 2012 at 4:20 PM, Alex Druk  wrote:

> Hi everyone,
>
> Sorry for primitive question from novice!
>
> I map different plant species distribution and use Google Physical layer
> (via OpenLayers plugin) as base map.
>
> The problem is that in Print Composer even when all layers visually look
> fine, Physical layer scales differently from all others on paper or in
> image and all my species somehow occur in the middle of Ohio or somewhere
> else. I tried OCM Landscape layer with same results.
>
> What I do wrong?
>
> I would appreciate your advice.
>
> --
> Thank you.
>
> Alex Druk
> alex.d...@gmail.com
> (775) 237-8550 Google voice
>



-- 
Thank you.

Alex Druk
alex.d...@gmail.com
(775) 237-8550 Google voice
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread pcreso
Hi Astrid,

The only way of doing what you suggest is to create your table, then add views 
splitting out the geometries into the different types for use in QGIS. Update 
rules may need to be applied to the views to support editing through them 

There are other ways of achieving a similar effect, but this is the only way to 
have the single database geometry column that you specify. 

If your use case allows this, I suggest you revisit your requirement for a 
single table, so that you manage your underlying data in separate tables, & 
apply a view unioning the tables into the single database view. I think this 
will be a more robust way to have the editing & data management facilities, & 
the apparent single table/column that you require.

Brent Wood

--- On Mon, 12/17/12, Astrid Emde  wrote:

From: Astrid Emde 
Subject: [Qgis-user] How to digitze points, linestrings, polygons in a single 
PostGIS geometry-column
To: qgis-user@lists.osgeo.org
Date: Monday, December 17, 2012, 9:22 PM

Hello,

in a project I want to handle in one PostgreSQl/PostGIS table different
geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
single geometrycolumn.

Then I would like to digitize with QGIS new objects. Is this possible?

I tried it already but in QGIS it is not possible to select the
different geometrytypes although I already have different geometrytypes
in the table.

I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
support this at all.

I am using PostGIS 1.5 and QGIS 1.8.0.

Thanks for your help.

-- 
Best regards

Astrid Emde

--
 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated
___
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


[Qgis-user] QGIS Web Client - Problem Load Map

2012-12-17 Thread Ahmed-Diouf DIRIEH DIBAD
Hello,
I installed QGIS QGIS Server and QGIS Web Client.
First, the file WMS Get Capabilitie works so it shows that QGIS Server
works well
But I can't see my map in QGIS Browser .
QGIS Browser displays but loading is infinite...


-- 
*
**Dr DIRIEH DIBAD Ahmed-Diouf**

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


Re: [Qgis-user] OpenLayer scales differently from other in QGIS Print Composer

2012-12-17 Thread Albin Blaschka

Hello!

The layers you mentioned (Google, those derived from OSM) have only 
"distinct" scales (and their very own projection) - if your map is 
somewhere between two of those scale-levels it could be possible that 
your layers do not align properly - at least it was like that here with 
a project of mine and OCM Landscape...

So, choose a different scale and the layers should align properly...

HTH,
Albin

Am 17.12.2012 16:20, schrieb Alex Druk:

Hi everyone,

Sorry for primitive question from novice!

I map different plant species distribution and use Google Physical layer
(via OpenLayers plugin) as base map.

The problem is that in Print Composer even when all layers visually look
fine, Physical layer scales differently from all others on paper or in
image and all my species somehow occur in the middle of Ohio or
somewhere else. I tried OCM Landscape layer with same results.

What I do wrong?

I would appreciate your advice.


--
Thank you.

Alex Druk
alex.d...@gmail.com 
(775) 237-8550 Google voice


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



--
| Albin Blaschka, Mag.rer.nat.
| Etrichstrasse 26, A-5020 Salzburg
| * www.albinblaschka.info * www.thinkanimal.info *
| - It's hard to live in the mountains, hard but not hopeless!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] OpenLayer scales differently from other in QGIS Print Composer

2012-12-17 Thread Samy Mezani

le 17/12/2012 16:20, Alex Druk a écrit:

I map different plant species distribution and use Google Physical layer
(via OpenLayers plugin) as base map.

The problem is that in Print Composer even when all layers visually look
fine, Physical layer scales differently from all others on paper or in
image and all my species somehow occur in the middle of Ohio or
somewhere else. I tried OCM Landscape layer with same results.


Hi,

Are you running a GNU/Linux distribution  ?

There is a open bug here : http://hub.qgis.org/issues/6653

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


[Qgis-user] OpenLayer scales differently from other in QGIS Print Composer

2012-12-17 Thread Alex Druk
Hi everyone,

Sorry for primitive question from novice!

I map different plant species distribution and use Google Physical layer
(via OpenLayers plugin) as base map.

The problem is that in Print Composer even when all layers visually look
fine, Physical layer scales differently from all others on paper or in
image and all my species somehow occur in the middle of Ohio or somewhere
else. I tried OCM Landscape layer with same results.

What I do wrong?

I would appreciate your advice.

-- 
Thank you.

Alex Druk
alex.d...@gmail.com
(775) 237-8550 Google voice
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] LecoS problem

2012-12-17 Thread Albin Blaschka

Hello!

Another possibility is that Phyton and the respective modules are not in 
your PATH- System environment...


Google might be your friend ;-)

I googled with "scipy windows" and found the following pages, maybe they 
are useful:


http://my.opera.com/Smeets/blog/2011/06/04/how-to-install-numpy-scipy-and-other-python-packages-in-windows

and my this one (linked from the page mentioned above)

http://my.opera.com/Smeets/blog/2011/06/04/python-for-windows

HTH,
Albin


Dear Albin

Thank you for your help, I've tried to use the last of the links (I've tried 
the first two before, but I have no skills in Python therefore couldn't do much 
in it). I've installed Scipy, but QGIS does not recognizes it - there's still a 
message like there was nothing installed. Therefore, after the installation I 
should do also within the Python? I run the shell, and run the program - 
everything seems working fine, as for me.


2012/12/17 Albin Blaschka 


Am 17.12.2012 10:28, schrieb Michał Bełcik:

Python scipy module


Hello!

Already tried?

http://www.scipy.org/Download

or/respectively

http://sourceforge.net/projects/scipy/files/scipy/0.11.0/


http://sourceforge.net/projects/scipy/files/scipy/0.11.0/scipy-0.11.0-win32-superpack-python2.7.exe/download

HTH,
Albin



--
| Albin Blaschka, Mag.rer.nat.
| Etrichstrasse 26, A-5020 Salzburg
| * www.albinblaschka.info * www.thinkanimal.info *
| - It's hard to live in the mountains, hard but not hopeless!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] MAN-Webclient Help-Links

2012-12-17 Thread Bernhard Ströbl

Hi Thomas,

I sent a pull request that deactivates the table of contents. The problm 
is that the help is an Ext.Window instance so it is part of the calling 
website.

If anybody has a fix for this go ahaead!

Bernhard

Am 14.12.2012 17:05, schrieb Thomas Baumann:

Hello together,

just a quick note about something that I recognised today:

If I use the nice new help-button in the qgis-web-client and click on one
of the Links (navigation,printing etc.) within the help-page then
the anchor will be put at the end of the qgis-web-client-URL.

For example:

before clicking:

https://myservername/qgis-web-client/site900913/qgiswebclient.html?&map=/var/data/mymap.qgs

after clicking it is something like:

https://myservername/qgis-web-client/site900913/qgiswebclient.html?&map=/var/data/mymap.qgs
*#Printing*
*
*
For reloading the page I sometimes just click in the adress-bar of the
browser and hit enter.

When I did this I realised that in Firefox nothing happened (no reloading)
and in Crome the webclient could not be loaded properly during the reload.

Does anyone of you have an idea how to solve this little problem?

best wishes,

Thomas




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


Re: [Qgis-user] LecoS problem

2012-12-17 Thread Albin Blaschka


Am 17.12.2012 10:28, schrieb Michał Bełcik:

Python scipy module


Hello!

Already tried?

http://www.scipy.org/Download

or/respectively

http://sourceforge.net/projects/scipy/files/scipy/0.11.0/

http://sourceforge.net/projects/scipy/files/scipy/0.11.0/scipy-0.11.0-win32-superpack-python2.7.exe/download

HTH,
Albin



--
| Albin Blaschka, Mag.rer.nat.
| Etrichstrasse 26, A-5020 Salzburg
| * www.albinblaschka.info * www.thinkanimal.info *
| - It's hard to live in the mountains, hard but not hopeless!
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] LecoS problem

2012-12-17 Thread Michał Bełcik
Last note: as I've seen, I'm probably lacking the Python scipy module.
Could any of you pleas give me some tips how to install it easily (I'm
completely new to Python, I must say), or has any links to a version that
has already scipy attached  - of course, if such version exists? I've seen
one, but it costed 199 dollars, so I've skipped that.


2012/12/17 Michał Bełcik 

> Hello
>
> I've just tried to run the LecoS plugin, but there was an error:
>
> Nie można wczytać wtyczki LecoS z powodu błędu wywołania jej metody
> classFactory()
>
> Traceback (most recent call last):
>   File
> "C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
> line 189, in startPlugin
> plugins[packageName] = package.classFactory(iface)
>   File "C:/Users/Work/.qgis//python/plugins\LecoS\__init__.py", line 35,
> in classFactory
> from lecos_main import LecoS
>   File
> "C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
> line 438, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "C:/Users/Work/.qgis//python/plugins\LecoS\lecos_main.py", line 29,
> in
> from lecos_dlg import LecosDialog
>   File
> "C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
> line 438, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File "C:/Users/Work/.qgis//python/plugins\LecoS\lecos_dlg.py", line 36,
> in
> import landscape_statistics as lcs
>   File
> "C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
> line 438, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
>   File
> "C:/Users/Work/.qgis//python/plugins\LecoS\landscape_statistics.py", line
> 29, in
> import gdal, numpy, sys, scipy, string, math, ogr, os
>   File
> "C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
> line 438, in _import
> mod = _builtin_import(name, globals, locals, fromlist, level)
> ImportError: No module named scipy
>
> Wersja Pythona:
> 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
>
>
> Wersja QGIS:
> 1.9.0-Master Master, 923ab1b
>
> Lokalizacja Pythona:
> ['C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\qgis-dev\\python\\plugins\\sextante',
> 'C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python',
> 'C:/Users/Work/.qgis//python', 'C:/Users/Work/.qgis//python/plugins',
> 'C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python/plugins',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\bin\\python27.zip',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\DLLs',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\plat-win',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\lib-tk',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\bin',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\PIL',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\win32',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\win32\\lib',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\Pythonwin',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
> 'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']
>
> Any help with that, please?
>
> Best regards
>
> Michal
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] LecoS problem

2012-12-17 Thread Alexander Bruy
Seems you need to install scipy Python module

On Mon, 17 Dec 2012 10:21:10 +0100
Michał Bełcik  wrote:

> ImportError: No module named scipy

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


Re: [Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread Jürgen E . Fischer
Hi Astrid,

On Mon, 17. Dec 2012 at 09:22:13 +0100, Astrid Emde wrote:
> in a project I want to handle in one PostgreSQl/PostGIS table different
> geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
> single geometrycolumn.
 
> Then I would like to digitize with QGIS new objects. Is this possible?

You can only have one type of renderer (point, line or polygon), therefore the
layers need to have one type of feature (single and multipart doesn't matter
here).

If you have multiple feature types in one column, QGIS will determine which
feature type is there and offer the existing ones and offer those - a row for
each type.  So you can create multiple layers from one column one for each
existing type.

If you have an empty column without a restricting entry in geometry_columns you
can choose which feature type the new features should have.

The case where you want to add features of a different type to a colum that
already has other features, but isn't restricted to one type, isn't covered
in the GUI yet, I think.   Although it should work later as you could have
added that column with different types, when it was still empty.
 
> I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
> support this at all.

Right, also something that is related to QGIS restriction to one renderer.  And
in turn a lot of other stuff assumes that a layer can only have features of one
type - so we would probably break a lot, if we added support for multiple
renderers per layer.



Jürgen

-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-31
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de
committ(ed|ing) to Quantum GIS IRC: jef on FreeNode 


-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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


[Qgis-user] LecoS problem

2012-12-17 Thread Michał Bełcik
Hello

I've just tried to run the LecoS plugin, but there was an error:

Nie można wczytać wtyczki LecoS z powodu błędu wywołania jej metody
classFactory()

Traceback (most recent call last):
  File
"C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
line 189, in startPlugin
plugins[packageName] = package.classFactory(iface)
  File "C:/Users/Work/.qgis//python/plugins\LecoS\__init__.py", line 35, in
classFactory
from lecos_main import LecoS
  File
"C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
line 438, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Work/.qgis//python/plugins\LecoS\lecos_main.py", line 29,
in
from lecos_dlg import LecosDialog
  File
"C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
line 438, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Work/.qgis//python/plugins\LecoS\lecos_dlg.py", line 36,
in
import landscape_statistics as lcs
  File
"C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
line 438, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
  File "C:/Users/Work/.qgis//python/plugins\LecoS\landscape_statistics.py",
line 29, in
import gdal, numpy, sys, scipy, string, math, ogr, os
  File
"C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python\qgis\utils.py",
line 438, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named scipy

Wersja Pythona:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


Wersja QGIS:
1.9.0-Master Master, 923ab1b

Lokalizacja Pythona:
['C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\qgis-dev\\python\\plugins\\sextante',
'C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python',
'C:/Users/Work/.qgis//python', 'C:/Users/Work/.qgis//python/plugins',
'C:/Users/Work/Desktop/Dokumenty/Programs/apps/qgis-dev/./python/plugins',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\bin\\python27.zip',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\DLLs',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\plat-win',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\lib-tk',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\bin',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\PIL',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\win32',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'C:\\Users\\Work\\Desktop\\Dokumenty\\Programs\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']

Any help with that, please?

Best regards

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


Re: [Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread Vincent Picavet
Hello Astrid,

> in a project I want to handle in one PostgreSQl/PostGIS table different
> geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
> single geometrycolumn.

It is possible though really not recommanded.

> Then I would like to digitize with QGIS new objects. Is this possible?
As far as I know no, there is almost no software being able to deal with 
heterogeneous geometries in a column.

Something you could do is split your point/line/polygon geometries into three 
different columns (or even table). 
Then create a view to gather everything into a single heterogeneous geometry 
column if you really need to.
And for writing, use triggers on insert and update, to detect the kind of 
geometry you want to insert, and write into the right column (or table).
You can even in that case for a same object, have a polygon representation and 
a point representation at the same time, written automatically by the trigger.
Then you can use qgis to read and write the various column (/tables) and edit 
the data transparently.

What you cannot have is an heterogeneous layer inside qgis.

Hope this helps.
Vincent


> I tried it already but in QGIS it is not possible to select the
> different geometrytypes although I already have different geometrytypes
> in the table.
> 
> I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
> support this at all.
> 
> I am using PostGIS 1.5 and QGIS 1.8.0.
> 
> Thanks for your help.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread Bernhard Ströbl

Hi Astrid,

AFAIK QGIS can only handle one geometry type per layer (how should it be 
displayed by default?) and only (Multi)points, -lines and -polygons.

So there are IMHO two workarounds, both with views:
1) create three different tables ((Multi)point, (Multi)linestring and 
(Multi)polygon) for editing. Put them all into a view for your result:

SELECT * FROM  UNION select * FROM  ...
2) keep your geometries in one table and make three views, one for each 
geometrytype. Define appropriate rules on the views in order to push any 
edits back into the table.


Bernhard

Am 17.12.2012 09:22, schrieb Astrid Emde:

Hello,

in a project I want to handle in one PostgreSQl/PostGIS table different
geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
single geometrycolumn.

Then I would like to digitize with QGIS new objects. Is this possible?

I tried it already but in QGIS it is not possible to select the
different geometrytypes although I already have different geometrytypes
in the table.

I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
support this at all.

I am using PostGIS 1.5 and QGIS 1.8.0.

Thanks for your help.


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


[Qgis-user] When is QGIS Master going to be available again in the ppa?

2012-12-17 Thread Filipe Dias
Hi,
I haven't been able to download the latest QGIS Master for while from the
ppa (Linux Ubuntu 12.04. I read that there's a problem in the servers. Does
anyone know when this is going to be solved?

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


[Qgis-user] How to digitze points, linestrings, polygons in a single PostGIS geometry-column

2012-12-17 Thread Astrid Emde
Hello,

in a project I want to handle in one PostgreSQl/PostGIS table different
geometrytypes (POINT, LINESTRING, POLYGON or even MULTI-objects) in a
single geometrycolumn.

Then I would like to digitize with QGIS new objects. Is this possible?

I tried it already but in QGIS it is not possible to select the
different geometrytypes although I already have different geometrytypes
in the table.

I tried with the TYPE GEOMETRYCOLLECTION too, but QGIS seams not to
support this at all.

I am using PostGIS 1.5 and QGIS 1.8.0.

Thanks for your help.

-- 
Best regards

Astrid Emde

--
 Astrid Emde
 WhereGroup GmbH & Co.KG
 Eifelstraße 7
 53119 Bonn
 Germany

 Fon: +49(0)228 90 90 38 - 19
 Fax: +49(0)228 90 90 38 - 11

 astrid.e...@wheregroup.com
 www.wheregroup.com
 Folgen Sie der WhereGroup auf twitter: http://twitter.com/WhereGroup_com

Amtsgericht Bonn, HRA 6788
---
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
---
 pgp-public key:
 http://pgp.mit.edu:11371/pks/lookup?search=0x06DA52D72D515284
  Signierte und/oder verschlüsselte Nachrichten sind sehr willkommen
  Signed and/or encrypted mail is highly appreciated
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user