Re: [Qgis-developer] Re: cmake error on OS X 10.6

2010-09-16 Thread Matthew Denno
John and William,

Thank you for your input.

So both of you have used the procedure presented in the Install Guide?  I
guess I will uninstall the MacPorts libs, etc and try the methods from the
guide again.

Could one of you please tell me the name of the Qt pakage you used?  It
looks like there are a number to choose from, SDK, debug, etc.  I think this
might have been where I went wrong before.

Thanks again for your help.

Matt

On Sep 16, 2010 11:03 AM, "John C. Tull"  wrote:

As far as I can tell, I do not have any remnant gsl laying around. I
upgraded my hardware in the past 6 months and started afresh with additional
unix libs, binaries, etc. I did not install any gsl other than your
framework to my knowledge.

I believe some updates occurred in the past 6-10 months with egis where your
frameworks are automagically picked up by cmake. Here is my commandline
output from running the cmake command I posted:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - no
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Check for working C compiler: /usr/local/bin/ccache
-- Check for working C compiler: /usr/local/bin/ccache -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - no
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - no
-- Check for working CXX compiler: /usr/local/bin/ccache
-- Check for working CXX compiler: /usr/local/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Quantum GIS version: 1.6.0 Trunk (10600)
-- Found GRASS: /Applications/GRASS-6.4.app/Contents/MacOS (6.4.0)
-- Found Iconv: /usr/lib/libiconv.dylib
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /Library/Frameworks/proj.framework
-- Found Expat: /usr/lib/libexpat.dylib
-- Using GSL from /Library/Frameworks/GSL.framework/Versions/1/unix
-- Found GEOS:
/Library/Frameworks/GEOS.framework/Versions/3/unix/lib/libgeos_c.dylib
-- Found GDAL:
/Library/Frameworks/GDAL.framework/Versions/1.7/unix/lib/libgdal.dylib
-- Found PostgreSQL: /usr/local/pgsql/lib/libpq.dylib
-- Found QWT: /usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found PythonInterp:
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
-- Found Python executable:
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
-- Found Python version: 2.6.1
-- Found Python library: -framework Python
-- Found SIP version: 4.10.5
-- Found PyQt4 version: 4.7.4
-- Found FCGI: /usr/lib/libfcgi.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jctull/sources/qgis/trunk/build

You can see that gsl, proj and others were discovered just fine.

Cheers,
John



On Sep 16, 2010, at 7:57 AM, William Kyngesburye wrote:

> Interesting. You don't have problems w...
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] context menu does not show in TOC in qgis-trunk

2010-09-16 Thread Giovanni Manghi
Just noticed,

if the TOC is empty and you click the right mouse button you still get
"add group, etc.". If the TOC contains at least one layer the menu does
not show anymore.

I don't know if it is related with the ticket I opened today: in trunk
in the TOC does not show anymore the symbology/legend of vectors.

Tested on both linux and windows.

Cheers

-- Giovanni --



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


Re: [Qgis-developer] Fwd: [OSGeo Africa] Feedback from FOSS4G Barcelona

2010-09-16 Thread Pirmin Kalberer
Am Donnerstag, 16. September 2010, um 09.07:07 schrieb Paolo Cavallini:
> Hi Pirmin,
> thanks a lot for the report. Notes below.
> 
> Il 15/09/2010 21:01, Pirmin Kalberer ha scritto:to 
> > We presented some plugins which came with QGIS 1.5 and I demonstrated my
> > Globe plugin (http://pifx.blip.tv/file/4076305/). It is an early stage,
> > but I plan to work on it at the hackfest in Wroclaw.
> 
> How nice! Can you tell us more about it? I see osgearth is not in Debian
> repos, do you know why? Why don't you add to the standard repo, so we can
> start palying with it?

I've uploaded an osgearth package to ubuntugis-unstable. I'd be happy to 
submit it to debian-gis, if someone could give me some guidance.
The globe plugin is a C++ plugin based on the threading branch and can be 
downloaded from
http://github.com/sourcepole/qgis/tree/threading-globe

> 
> > -All PostGIS errors available for plugins
> > -Raster reprojection
> > -Show WMS style name in WMS layer legend
> > -Show WMS legend (GetLegendGraphic) in layer legend
> > -Show Raster style in layer legend
> > -SLD import/export (QML<->SLD?)
> 
> We have a plugin for this.
> For the others, have you opened appropriate tickets?

No. If submitting a ticket is the right way, it would be nice, if someone 
could check the tracker and add the missing tickets.

Pirmin

-- 
Pirmin Kalberer
Sourcepole  -  Linux & Open Source Solutions
http://www.sourcepole.com
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] FreeEditing plugin

2010-09-16 Thread Ivan Mincik
On Tue, Sep 14, 2010 at 11:29 AM, Paolo Cavallini  wrote:
>
> Hi all.
> we're using the very nice FH plugin, and we encountered the following
> issues:
>
> - when clicking (a single click) on the canvas, with simplification
> parameter >0, we get an error:

This patch will  fix the problem with single click to canvas. Please
test attached file or patch.

Ivan
# -*- coding: utf-8 -*-
#---
# 
# Freehand Editing
# Copyright (C) 2010 Pavol Kapusta
# pavol.kapu...@gmail.com
# 
# Code adopted/adapted from:
#
# 'CadTools Plugin', Copyright (C) Stefan Ziegler
# 'Select Plus Plugin', Copyright (C) Barry Rowlingson
# 'Numerical Vertex Edit Plugin', Copyright (C) Cédric Möri
#
#---
# 
# licensed under the terms of GNU GPL 2
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# 
#-

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

# Tool class
class FreehandEditingTool(QgsMapTool):
  def __init__(self, canvas):
QgsMapTool.__init__(self,canvas)
self.canvas=canvas
self.rb=None
self.layer=None
#our own fancy cursor
self.cursor = QCursor(QPixmap(["16 16 3 1",
  "  c None",
  ". c #FF",


  "+ c #faed55",
  "",
  "   +.+  ",
  "  ++.++ ",
  " +.+",
  "+.  .  .+   ",
  "   +.   .   .+  ",
  "  +...+ ",
  " ++...++",
  " ... ...+... ...",
  " ++...++",
  "  +...+ ",
  "   +.   .   .+  ",
  "   ++.  .  .+   ",
  "++.+",
  "  ++.++ ",
  "   +.+  "]))
  
 
 

  def canvasPressEvent(self,event):
color = QColor(255,0,0)
self.rb = QgsRubberBand(self.canvas, False)
self.rb.setColor(color) 
self.rb.setWidth(1)
if self.rb:
return
self.layer = self.canvas.currentLayer()  
p=self.toLayerCoordinates(self.layer,event.pos())
self.rb.addPoint(self.toMapCoordinates(self.layer, p))
 
  
  def canvasMoveEvent(self,event):
if not self.rb:
return
self.layer = self.canvas.currentLayer()  
p=self.toLayerCoordinates(self.layer,event.pos())
self.rb.addPoint(self.toMapCoordinates(self.layer, p))
  

  def canvasReleaseEvent(self,event):
coords = []
if not self.rb:
return
if self.rb.numberOfVertices() > 2:
[coords.append(self.rb.getPoint(0, i)) for i in range(self.rb.numberOfVertices())]
self.emit(SIGNAL("rbFinished(PyQt_PyObject)"), coords)
self.rb.reset()
self.rb=None
   
# reset rubberband and refresh the canvas
if self.type == 1:
self.isPolygon = False
else:
self.isPolygon = True

self.canvas.refresh()


  def showSettingsWarning(self):
pass

  def activate(self):
self.canvas.setCursor(self.cursor)
# Check whether Geometry is a Line or a Polygon
mc = self.canvas
layer = mc.currentLayer()
self.type = layer.geometryType()
self.isPolygon = True
if self.type == 1:
self.isPolygon = False
else:
self.isPolygon = True

  def deactivate(self):
pass

  def isZoomTool(self):
return False
  
  def isTransient(self):
return False

  def isEditTool(self):
return True

# HG changeset patch
# User Ivan Mincik
# Date 1284662261 -7200
# Node ID 3809bdb9470fb2d17dfa626633ae6e768219c9af
# Parent  0020b18800258e770fb56e6967359acb578027db
* Fixing problem with error on left click to canvas.

diff -r 0020b1880025 -r 38

[Qgis-developer] Matplotlib-dependent plugins and OSGeo4W

2010-09-16 Thread Benoit de Cabissole
Hi All OSGeo4W users/developers,

If you are like me, you cannot run any of the plugins that are dependent on
the matplotlib module.
Each time I install such a plugin I've got an error telling me that a
dependency is missing: tkinter.

I've just realised that the default 'gui backend' in the OSGeo4W matplotlib
is tkinter, but tkinter is not installed and not available (AFAIK) in
OSGeo4W!

The solution, change the default 'gui backend' from tkinter to qt4. Here is
how:

1) copy the file 'matplotlibrc' from
"C:\...\OSGeo4W\apps\python25\lib\site-packages\matplotlib\mpl-data" to
"C:\Documents and Settings\--your user name here--\.matplotlib

2) edit the above file and change the line 31 from:
backend  : TkAgg
to:
backend  : Qt4Agg

3) restart QGIS and install a matplotlib-dependant plugin. It should work.
I've tested with Lionel Roubeyrie's contour plugin and could, at last,
generate contours from shapefile points!

Hope the above is of some help!

Cheers,
Benoit

P.S. If an OSGeo4W maintainer reads this could you please change the default
gui backend to QT4?



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


Re: [Qgis-developer] Re: cmake error on OS X 10.6

2010-09-16 Thread John C. Tull
As far as I can tell, I do not have any remnant gsl laying around. I upgraded 
my hardware in the past 6 months and started afresh with additional unix libs, 
binaries, etc. I did not install any gsl other than your framework to my 
knowledge.

I believe some updates occurred in the past 6-10 months with egis where your 
frameworks are automagically picked up by cmake. Here is my commandline output 
from running the cmake command I posted:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - no
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Check for working C compiler: /usr/local/bin/ccache
-- Check for working C compiler: /usr/local/bin/ccache -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - no
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - no
-- Check for working CXX compiler: /usr/local/bin/ccache
-- Check for working CXX compiler: /usr/local/bin/ccache -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Quantum GIS version: 1.6.0 Trunk (10600)
-- Found GRASS: /Applications/GRASS-6.4.app/Contents/MacOS (6.4.0)
-- Found Iconv: /usr/lib/libiconv.dylib
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /Library/Frameworks/proj.framework
-- Found Expat: /usr/lib/libexpat.dylib
-- Using GSL from /Library/Frameworks/GSL.framework/Versions/1/unix
-- Found GEOS: 
/Library/Frameworks/GEOS.framework/Versions/3/unix/lib/libgeos_c.dylib
-- Found GDAL: 
/Library/Frameworks/GDAL.framework/Versions/1.7/unix/lib/libgdal.dylib
-- Found PostgreSQL: /usr/local/pgsql/lib/libpq.dylib
-- Found QWT: /usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.7.0 (using /usr/bin/qmake)
-- Found PythonInterp: 
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
-- Found Python executable: 
/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6
-- Found Python version: 2.6.1
-- Found Python library: -framework Python
-- Found SIP version: 4.10.5
-- Found PyQt4 version: 4.7.4
-- Found FCGI: /usr/lib/libfcgi.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jctull/sources/qgis/trunk/build

You can see that gsl, proj and others were discovered just fine.

Cheers,
John


On Sep 16, 2010, at 7:57 AM, William Kyngesburye wrote:

> Interesting.  You don't have problems with GSL or PROJ frameworks?  Maybe you 
> have an old /usr/local GSL from before my framework?
> 
> I suppose I should give it a whirl to make sure it's all working...
> 
> On Sep 16, 2010, at 9:50 AM, John C. Tull wrote:
> 
>> I use cmake regularly, and William's frameworks otherwise. I have an alias 
>> in my bash profile setup with the following command:
>> 
>> cmake -D BINDINGS_GLOBAL_INSTALL=on -D 
>> QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include -D 
>> QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib -D 
>> CMAKE_INSTALL_PREFIX=/Applications -D CMAKE_BUILD_TYPE=Release -D 
>> SIP_BINARY_PATH=/usr/local/bin/sip -D CMAKE_OSX_ARCHITECTURES=x86_64 -D 
>> GRASS_PREFIX=/Applications/GRASS-6.4.app/Contents/MacOS -D 
>> GRASS_INCLUDE_DIR=/Applications/GRASS-6.4.app/Contents/MacOS/include ..
>> 
>> Hope that helps.
>> 
>> John
>> 
>> On Sep 15, 2010, at 8:21 PM, William Kyngesburye wrote:
>> 
>>> I confess that since setting up the Xcode project, I use it exclusively and 
>>> haven't tried a cmake build in a while, though others have with success.
>>> 
>>> The Qgis cmake configure should automatically find known frameworks.  GDAL 
>>> and GEOS are known, but GSL is fairly recent as a framework and the cmake 
>>> stuff wasn't updated.
>>> 
>>> Odd, I see that the cmake test for PROJ doesn't check for a framework.
>>> 
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> First Pogril: Why is life like sticking your head in a bucket filled with 
> hyena offal?
> Second Pogril: I don't know.  Why IS life like sticking your head in a bucket 
> filled with hyena offal?
> First Pogril: I don't know either.  Wretched, isn't it?
> 
> -HitchHiker's Guide to the Galaxy
> 
> 

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


Re: [Qgis-developer] Re: cmake error on OS X 10.6

2010-09-16 Thread William Kyngesburye
Interesting.  You don't have problems with GSL or PROJ frameworks?  Maybe you 
have an old /usr/local GSL from before my framework?

I suppose I should give it a whirl to make sure it's all working...

On Sep 16, 2010, at 9:50 AM, John C. Tull wrote:

> I use cmake regularly, and William's frameworks otherwise. I have an alias in 
> my bash profile setup with the following command:
> 
> cmake -D BINDINGS_GLOBAL_INSTALL=on -D 
> QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include -D 
> QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib -D 
> CMAKE_INSTALL_PREFIX=/Applications -D CMAKE_BUILD_TYPE=Release -D 
> SIP_BINARY_PATH=/usr/local/bin/sip -D CMAKE_OSX_ARCHITECTURES=x86_64 -D 
> GRASS_PREFIX=/Applications/GRASS-6.4.app/Contents/MacOS -D 
> GRASS_INCLUDE_DIR=/Applications/GRASS-6.4.app/Contents/MacOS/include ..
> 
> Hope that helps.
> 
> John
> 
> On Sep 15, 2010, at 8:21 PM, William Kyngesburye wrote:
> 
>> I confess that since setting up the Xcode project, I use it exclusively and 
>> haven't tried a cmake build in a while, though others have with success.
>> 
>> The Qgis cmake configure should automatically find known frameworks.  GDAL 
>> and GEOS are known, but GSL is fairly recent as a framework and the cmake 
>> stuff wasn't updated.
>> 
>> Odd, I see that the cmake test for PROJ doesn't check for a framework.
>> 

-
William Kyngesburye 
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena 
offal?
Second Pogril: I don't know.  Why IS life like sticking your head in a bucket 
filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy


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


Re: [Qgis-developer] Re: cmake error on OS X 10.6

2010-09-16 Thread John C. Tull
I use cmake regularly, and William's frameworks otherwise. I have an alias in 
my bash profile setup with the following command:

cmake -D BINDINGS_GLOBAL_INSTALL=on -D 
QWT_INCLUDE_DIR=/usr/local/qwt-5.2.1-svn/include -D 
QWT_LIBRARY=/usr/local/qwt-5.2.1-svn/lib/libqwt.5.dylib -D 
CMAKE_INSTALL_PREFIX=/Applications -D CMAKE_BUILD_TYPE=Release -D 
SIP_BINARY_PATH=/usr/local/bin/sip -D CMAKE_OSX_ARCHITECTURES=x86_64 -D 
GRASS_PREFIX=/Applications/GRASS-6.4.app/Contents/MacOS -D 
GRASS_INCLUDE_DIR=/Applications/GRASS-6.4.app/Contents/MacOS/include ..

Hope that helps.

John

On Sep 15, 2010, at 8:21 PM, William Kyngesburye wrote:

> I confess that since setting up the Xcode project, I use it exclusively and 
> haven't tried a cmake build in a while, though others have with success.
> 
> The Qgis cmake configure should automatically find known frameworks.  GDAL 
> and GEOS are known, but GSL is fairly recent as a framework and the cmake 
> stuff wasn't updated.
> 
> Odd, I see that the cmake test for PROJ doesn't check for a framework.
> 
> On Sep 15, 2010, at 7:56 PM, Matthew Denno wrote:
> 
>> 
>> Okay - so I seemed to fix this error by adding the following to cmake:
>> 
>> -D
>> GSL_CONFIG_PREFER_PATH:STRING=/Library/Frameworks/GSL.framework/Versions/1/unix/bin
>> 
>> Now I receive the following error during make:
>> 
>> [ 67%] Generating analysis/sipanalysispart0.cpp,
>> analysis/sipanalysispart1.cpp, analysis/sipanalysispart2.cpp,
>> analysis/sipanalysispart3.cpp
>> 
>> sip: /Users/matt/Development/qgis/python/core/conversions.sip:269: Mapped
>> type has already been defined in another module
>> make[2]: *** [python/analysis/sipanalysispart0.cpp] Error 1
>> make[1]: *** [python/CMakeFiles/python_module_qgis_analysis.dir/all] Error 2
>> make: *** [all] Error 2
>> 
>> Any ideas?
> 
> I don't know about this.  I have heard about a problem related to some 
> already defined or undefined error with the latest SIP/PyQt (unrelated to 
> Qgis directly).  I've been holding off on trying them until I see new 
> versions.  (last versions I used are SIP 4.10.5, PyQt 4.7.4)
> 
>> I am trying to build QGIS on OS X 10.6.  I have not exactly followed the 
>> instructions from the Installation Guide because I had lots of trouble 
>> getting PyQt built/installed.  Anyway, I ended up installing the 
>> dependencies using KyngChaos frameworks where available and MacPorts for the 
>> rest.
> 
> I personally don't use and don't recommend MacPorts (or Fink) when using 
> other available binaries like my frameworks.  Past experience (though mostly 
> old, but some recent from others) has shown that they often interfere with or 
> override other binaries.
> 
> The build instructions should work just fine with a minimum of fuss.
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> "Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that 
> remind me of?  Ah, yes - life."
> 
> - Marvin
> 
> 
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

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


Re: [Qgis-developer] Fwd: [OSGeo Africa] Feedback from FOSS4G Barcelona

2010-09-16 Thread Paolo Cavallini

Hi Pirmin.
Nice review of globes[0]. I think you could have a look to RatMan[1], a
beautiful piece of free software, on which Sardegna3D[2] is based.
All the best.

On Thu, 16 Sep 2010 09:07:07 +0200, Paolo Cavallini 
wrote:
> Hi Pirmin,
> thanks a lot for the report. Notes below.
> 
> Il 15/09/2010 21:01, Pirmin Kalberer ha scritto:
> 
>> We presented some plugins which came with QGIS 1.5 and I demonstrated my
>> Globe
>> plugin (http://pifx.blip.tv/file/4076305/). It is an early stage, but I

-- 
http://faunalia.it/pc

[0] http://sourcepole.com/assets/2010/9/10/foss4g2010_virtual_globes.pdf
[1] http://ratman.sourceforge.net/
[2] http://www.sardegna3d.it/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] [OT] SpatiaLite Is Not the Shapefile of the Future

2010-09-16 Thread luca_manganelli

from:
http://www.spatiallyadjusted.com/2010/09/16/spatialite-is-not-the-shapefile-of-the-future/

"In this case SpatiaLite is dying a slow death because no one is actually
implementing it. Now yes OGR, FDO and other libraries support it, but you
don’t see that making its way into mainline software (QGIS aside, but even
its support is poor) and in turn you rarely see it in the real world.
Offhand I can only think of the “beta” format that GeoCommons has on their
service (and they’ve had beta attached to it for almost a year).

Now yes, I think we all need a better format than the venerable shapefile
(and it’s three amigos) which as a transmission format fails miserably. But
there doesn’t seem to be any indication that this is a problem people
actually want solved. I’ve seen much more effort put into KML, GeoJSON and
LAS by the community than SpatiaLite or even SQLite. This isn’t because the
SpatiaLite project hasn’t given tools to us to implement, it has been the
community could care less about it. SHP works for them and there isn’t any
reason to change.


So what is going to change things? Well it will be web services, not GIS
formats that matter for users moving forward. So I say lets stop focusing
on SpatiaLite as a consumer format and actually work harder at making
better web services for these users (like stop it already with the WxS
please). SpatiaLite still has its place in the world, but does anyone
really want to bother downloading GIS files anymore? Of course not…"___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Bringing the raster processing algorithms of the Orfeo Toolbox Monteverdi in QGIS

2010-09-16 Thread Paolo Cavallini
Il 02/09/2010 11:42, Manuel GRIZONNET ha scritto:
> I am a member of the Orfeo Toolbox Team ( http://www.orfeo-toolbox.org/
> ) and since last year some developments have been made to try to bring
> some OTB functionalities inside Quantum GIS.

> We will be glad to discuss with QGIS developers about these topics
> during the conference!

Any news about this? We would be interested working on it.
All the best, and thanks.
-- 
Paolo Cavallini: http://www.faunalia.it/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Python dynamic forms

2010-09-16 Thread luca_manganelli
Bernhard Ströbl  scritti il 16/09/2010 09.36.12

> > Because it's integrated into QT framework.

> this certainly is a plus.

> To all of you: Has anybody made any positive or negative experiences:
> Ease of coding, amount of code needed ...?
> Is there a recommendation by the devs? Should there be one?

I use it regulary in my plugin. For example, there's a very useful class:
QSqlQueryModel, you write a query and you can "push it" results in a
QTableView automatically (no need to define columns, iterate over records,
etc). See all QtSql classes here:

http://doc.trolltech.com/4.5/qtsql.html

(it's QT 4.5, the same version of the windows QGIS 1.5 distribution).

> > Again, in my QGIS 1.5 Windows install if I do this at Python Console:
> >
>  import psycopg2
> > Traceback (most recent call last):
> > File "", line 1, in 
> > File "U:/Applicazioni/qgis-1.5.0-2/apps/qgis/./python\qgis\utils.py",
line
> > 291, in _import
> > ImportError: No module named psycopg2

> it is in Libs in OSGEO-Installer and is not automatically ticked when
> you select QGIS

Yes, but if you want to distribute that plugin "worldwide", using the QT
library is a better option.

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


RE: [Qgis-developer] Python dynamic forms

2010-09-16 Thread Jeremy Palmer
Hi Bernhard,

Thanks for the suggestion. I think I could get that to work. The only problem 
is my python init script needs to know how to import the MasterPlugin module... 
So I would have to install the module into a directory in python path. Not 
ideal in my environment at the moment.

Wouldn't it be nice to just have access to the qgsPluginRegistry via the PyQGIS 
API?

> How do you access the widgets in the custom ui in your ui-init function?

I access the controls using the findChild method of the QDialog object i.e.

def featureFormInit(dialog, layerid, featureid):
dialog.findChild(QLineEdit,"myLineEditControl")

It would be a good practice to ensure that each control is defined and 
available before doing any other stuff in the ui-init stuff.

Cheers,
Jeremy
__

This message contains information, which is confidential and may be subject to 
legal privilege. 
If you are not the intended recipient, you must not peruse, use, disseminate, 
distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 
0800 665 463 or i...@linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any 
attachments, after its transmission from LINZ.

Thank you.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


RE: [Qgis-developer] Python dynamic forms

2010-09-16 Thread Jeremy Palmer
Oh ok I haven't try the QPSQL driver.  So does the QT framework have rich 
support for using PostgreSQL? 

I'm also gathering that the QT driver fits in better with the QT model control 
paradigm?  

Thanks,
Jeremy

-Original Message-
From: luca_mangane...@comune.trento.it 
[mailto:luca_mangane...@comune.trento.it] 
Sent: Thursday, September 16, 2010 7:15 PM
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Python dynamic forms

Bernhard Ströbl  scritti il 16/09/2010 08.41.12

> Hi Luca,

> what is the advantage? (I am curious)

> regards

> Bernhard

Because it's integrated into QT framework.

Again, in my QGIS 1.5 Windows install if I do this at Python Console:

>>> import psycopg2
Traceback (most recent call last):
File "", line 1, in 
File "U:/Applicazioni/qgis-1.5.0-2/apps/qgis/./python\qgis\utils.py", line
291, in _import
ImportError: No module named psycopg2


so...


__

This message contains information, which is confidential and may be subject to 
legal privilege. 
If you are not the intended recipient, you must not peruse, use, disseminate, 
distribute or copy this message.
If you have received this message in error, please notify us immediately (Phone 
0800 665 463 or i...@linz.govt.nz) and destroy the original message.
LINZ accepts no responsibility for changes to this email, or for any 
attachments, after its transmission from LINZ.

Thank you.
__
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] OSGeo4W installer

2010-09-16 Thread Paolo Cavallini
Hi all.
Sorry about my ignorance about Windows: if one installs the standalone version, 
then
needs to update, or add additional libraries, is it possible to use the osgeo4w
installer to just add/update, or the two systems are alternative?
Thanks for clarifying (maybe an explanation could be put on the download page 
too).
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Python dynamic forms

2010-09-16 Thread luca_manganelli
Bernhard Ströbl  scritti il 16/09/2010 08.41.12

> Hi Luca,

> what is the advantage? (I am curious)

> regards

> Bernhard

Because it's integrated into QT framework.

Again, in my QGIS 1.5 Windows install if I do this at Python Console:

>>> import psycopg2
Traceback (most recent call last):
File "", line 1, in 
File "U:/Applicazioni/qgis-1.5.0-2/apps/qgis/./python\qgis\utils.py", line
291, in _import
ImportError: No module named psycopg2


so...

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


Re: [Qgis-developer] Fwd: [OSGeo Africa] Feedback from FOSS4G Barcelona

2010-09-16 Thread Paolo Cavallini
Hi Pirmin,
thanks a lot for the report. Notes below.

Il 15/09/2010 21:01, Pirmin Kalberer ha scritto:

> We presented some plugins which came with QGIS 1.5 and I demonstrated my 
> Globe 
> plugin (http://pifx.blip.tv/file/4076305/). It is an early stage, but I plan 
> to 
> work on it at the hackfest in Wroclaw.

How nice! Can you tell us more about it? I see osgearth is not in Debian repos, 
do
you know why? Why don't you add to the standard repo, so we can start palying 
with it?

> -All PostGIS errors available for plugins
> -Raster reprojection
> -Show WMS style name in WMS layer legend
> -Show WMS legend (GetLegendGraphic) in layer legend
> -Show Raster style in layer legend
> -SLD import/export (QML<->SLD?)

We have a plugin for this.
For the others, have you opened appropriate tickets?
Again, many thanks.
All the best.
-- 
Paolo Cavallini: http://www.faunalia.it/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer