Re: [Qgis-user] split point cloud into X randomly selected (equally sized) parts

2012-11-26 Thread David Fawcett
Olav,

Take a look at libLas.  http://www.liblas.org/

It does not necessarily have as many commandline tools, but it is
performant and is licensed under BSD and LGPL.

Here is a comparison between libLas and LASTools:
http://www.liblas.org/lastools.html#lastools-liblas

David.

On Fri, Nov 23, 2012 at 6:49 PM, opeeters opeet...@gmail.com wrote:

 Great blog, Victor!
 Thank you!

 Well actually, a colleague came up with a very simple python script (see
 attachted splitgrid.py
 http://osgeo-org.1560.n6.nabble.com/file/n5018501/splitgrid.py  ). This
 is
 no spatial randomisation like eg the v.kcv function in GRASS GIS, but for
 large enough datasets, it delivers wonderfully fast and with a good spatial
 spread. Feel free to add it to your blog if you see any added value.

 Thanks Andreas,
 for pointing me to the LAStools! I did not know about them yet and yes,
 even
 if we are not doing LiDAR, these tools are superb in crunching big amounts
 of numbers. I contacted Martin Isenburg concerning a license for using
 las2dem or blast2dem. His response left me a bit shell shocked. I don't
 know
 the guy well enough I guess. But still, everyone has bills to pay. We would
 have the funds to reward him handsomely for his efforts in the project we
 would like to use this application in. But I'm sorry, I really cannot
 endorse the way he is going commercial now.

 Thanks paulo25,
 for pointing my to the v.kcv function in GRASS GIS.
 I tried is through the SEXTANTE toolbox, but with 3 million points, I guess
 this algorithm gets clotted. I tried it on a machine with plenty of RAM and
 CPU. The process just dies after some time. But for larger data sets a
 spatial randomisation is not so important as for smaller ones...

 Thanks again to you three!

 Regards,
 Olav







 --
 View this message in context:
 http://osgeo-org.1560.n6.nabble.com/split-point-cloud-into-X-randomly-selected-equally-sized-parts-tp5017330p5018501.html
 Sent from the Quantum GIS - 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 mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGISWebserver and PostGIS-Layer

2012-11-26 Thread Albin Blaschka

Hello!

So, finally, I resolved my problem - it was twofold:
The main reason was a problem with the projection of the data, it was 
not properly projected (forgot to specify it for the import to 
postgis...) and secondly, I had to find the right bounding box...


A spontaneous idea: would it be possible to write up a few lines on the 
python console to spit out the correct string, directly usable for the 
bounding box (cut 'n copy) taken from the current map extent...? (Up to 
now, my python experience is close to zero...)


Thanks to Bernhard for his patience and his help!

Albin


Am 23.11.2012 09:40, schrieb Bernhard Ströbl:

Hi Albin,

be sure you reply to the list.
It seems that QGIS desktop does not access the same server/same
project/same layer as your request. Check the apache access.log and the
GetMap request issued by QGIS desktop to find any differences.

Bernhard

Am 23.11.2012 09:32, schrieb Albin Blaschka:

Hi!


Am 23.11.2012 09:11, schrieb Bernhard Ströbl:

Hi,

do you get a map (and no white image) in QGIS desktop? If yes
1) your server is ok but your request is somehow wrong.
2) Check your access log and look at the GetMap-request that QGIS
desktop sends. Compare it to your request.

If no there is something misconfigured, e.g. the SRS of the layer does
not match the SRS of the data, the database is not accessible from the
server (check pg_hba.conf)



Thank you for your patience!
1.) The map in QGIS Desktop is ok, no problems there! So, yes, the error
lies somewhere with my request.

2.) I just checked the PostgreSQL-log (PostgreSQL is running on the same
machine as Apache and is ok): There I found something strange and most
probably the cause for the error: Each time, I make a request via the
Mapserver, I get the error column 'geom' does not exist BUT in the
respective table, the geometry column is called the_geom and
registered with this name in the geometry_columns-table (I just chekced
that, too). In the qgs-file (the project file), it is also the_geom -
here the relevant part of the qgs-file:

projectlayers layercount=1
maplayer minimumScale=0 maximumScale=1e+08 geometry=Point
type=vector hasScaleBasedVisibilityFlag=0
idverortung20121123083448551/id
datasourcedbname='mydatabase' host=myserver port=5432 user='myuser'
password='pwd' sslmode=allow key='gid' srid=4326 type=POINT
table=myschema.verortung (the_geom) sql=/datasource

I am slightly puzzled about that, I just start looking into that
issue...

Mhmmm...
Thanks,
best regards,
Albin






Bernhard

Am 23.11.2012 08:52, schrieb Albin Blaschka:

Hi!



Am 23.11.2012 08:02, schrieb Bernhard Ströbl:

Hi Albin,

try
http://myserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.1.1REQUEST=GetMapFORMAT=image/pngCRS=EPSG:4326WIDTH=500HEIGHT=500LAYERS=mypostgislayerBBOX=12.96,47.79,12.98,47.81






as a major change from 1.1.1 to 1.3.0 is the exchange of x and y
coordinates or use VERSION=1.3.0 and exchange x and y coordinates of
the
BBOX

if I understand you correctly you get an image as reply but the
image is
all white. So the server is running ok but there are no data in the
place for which you request the map.




Yes, you understand correctly - I followed your example, but no
success...

Is there a possibility to switch on some kind of logging, additionally
to the apache logging? In the apache logs, no errors or warnings or
similar appear...

Thank you for your help!

regards, Albin






Am 22.11.2012 17:05, schrieb Albin Blaschka:


Hello!

Thank you for your answer!


the URL seems to lack the BBOX parameter (I think this is a
necessary
parameter in a GetMap request)
Can you access the maps through QGIS desktop?
What happens if you send a GetCapabilities request:
http://myserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.3.0REQUEST=GetCapabilities








In QGIS Desktop, everything seems ok, the GetCapabilities-Request
looks
also ok - here the head of the answer cut 'n copied:

WMS_Capabilities version=1.3.0
xsi:schemaLocation=http://www.opengis.net/wms
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd;ServiceNameWMS/NameTitleQGIS-Server/TitleAbstract/OnlineResource





xlink:type=simple
xlink:href=/ContactInformationContactPersonPrimaryContactPersonAlbin





Blaschka/ContactPersonContactOrganizationLFZ
Raumberg-Gumpenstein/ContactOrganization/ContactPersonPrimaryContactVoiceTelephone/ContactElectronicMailAddressalbin.blasc...@raumberg-gumpenstein.at/ContactElectronicMailAddress/ContactInformation/Service






...

Concerning the BBOX:
I tried it with the following URL (for a small area close to the
town of
Salzburg), but again, no success, just a white canvas:

http://myserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapFORMAT=image/pngCRS=EPSG:4326WIDTH=500HEIGHT=500LAYERS=mypostgislayerBBOX=12.96,47.79,12.98,47.81







Thanks,
Albin



Bernhard

Am 22.11.2012 16:12, schrieb Albin Blaschka:

Hello!

I just started to use QGIS Server on an Ubuntu server, after
installation and 

Re: [Qgis-user] QGISWebserver and PostGIS-Layer

2012-11-26 Thread Bernhard Ströbl
/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapFORMAT=image/pngCRS=EPSG:4326WIDTH=500HEIGHT=500LAYERS=mypostgislayerBBOX=12.96,47.79,12.98,47.81








Thanks,
Albin



Bernhard

Am 22.11.2012 16:12, schrieb Albin Blaschka:

Hello!

I just started to use QGIS Server on an Ubuntu server, after
installation and basic configuration, I get a successful answer
of a
GetCapability-Request.

Now, for my first real project, I have a question regarding the
QGIS
Server and PostGIS-Layers: If I enter the following URL in
firefox, I
just get a blank canvas, no layer:

http://myserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMSVERSION=1.3.0REQUEST=GetMapFORMAT=image/pngCRS=EPSG:4326WIDTH=500HEIGHT=500LAYERS=mypostgislayer










What I have done so far:

* I have set up a project in QGIS Desktop including a
PostGIS-Layer,
with the connection storing the full connection string (username
and
password), the layer is shown as it should be

* I saved the QGIS project file and opend it in a text editor and
found
the credentials for the PostGIS-Layer

* I copied the project file into the cgi-bin directory,
chmod'ed it
even
to 777, just to get it going; trying it with the map=-parameter
was
also not successfull...

* The database server is the same box as the apache (Ubuntu
Oneiric
11.10, PostgreSQL 8.3.8, PostGIS Version 1.3; it is an
intranet-server,
not reachable from outside)



What have I done wrong?

Thanks in advance,
best regards,
Albin








__ Information from ESET Mail Security, version of virus
signature database 7720 (20121122) __

The message was checked by ESET Mail Security.
http://www.eset.com


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













__ Information from ESET Mail Security, version of virus
signature database 7722 (20121122) __

The message was checked by ESET Mail Security.
http://www.eset.com


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





__ Information from ESET Mail Security, version of virus signature 
database 7732 (20121126) __

The message was checked by ESET Mail Security.
http://www.eset.com


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


[Qgis-user] How to use Win32 nightly build?

2012-11-26 Thread Eva Tomanová
Hi,

I was trying to download the latest Win32 nightly build from 
http://download.osgeo.org/osgeo4w/release/qgis/qgis-dev/ but when I tried to 
run it there were several dlls missing.

I'm not a developer so I would very much appreciate it if somebody could advise 
me (step by step) on how to get the latest nightly build without much effort.

As I have problems with export of diagrams from Print Composer, I think that 
the latest nightly build could really help me (see the bug #4486 resolution at 
http://hub.qgis.org/issues/4486).

Thanks,

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


Re: [Qgis-user] How to use Win32 nightly build?

2012-11-26 Thread Andreas Neumann
Hi Eva,

They are meant to be installed and upgraded through the OSGeo4W
installer, which also takes care about the dependencies. See
http://trac.osgeo.org/osgeo4w/ for download of the installer and
additional information.

The OSGeo4W installer allows you to update QGIS everyday with the latest
master.

Andreas

Am 26.11.2012 21:17, schrieb Eva Tomanová:
 Hi,
 
 I was trying to download the latest Win32 nightly build from 
 http://download.osgeo.org/osgeo4w/release/qgis/qgis-dev/ but when I tried to 
 run it there were several dlls missing.
 
 I'm not a developer so I would very much appreciate it if somebody could 
 advise me (step by step) on how to get the latest nightly build without much 
 effort.
 
 As I have problems with export of diagrams from Print Composer, I think that 
 the latest nightly build could really help me (see the bug #4486 resolution 
 at http://hub.qgis.org/issues/4486).
 
 Thanks,
 
 Eva
 ___
 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] How to use Win32 nightly build?

2012-11-26 Thread Goyo
2012/11/26 Eva Tomanová eva.toman...@centrum.cz

 Hi,

 I was trying to download the latest Win32 nightly build from 
 http://download.osgeo.org/osgeo4w/release/qgis/qgis-dev/ but when I tried to 
 run it there were several dlls missing.

 I'm not a developer so I would very much appreciate it if somebody could 
 advise me (step by step) on how to get the latest nightly build without much 
 effort.

Download the installer and install the released version[1], then run
the installer again to install qgis-dev[2].

Best regards

Goyo

[1] http://hub.qgis.org/wiki/quantum-gis/Download#12-OSGeo4W-Installer
[2] http://hub.qgis.org/wiki/quantum-gis/Download#13-Master
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Qgis crashes on File dialog

2012-11-26 Thread Tomáš Vrána

Hi,
using Qgis on openSuse 12.2 and gnome 3, it crashes anytime it tries to 
open any file dialog (open/save). It seems to be version independent 1.8 
as well as 1.9 alpha. I seem to recall there was similar problem about a 
year ago, but I can't quite remember or find the solution. Needles to 
say that it is rather annoying. perhaps somoene can help me ?


Regards, Tom

--
Tomas Vrana  tomas.vr...@cemotel.cz
-
Ceskomoravska telekomunikacni s.r.o.
http://www.cemotel.cz/
phone: +420 530 505 505

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


Re: [Qgis-user] Qgis crashes on File dialog

2012-11-26 Thread Salvatore Larosa
Hi,

2012/11/26 Tomáš Vrána tomas.vr...@cemotel.cz

 Hi,
 using Qgis on openSuse 12.2 and gnome 3, it crashes anytime it tries to
 open any file dialog (open/save). It seems to be version independent 1.8 as
 well as 1.9 alpha. I seem to recall there was similar problem about a year
 ago, but I can't quite remember or find the solution. Needles to say that
 it is rather annoying. perhaps somoene can help me ?


I had a similar issue some time ago after I have compiled QGIS with FileGDB
support,
it is due to different libxml version between FileGDB and the one on my
machine.
Have you compiled FileGDB support ?

Could you provide any backtrace [1] about crash ?

Regards,

-SL

[1] - http://hub.qgis.org/wiki/quantum-gis/Bugreports#Creating-a-backtrace




 Regards, Tom

 --
 Tomas Vrana  tomas.vr...@cemotel.cz
 --**---
 Ceskomoravska telekomunikacni s.r.o.
 http://www.cemotel.cz/
 phone: +420 530 505 505

 __**_
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-userhttp://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] Qgis crashes on File dialog

2012-11-26 Thread Donovan Cameron
I had a similar issue, but mine was because I had the wrong version of qt
installed.

One thing you could quickly check is the QGIS About window.
It says what version of qt that QGIS was compiled against.

Then use your distros package management software (apt?) to verify that the
qt version you have installed matches the qgis compiled version.

If the versions mismatch, you may have to install a matching version of qt.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to use Win32 nightly build?

2012-11-26 Thread Andre Joost

Am 26.11.2012 21:51, schrieb Goyo:


Download the installer and install the released version[1], then run
the installer again to install qgis-dev[2].



Using advanced installation, View:full you can install the qgis-dev 
Version along with all dependencies in one step.


HTH,
Andre Joost


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


Re: [Qgis-user] Qgis crashes on File dialog

2012-11-26 Thread Tomáš Vrána

Dne 26.11.2012 23:12, Donovan Cameron napsal(a):
I had a similar issue, but mine was because I had the wrong version of 
qt installed.


One thing you could quickly check is the QGIS About window.
It says what version of qt that QGIS was compiled against.

Then use your distros package management software (apt?) to verify 
that the qt version you have installed matches the qgis compiled version.


If the versions mismatch, you may have to install a matching version 
of qt.



They match, 4.8.1 in both cases.

--
Tomas Vrana  tomas.vr...@cemotel.cz
-
Ceskomoravska telekomunikacni s.r.o.
http://www.cemotel.cz/
phone: +420 530 505 505

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