Re: [Qgis-user] QGIS windows v's linux from a newbie perspective

2009-04-02 Thread Craig Leat
Andreas Neumann:
 Storage space is so cheap nowadays that I store all of my data in tiffs.

The price has come done, but I wouldn't call it cheap in Africa. A 1Tb
NAS cost me the equivalent of three months groceries for my family.

 ECW is easy to compile on Linux. I never tried to compile MrSid.

MrSid seems to becoming the standard format for government raster data
here, so I self compile. Compiling on Ubuntu with MrSid libs is no big
deal and the performance of the MrSid SDK is excellent, in my
experience. Those that need ECW and MrSid and feel strongly against
compiling themselves, should hire someone to do it for them.

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


Re: [Qgis-user] Re: [Qgis-developer] Venue for next hackfest...Vienna?

2009-04-02 Thread Werner Macho

Hi to all!

I already mentioned .. It seems that there's no _must_ to do the 
hackfest at this date in vienna..

If there are other (and better) places I'm open to come there too.

I were just at the university and asked and got acceptance immediately.

I told them that I've to ask first and if Vienna is accepted I'll 
contact them with further plans.
I think theres enough time to think about it - and all I can say is: 
Vienna is ready for it


I'll continue with arrangements and search for hotels .. At least I can 
use this information later on..


Can someone initiate something like a voting-page?

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


Re: [Qgis-user] QGIS windows v's linux from a newbie perspective

2009-04-02 Thread Agustin Lobo

I absolutely disagree. I'm not the question, I can compile (provided
the appropriate directions are there). The problem is that if my 30 
students twice a year have to

compile or, worse, have to hire someone to do it in order to
be able to use mrsid/ecw, they will just keep using windows. Or not 
using qgis.


Linux cannot be a system for which you have to either become
able of compiling QGIS or hire someone to do it. If this were the case,
binaries should not be distributed.

Agus

Craig Leat wrote:



ECW is easy to compile on Linux. I never tried to compile MrSid.



MrSid seems to becoming the standard format for government raster data
here, so I self compile. Compiling on Ubuntu with MrSid libs is no big
deal and the performance of the MrSid SDK is excellent, in my
experience. Those that need ECW and MrSid and feel strongly against
compiling themselves, should hire someone to do it for them.

Craig
___
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


AW: [Qgis-user] Re: [Qgis-developer] Venue for next hackfest...Vienna?

2009-04-02 Thread Hugentobler Marco
Hi Werner

Thank you for the organisation. In my opinion Vienna is a very nice place for a 
hackfest, so +1 from my side.

I think the expensiveness is not so bad (at least compared to Zurich). And the 
location in the center of Europe makes it easily accessible for most community 
members (and Tim is used to long distance flights anyway :-) )

Regards,
Marco


-Ursprüngliche Nachricht-
Von: qgis-user-boun...@lists.osgeo.org im Auftrag von Werner Macho
Gesendet: Do 02.04.2009 09:09
An: Jachym Cepicky
Cc: qgis-user List; qgis-developer
Betreff: Re: [Qgis-user] Re: [Qgis-developer] Venue for next hackfest...Vienna?
 
Hi to all!

I already mentioned .. It seems that there's no _must_ to do the 
hackfest at this date in vienna..
If there are other (and better) places I'm open to come there too.

I were just at the university and asked and got acceptance immediately.

I told them that I've to ask first and if Vienna is accepted I'll 
contact them with further plans.
I think theres enough time to think about it - and all I can say is: 
Vienna is ready for it

I'll continue with arrangements and search for hotels .. At least I can 
use this information later on..

Can someone initiate something like a voting-page?

regards
Werner
___
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] AW: [Qgis-developer] Venue for next hackfest...Vienna?

2009-04-02 Thread Düster Horst
Hi all

It's a great idea to meet in Vienna. 

+1

Horst



Dr. Horst Düster
Stv. Amtschef / GIS-Koordinator 

Kanton Solothurn
Bau- und Justizdepartement
Amt für Geoinformation
SO!GIS Koordination
Rötistrasse 4
CH-4501 Solothurn

Telefon ++41(0)32 627 25 32
Telefax ++41(0)32 627 22 14

mailto:horst.dues...@bd.so.ch
http://www.agi.so.ch



-Ursprüngliche Nachricht-
Von: Tim Sutton [mailto:li...@linfiniti.com]
Gesendet am: Donnerstag, 2. April 2009 01:10
An: qgis-user List; qgis-developer; Werner Macho
Betreff: [Qgis-developer] Venue for next hackfest...Vienna?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all

Werner Macho has secured a location for a hackfest in Vienna in Oct
2009. Martin and others potentially attending - how would you like to
proceed? I am happy to go to Vienna this time and Prague the next and
would like to suggest that since Werner is so enthusiastic, we let him
run with it and we can start planning for the event.  Please vote +1 if
you are happy to go to Vienna

+1 from me


Venue details etc will go here:

http://wiki.qgis.org/qgiswiki/QgisHackfest2009_2

Regards


- --

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
==

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknT9DYACgkQqk07qZdiYjeOowCfYsFFsq68UDz9G/WGZ6/oVBp3
fsIAoLmVceN+eHJo+XyIQFWV1lgg4F20
=6TjQ
-END PGP SIGNATURE-
___
Qgis-developer mailing list
qgis-develo...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

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


Re: [Qgis-user] QGIS windows v's linux from a newbie perspective

2009-04-02 Thread Andreas Neumann
so in my opinion you should contact the companies involved with MrSID and
ecw to change their licence in some sort of dual licence like other
companies did (e.g. Trolltech, MySQL). After all they are interested in
widespread use of their technology - so they should open up and change
their licence so it can become a regular component of gdal/ogr. Otherwise
I don't see an easy solution.

An alternative would be to ask the data providers for their original data.
I am sure they have their data somehwer available with lossless
compression - they wouldn't throw their originals away - would they? Both
MrSID and ECW are lossy compressions ...

Andreas

On Thu, April 2, 2009 10:44 am, Agustin Lobo wrote:
 I absolutely disagree. I'm not the question, I can compile (provided
 the appropriate directions are there). The problem is that if my 30
 students twice a year have to
 compile or, worse, have to hire someone to do it in order to
 be able to use mrsid/ecw, they will just keep using windows. Or not
 using qgis.

 Linux cannot be a system for which you have to either become
 able of compiling QGIS or hire someone to do it. If this were the case,
 binaries should not be distributed.

 Agus

 Craig Leat wrote:

 ECW is easy to compile on Linux. I never tried to compile MrSid.


 MrSid seems to becoming the standard format for government raster data
 here, so I self compile. Compiling on Ubuntu with MrSid libs is no big
 deal and the performance of the MrSid SDK is excellent, in my
 experience. Those that need ECW and MrSid and feel strongly against
 compiling themselves, should hire someone to do it for them.

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






-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/

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


Re: [Qgis-user] Projection question

2009-04-02 Thread Mikhail Umorin
Privet, Maxim —

I am not 100% sure, but I am reasonably certain: I got them from a
public Texas agency that provides spatial data (www.tnris.org). How do I
find out for sure?

Mikhail.

 On 3/31/09 at 8:25 PM, in message
419243249.20090331202...@gis-lab.info,
Maxim Dubinin s...@gis-lab.info wrote:
 Privet Mikhail,
 
 Are you sure both shape and geoTIFF projections are assigned
 correctly? I mean is data really in the projection you says it is?
 
 -- 
 Maxim
 
 Вы писали 31 марта 2009 г., 20:08:01:
 
 MU Hello —
 
 MU I have a problem with rendering layers with different
projections. I
 MU have an SHP file with +proj=longlat +ellps=GRS80 +datum=NAD83
+no_defs
 MU and a geoTIFF file with +proj=longlat +ellps=WGS84 +datum=WGS84
 MU +no_defs. That's all the projection data from Properties. They
cover
 MU exactly the same area but do not even overlap in QGIS. I also
noticed
 MU that when geotiff file is rendered the distances that should be
3
 MU degrees are shown as about 10 degrees (my project options are set
to
 MU Decimal Degrees) . I suspect that there is some confusion with
 MU meters/feet somewhere in the reprojection process. 
 
 MU Is there any way to add +units option to the description of
the
 MU layer's projection? Would this solve the problem?
 
 MU Thank you for your time, 
 
 MU Mikhail.
 MU ___
 MU Qgis-user mailing list
 MU Qgis-user@lists.osgeo.org 
 MU 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] Projection question

2009-04-02 Thread Mikhail Umorin
Thank you for the suggestions, Zoltan —

Unfortunately, no luck. I enabled on the fly and set project's CRS to
WGS84 (same as the GoeTiff's) but no changes in the way they are
rendered in QGIS: different size and far from each other.

What else can I try?

Mikhail.

 On 4/1/09 at 3:14 AM, in message
pine.lnx.4.64.0904011008270.32...@bme-geod,
Siki Zoltan s...@agt.bme.hu wrote:
 Hi Mikhail,
 
 Did you enable on the fly projection in the project properties
window?
 QGIS cannot reproject rasters on the fly, so you must set your
project 
 projection to the same projection of your raster layer. QGIS will 
 reproject vectors on the fly.
 
 regards,
 Zoltan
 
 On Tue, 31 Mar 2009, Mikhail Umorin wrote:
 
 Hello ̇̇

 I have a problem with rendering layers with different projections.
I
 have an SHP file with +proj=longlat +ellps=GRS80 +datum=NAD83
+no_defs
 and a geoTIFF file with +proj=longlat +ellps=WGS84 +datum=WGS84
 +no_defs. That's all the projection data from Properties. They
cover
 exactly the same area but do not even overlap in QGIS. I also
noticed
 that when geotiff file is rendered the distances that should be 3
 degrees are shown as about 10 degrees (my project options are set
to
 Decimal Degrees) . I suspect that there is some confusion with
 meters/feet somewhere in the reprojection process.

 Is there any way to add +units option to the description of the
 layer's projection? Would this solve the problem?

 Thank you for your time,

 Mikhail.
 ___
 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] Re: [Qgis-developer] Venue for next hackfest...Vienna?

2009-04-02 Thread Borys Jurgiel
Thursday 02 April 2009 15:25:28 Jürgen E. Fischer napisał(a):
 Hi Werner,
 
 On Thu, 02. Apr 2009 at 09:09:19 +0200, Werner Macho wrote:
  I were just at the university and asked and got acceptance
  immediately.
 
 Cool.  +1 from me.

No problem for me too :-)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Python scripting

2009-04-02 Thread Alex Mandel
georgew wrote:
 Hi all, I have not been able to find an answer to this question: Using the 
 latest stable version of QGIS from OSGeo4W on WinXP SP3 is it possible to 
 write free standing Python programs/scripts that will access QGIS objects 
 (vectors, shapefiles, etc) and process them in batch, without the need for 
 GUI or user intervention other than to run the script from Python command 
 line (or within an IDE)?

It should be possible, I believe OSGeo4w installs it's own python and
hence all python libraries would be on it's path not on your system
installed python.

To use the libraries with your regular python install you probably need
to and to the PYTHONPATH environment variable of your system the path to
  something like C:\OSGEO4W\QGIS\

Then import qgis.core and such should work.

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


Re: [Qgis-user] Python scripting

2009-04-02 Thread Carson Farmer

Alessandro et al.,
I'm also interested in using python and QGIS for simple scripts 
espacially for batch processing, and some examples could be very useful!
Attached is a python script for performing some basic geoprocessing 
functions on vector layers. The header of the file contains usage 
examples to help get you started... it's probably not the cleanest 
python code, nor the most pythonistic... but you get the idea ;-)


Hope this helps to get you started...

The other good resource for python scripting is: 
http://wiki.qgis.org/qgiswiki/PythonBindings


Cheers,


Carson

Thanks
Ale

georgew ha scritto:
ThanKs Alex, the problem is I have not been able to find any example 
that is free standing, all seem to be plugins or use QT to generate a 
UI. Can you point me to a working example, however simple (e.g. read 
shapefile, project,write shapefile) that can set me off on the right 
path?

Many thanks
G.
  


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



--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

from PyQt4.QtCore import *
from qgis.core import *

class GeoprocessingEngine( ):
'''
USAGE:

GeoprocessingEngine( func, layerA, layerB, outPath, encoding, param, merge )
func : geoprocessing function
1: Buffer
2: Convex Hull
3: Difference
4: Dissolve
5: Intersection
6: Union
7: Symetrical Difference
8: Clip
layerA : QgsVectorLayer
layerB : QgsVectorLayer
outPath : string - /home/cfarmer/Desktop/test.shp
encoding : default is 'System'
param : a parameter, may be used for buffer, and dissolve
merge : should the results be merged (buffer)

EXAMPLE:

# import engine
from Geoprocessing import GeoprocessingEngine
layerA = QgsVectorLayer(/path/to/layer.shp, layerA, ogr)
layerB = QgsVectorLayer(/path/to/layer.shp, layerB, ogr)
# create geo engine
geo = GeoprocessingEngine( 5, layerA, layerB, '/home/cfarmer/Desktop/test.shp')
# compute geoprocessing event, and output result
outlayer = geo.compute() # compute() returns the output layer as a QgsVectorLayer

This alows us to link multiple runs together:
geo1 = GeoprocessingEngine( 5, layerA, layerB, '/home/cfarmer/Desktop/test1.shp')
outlayer = geo1.compute() 
geo2 = GeoprocessingEngine( 3, layerA, outlayer, '/home/cfarmer/Desktop/test2.shp')
outlayer = geo2.compute()
...
...

temp files are created for better usage of memory when using large layers

'''
def __init__( self, function, layerA, layerB, outputName, encoding = 'System', param = 0, merge = False ):
self.myFunction = function
self.success = False
self.layerA = layerA
self.layerB = layerB
self.param = param
self.merge = merge
self.outputName = outputName
self.encoding = encoding

def compute( self ):
check = QFile( self.outputName )
if check.exists():
if not QgsVectorFileWriter.deleteShapeFile( self.outputName ):
return None
self.geoprocessing( self.myFunction, self.layerA, self.layerB, self.param, self.merge, self.outputName, self.encoding )
return QgsVectorLayer( self.outputName, temp, ogr )


def geoprocessing( self, function, myLayerA, myLayerB, myParam, myMerge, myName, myEncoding ):
self.myFunction = function
self.myLayerA = myLayerA
self.myLayerB = myLayerB
self.myParam = myParam
self.myMerge = myMerge
self.myName = myName
self.myEncoding = myEncoding

self.vlayerA = self.myLayerA
if self.myFunction == 1 or self.myFunction == 2 or self.myFunction == 4:
( self.myParam, useField ) = self.checkParameter( self.vlayerA, self.myParam )
if not self.myParam is None:
if self.myFunction == 1:
geos, feature, match = self.buffering( useField )
elif self.myFunction == 2:
geos, feature, match = self.convex_hull( useField )
elif self.myFunction == 4:
geos, feature, match = self.dissolve( useField )
else:
self.vlayerB = self.myLayerB
if self.myFunction == 3:
geos, feature, match = self.difference()
elif self.myFunction == 5:
geos, feature, match = self.intersect()
elif self.myFunction == 6:
geos, feature, match = self.union()
elif self.myFunction == 7:
geos, feature, match = self.symetrical_difference()
elif self.myFunction == 8:
geos, feature, match = self.clip()

def buffering( self, useField ):
GEOS_EXCEPT = True
FEATURE_EXCEPT = True
vproviderA = self.vlayerA.dataProvider()
 

Re: [Qgis-user] Python scripting

2009-04-02 Thread georgew



Alessandro et al.,
 I'm also interested in using python and QGIS for simple scripts 
 espacially for batch processing, and some examples could be very useful!
Attached is a python script for performing some basic geoprocessing 
functions on vector layers. The header of the file contains usage 
examples to help get you started... it's probably not the cleanest 
python code, nor the most pythonistic... but you get the idea ;-)

Hope this helps to get you started...

The other good resource for python scripting is: 
http://wiki.qgis.org/qgiswiki/PythonBindings

Cheers,

Carson


 Many thanks Carson and Alex, your help has been invaluable, and I am sure not 
just for myself. Thanks Carson for the example, more than I asked for and much 
appreciated.
regards
George
-- 
View this message in context: 
http://n2.nabble.com/Python-scripting-tp2577010p2577897.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] Re: MrSID programs

2009-04-02 Thread mtnbiketrail
I saw recently on the list where someone was trying to use .sid files. I 
found these programs on Lizardtech. Maybe they will be useful to someone...

Tom

http://www.lizardtech.com/download/dl_options.php?page=geo#12

MrSID SDW
Command line utility that generates .sdw file for associated 
georeferenced .sid file.

Latest Release: 09-2003

MrSID Decode
Command line utility that allows for decompression of MG2 or MG3 .sid 
files to .tif, GeoTiff, and other formats.

Latest Release: 11-2008

MrSID Info
Command line utility that displays metadata information embedded in 
.sid, .tif, and other formats. Latest Release: 06-2006



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