Re: [Qgis-user] WMS in python?

2008-03-03 Thread Martin Dobias
On Mon, Mar 3, 2008 at 9:08 PM, Rob McCulley [EMAIL PROTECTED] wrote: Can a WMS Layer be added to an application built using the python bindings? I've tried to do it using a few variations of parameters with the QgsDataSourceURI(), but my lyr.isValid() is always false. Can I add a WMS

Re: [Qgis-user] Compile error in qgsvectordataprovider.cpp

2008-02-11 Thread Martin Dobias
On Feb 12, 2008 1:28 AM, Mikhail Umorin [EMAIL PROTECTED] wrote: [...] libqgis_raster.so.1 = /usr/lib64/libqgis_raster.so.1 (0x2b8a4f998000) libqgis_legend.so.1 = /usr/lib64/libqgis_legend.so.1 (0x2b8a4fbcc000) libqgis_composer.so.1 =

Re: [Qgis-user] Compile error in qgsvectordataprovider.cpp

2008-02-11 Thread Martin Dobias
On Feb 11, 2008 7:34 PM, Mikhail Umorin [EMAIL PROTECTED] wrote: The first time I started the compiled QGis it opened the main window and gave an error message that north arrow pixmap could not be found. When I tried to load some DOQ into a new project it gave error messages that it could not

Re: [Qgis-user] Python Bindings and Labels

2008-02-10 Thread Martin Dobias
On Feb 9, 2008 3:17 AM, Tim Sutton [EMAIL PROTECTED] wrote: Hi You should be able to do something like this (untested estimate based on C++ api and sip definition file): myLayer.setLabelOn(true); QgsLabel myLabel = myLayer.label(), myLabel.setLabelField( QgsLabel.Angle, fieldIndex); Yes,

Re: [Qgis-user] Compile error in qgsvectordataprovider.cpp

2008-02-05 Thread Martin Dobias
On Feb 5, 2008 8:21 PM, Mikhail Umorin [EMAIL PROTECTED] wrote: I included limits.h and passed through the problem (thanks, Martin!) but now I have another one: [ 10%] Building CXX object src/core/CMakeFiles/qgis_core.dir/spatialindex/qgsspatialindex.o In file included from

Re: [Qgis-user] python plugin on windows

2008-02-01 Thread Martin Dobias
On Feb 1, 2008 10:42 AM, Tim Sutton [EMAIL PROTECTED] wrote: Also in the future we (ok probably python gurus like Martin co) could probably provide some kind of integrated development environment embedded in QGIS so that you can avoid the command line all togethergive it some time as its

Re: [Qgis-user] error using the stand alone app Oceanmap

2008-01-31 Thread Martin Dobias
On Jan 29, 2008 11:53 PM, Tim Michelsen [EMAIL PROTECTED] wrote: 2. try to find QGIS in some default paths (/usr, /usr/local on linux or ${PROGRAM_FILES}/Quantum GIS on windows etc.) or try to use a previously saved path to QGIS installation from QSettings 3. if no installation has been

Re: [Qgis-user] error using the stand alone app Oceanmap

2008-01-29 Thread Martin Dobias
On Jan 29, 2008 4:51 PM, Aaron Racicot [EMAIL PROTECTED] wrote: 3) You can play with a new project I am starting to develop called QGISLite. It can be found here: http://trac.reprojected.com/qgislite/ The intention of this project is to create a very minimal GIS app based on the python

Re: [Qgis-user] using rubberband as temp geometry

2008-01-20 Thread Martin Dobias
On Jan 19, 2008 12:53 AM, Richard Duivenvoorde [EMAIL PROTECTED] wrote: Hi List, using the rubberband example I'm trying to do a plugin in which I can add some 'blocks/geometries-of-interest' and add some labels to it (annotation?). My map is now showing a rubberband/geometry, and some

Re: [Qgis-user] python plugin action vs mode tool

2008-01-17 Thread Martin Dobias
On Jan 17, 2008 10:07 AM, Düster Horst [EMAIL PROTECTED] wrote: gLine = QgsGeometry.fromPolyline( [ QgsPoint(1,1), QgsPoint(2,2) ] ) # buffer with distance 0.5, use 5 segments to approximate curves gBuffer = gLine.buffer(0.5, 5) print gBuffer.asPolygon() The buffer() method is a great

Re: [Qgis-user] Two different QGIS installations on one linux box

2008-01-14 Thread Martin Dobias
On Jan 14, 2008 10:07 AM, Düster Horst [EMAIL PROTECTED] wrote: I want to install two different QGIS Versions on one linux box. 1. Stable 0.9.1 in production state and 2. unstable 0.9.2 for developing. With ccmake I configure different CMAKE_INSTALL_PREFIX for each installation. After make

Re: [Qgis-user] How to identify a raster on the map?

2008-01-14 Thread Martin Dobias
On Jan 14, 2008 9:36 PM, Aaron Racicot [EMAIL PROTECTED] wrote: http://blog.qgis.org/?q=node/104 Aaron, a note about the implementation: in fact you don't need to implement RasterInfoTool - there's QgsMapToolEmitPoint in gui iibrary which does the same thing :-) Moreover, when reimplementing

Re: [Qgis-user] Problem compiling PyQt4

2008-01-12 Thread Martin Dobias
On Jan 12, 2008 2:36 PM, Micha Silver [EMAIL PROTECTED] wrote: 1- What do I lose by not having Python bindings? Python support in QGIS is optional, that's why it compiles and works also without it. The most interesting part of the python support for ordinary users is ability to use plugins

Re: [Qgis-user] [Qgis-developer] Python build problem on OSX

2007-12-19 Thread Martin Dobias
On Dec 19, 2007 6:48 AM, Tom Elwertowski [EMAIL PROTECTED] wrote: William Kyngesburye wrote: I found a build problem (unnoticed back in 0.9.0) with the Python support on OSX - it will NOT build universal, or with an SDK (which means I can't build *on* Leopard *for* Tiger, due to some

Re: [Qgis-user] red-lining / annotations plugin ?

2007-12-07 Thread Martin Dobias
On Dec 7, 2007 3:01 PM, Tim Sutton [EMAIL PROTECTED] wrote: In fact you can use QGIS project files to save plugin-specific data for a plugin - see QgsProject class. In case you'd like to be able to use one set of annotation for different project it would be wiser to save them separately -

Re: [Qgis-user] red-lining / annotations plugin ?

2007-12-03 Thread Martin Dobias
Hi Richard, On Dec 3, 2007 12:10 PM, Richard Duivenvoorde [EMAIL PROTECTED] wrote: QUESTIONS: - has somebody been busy with this kind of stuff? I don't know about anyone doing such support. But in fact you could use already existing QGIS facilities although the usage is not that

Re: [Qgis-user] gsl-bin, swig - redundant build requirements?

2007-11-06 Thread Martin Dobias
On 11/6/07, Tim Sutton [EMAIL PROTECTED] wrote: Hi Martin Thanks I removed libtool from linux deps. By more libraries for gdal you mean libhdf4g-run and libhdf? Yes, those ones, also libjasper or libtiff... Btw. SWIG is not really needed - it would be needed only in case you'd like to

Re: [Qgis-user] Grass lib

2007-10-30 Thread Martin Dobias
On 10/30/07, Cemal Koplay [EMAIL PROTECTED] wrote: Hi everyone, I want to ask a questions about compiling with Visual Studio. I'am trying compile qgis0.9.0 with Visual Studio 2005 with grass plugin but i think i must have grass library that are compiled with visual studio. Is it right and if

Re: [Qgis-user] Grass lib

2007-10-30 Thread Martin Dobias
On 10/30/07, Cemal Koplay [EMAIL PROTECTED] wrote: Yes I just realese that. Know what i am trying to do is recompiling grass for getting def files for the grass libary dlls to use with LIB tool that converts def to lib files for using with MSVC. Is it possible to do so? My plan is after

Re: [Qgis-user] python 'html image map' plugin

2007-09-11 Thread Martin Dobias
Hi Richard, I'm trying out Qgis 9 and it's python bindings on Debian. It's really fun (and doable) to write a python plugin. 'MyFirstPlugin' is a plugin which generates an html-page containing an image map of given 'map view'. You can generate area-tags for all polygons of the active layer,

Re: [Qgis-user] Trouble with SIP in current preview

2007-08-30 Thread Martin Dobias
On 8/30/07, Luca Casagrande [EMAIL PROTECTED] wrote: Hi Martin and thank for your answer. With the current svn, qgis builds fine but, once started, it can't found python bindings. Hi again, to see where's the problem, fire up console and set PYTHONPATH variable: export

Re: [Qgis-user] Trouble with SIP in current preview

2007-08-30 Thread Martin Dobias
That looks like a mismatch of libraries from 0.8 and 0.9 ... Have a look to which qgis_core and qgis_gui libraries do the core.so and gui.so python modules link to: ldd /home/geko/qgis/share/qgis/python/qgis/core.so Martin On 8/30/07, Luca Casagrande [EMAIL PROTECTED] wrote: Hi Martin, this is

Re: [Qgis-user] qgis python plugins / bindings on windows

2007-08-20 Thread Martin Dobias
On 8/20/07, Richard Duivenvoorde [EMAIL PROTECTED] wrote: My questions (hopefully this will be a quickstart the for all c-noobs like me): - will you need a c-build environment (including make) to make python plugins? Now or after the 'real' 0.9 release? Hi Richard! When using binaries

Re: [Qgis-user] QGIS 0.9 cannot find libqgis_core.so

2007-08-05 Thread Martin Dobias
On 7/31/07, Tim Sutton [EMAIL PROTECTED] wrote: Hi Magnus Em 27/07/2007, às 21:00, Magnus Homann escreveu: If that's the way you like it, sure. The discussion we had was not about _how_ but it circled around _if_. Ah I confess to not going back to the archives... I guess we could always

Re: [Qgis-user] Build QGIS from source

2007-06-20 Thread Martin Dobias
When I then run ~/apps/bin/qgis I first get this: ./qgis: symbol lookup error: ./qgis: undefined symbol: _ZN10QgsMapTool9setActionEP7QAction This is surely due the fact that your system uses wrong libraries - it chooses those in e.g. /usr/local/lib but it has to choose the ones which are in

Re: [Qgis-user] Re: [Qgis-developer] Using Request for changes (RFC) in QGIS project

2007-06-08 Thread Martin Dobias
On 6/8/07, Marco Hugentobler [EMAIL PROTECTED] wrote: You mean that people directly insert their votes into the wiki page? I made a RFC wiki page (http://wiki.qgis.org/qgiswiki/RequestForComment) and a template that can be copied. Individual votings would then be separated with === vote === at

Re: [Qgis-user] (no subject)

2007-06-06 Thread Martin Dobias
On 6/6/07, Pleyer, Walter [EMAIL PROTECTED] wrote: [ 16%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsgeometry.obj C:\dev\cpp\qgis\src\core\qgsgeometry.cpp: In member function `int QgsGeometry::addIsland(const QListQgsPoint)': C:\dev\cpp\qgis\src\core\qgsgeometry.cpp:2511: warning:

Re: [Qgis-user] (no subject)

2007-05-29 Thread Martin Dobias
On 5/29/07, Pleyer, Walter [EMAIL PROTECTED] wrote: Hi folks! I'm trying to compile Qgis on Windows with the ultimate goal of a Qgis Version with ecw-support for windows. Unfortunately cmake is making troubles (but no binary): C:\dev\cpp\qgiscmake . -- Check for working C compiler:

Re: [Qgis-user] About compile QGIS to release version

2007-05-13 Thread Martin Dobias
On 5/13/07, li somic [EMAIL PROTECTED] wrote: Hi, I'm following the instructions (https://svn.qgis.org/repos/qgis/trunk/qgis/README_windows.txt) to build QGIS. My environment:windows 2003 compiler:MinGw32 Python:2.5 Cmake:2.4 qgis code form svn:https://svn.qgis.org/repos/qgis/trunk/qgis I am

Re: [Qgis-user] Geocoder plugin

2007-04-23 Thread Martin Dobias
On 4/23/07, Matthew Perry [EMAIL PROTECTED] wrote: Hey everyone, It's been a rainy weekend here, a good time to learn the python qgis bindings. I decided to implement a geocoder plugin which would use web services to do all the tough work and the delimited text provider to load the results

Re: [Qgis-user] Problem Importing Shapefile to PostgreSQL

2007-04-15 Thread Martin Dobias
Hi, please report your problem to our bug tracking system and attach (or link) also the shapefile you're trying to import. https://svn.qgis.org/trac Btw. yes, error reporting in the import tool is poor, that might be another ticket :) Martin On 4/14/07, Jack Morris [EMAIL PROTECTED] wrote: I

Re: [Qgis-user] Writing plugins::export selected object to OGR

2007-02-07 Thread Martin Dobias
On 2/6/07, Oleg Gusev [EMAIL PROTECTED] wrote: Am Dienstag, 6. Februar 2007 13:27 schrieben Sie: sorry, but I did not find the export to shapefile function in qgis. Could you give me a hint? In ./src/core/qgsvectorfilewriter.cpp QgsVectorFileWriter::QgsVectorFileWriter ... mOutputFormat

[Qgis-user] QGIS and platforms

2007-01-30 Thread Martin Dobias
Hi all, I'd like to ask you to try to build and run QGIS from SVN trunk in case you're running a something other than Windows, Mac or Linux (these platforms are already known to work). We're considering the usage of CMake build system and we would like to know whether everything will work also

Re: [Qgis-user] qgis/qt font problem

2007-01-27 Thread Martin Dobias
Hi, here's a suggested solution for the problem I guess: http://svn.qgis.org/trac/ticket/503 Martin On 1/27/07, Martin Landa [EMAIL PROTECTED] wrote: Hi all, I have problem with fonts in QGIS. I have changed Qt configuration (qtconfig) many times without any success. Still I can see very

Re: [Qgis-user] Can't build qgis from svn anymore --- undefined preprocessor symbol?

2007-01-26 Thread Martin Dobias
Hi Tom, building with autogen.sh or configure script is broken at the moment - currently we're trying CMake as a replacement of current automake autoconf build system. Please search qgis-developer archives from this month on how to build qgis with CMake. Don't hesitate to contact us with any

[Qgis-user] CMake build notes

2007-01-26 Thread Martin Dobias
Hi all, I've put together some notes on building QGIS with CMake on wiki: http://wiki.qgis.org/qgiswiki/Building_with_CMake It's still a work in progress but it should serve as a source of information on building QGIS SVN on any platform. Any comments and suggestions are welcome. Martin

Re: [Qgis-user] compilation of qgis 0.8 on fc6

2007-01-10 Thread Martin Dobias
On 1/10/07, Jean Cayron [EMAIL PROTECTED] wrote: I've got the same problem on openSuse 10.2 64 bits. When I use --with-qt-pkg-config it does as for Honza. When I use --with-qtdir=/usr it ends lke that : checking QTDIR... /usr checking Qt version in /usr/include/Qt... 421 (4) checking for

[Qgis-user] problems with windows build

2006-12-04 Thread Martin Dobias
Hi, I've tried to summarize all known problems of windows test build in this ticket: https://svn.qgis.org/trac/ticket/286 This ticket is also the best place for reporting problems that related to the build and installation of windows version. Bye, Martin

Re: [Qgis-user] trouble compiling latest SVN

2006-11-02 Thread Martin Dobias
On 11/2/06, Stefano Costa [EMAIL PROTECTED] wrote: qgscontexthelp.moc.cpp:15:34: error: private/qucomextra_p.h: No such file or directory qgscontexthelp.moc.cpp:17:2: error: #error This file was generated using the moc from 3.3.6. It qgscontexthelp.moc.cpp:18:2: error: #error cannot be used with