[Qgis-developer] qgis.org is very slow this morning

2012-10-17 Thread Otto Dassau
Hi,

just wonder what kind of ruby processes make qgis.org so slow this morning? 

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


[Qgis-developer] migrating from 1.7 to 1.8

2012-10-17 Thread PIERRE Sylvain
Hi,

I'm developping a standalone apllication with python qt and pyqgis and I would 
like to update this tools
I'm triyng to migrate from 1.7 to 1.8, so from python 2.5 to python 2.7...
My IDE is pyscripter.
With env 1.8 when I run my dev from pyscriter it's slower than with 1.7 and 
there's messages in the output window like that :

d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(364) : 
(QgsProviderRegistry::provider) Library name is C:/Program Files/Quantum GIS 
Lisboa/apps/qgis/plugins/spatialiteprovider.dll
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(370) : 
(QgsProviderRegistry::provider) Loaded data provider library
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(371) : 
(QgsProviderRegistry::provider) Attempting to resolve the classFactory function
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(378) : 
(QgsProviderRegistry::provider) Getting pointer to a dataProvider object from 
the library
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4131) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) New sqlite connection for 
C:/APPLI_PDT/CANAL_DEV/bd_canal.sqlite
d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4152) : 
(QgsSpatiaLiteProvider::SqliteHandles::openDb) Connection to the database was 
successful
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(389) : 
(QgsProviderRegistry::provider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(390) : 
(QgsProviderRegistry::provider) provider name: spatialite
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2804) : 
(QgsVectorLayer::setDataProvider) Instantiated the data provider plugin
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2818) : 
(QgsVectorLayer::setDataProvider) Extent of layer: 
980388.0988147819880396,109491.8876062979979906 : 
996598.2265172089682892,110715.9319274979934562
d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(4521) : 
(QgsVectorLayer::setCoordinateSystem) - Computing Coordinate System

It's just like each cpp QGis function run in a verbose mode.

It wasn't like this with 1.7.

How can I solve it ?


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


Re: [Qgis-developer] qgis.org is very slow this morning

2012-10-17 Thread Werner Macho
It seems to be Rails competing with redmine and a compile process with
gcc in the background ..
struggling for computing time ..
and then apache and mysql are jumping in to complete the field ;)

probably time to move some processes on different machines?

regards
Werner

On Wed, Oct 17, 2012 at 9:27 AM, Otto Dassau das...@gbd-consult.de wrote:
 Hi,

 just wonder what kind of ruby processes make qgis.org so slow this morning?

 Regards
 Otto
 ___
 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] qgis.org is very slow this morning

2012-10-17 Thread Luca Manganelli
Il 17/10/2012, qgis-developer-boun...@lists.osgeo.org ha scritto:

 It seems to be Rails competing with redmine and a compile process with
 gcc in the background ..
 struggling for computing time ..
 and then apache and mysql are jumping in to complete the field ;)
 
 probably time to move some processes on different machines?

you could use nice -19 to gcc processes...
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] qgis.org is very slow this morning

2012-10-17 Thread Jürgen E . Fischer
Hi Werner,

On Wed, 17. Oct 2012 at 09:54:07 +0200, Werner Macho wrote:
 It seems to be Rails competing with redmine and a compile process with
 gcc in the background ..

So the minutely sphinx builds are gone now?Three of them were competing to
update the website, when I looked.   I changed the cron entry to run it every
15 minutes and added locking to the script - so just one process runs at a
time.

But still redmine is consuming a lot of resources although nobody (even Pirmin)
knows exactly why...

I suppose something is indexing redmine again - yesterday googlebot and baidu
visited simultaniously, but I'm not sure that was the actually issue...

 struggling for computing time ..
 and then apache and mysql are jumping in to complete the field ;)
 
 probably time to move some processes on different machines?

AFAICT only redmine is consuming lots of CPU.  Not sure what to do about it...


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-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Bulding QGIS on Mac 10.8

2012-10-17 Thread Tasos Varoudis
Hello,

Any ideas? Im using brew to install deps.

Best

  Quantum-GIS git:(master) ✗ cmake -D CMAKE_VERBOSE_MAKEFILE=true -D 
CMAKE_BUILD_TYPE=Debug .
-- Quantum GIS version: 1.9.0 Master (10900)
-- Could not find GRASS
-- Found Proj: /Library/Frameworks/PROJ.framework
-- Found GEOS: /Library/Frameworks/GEOS.framework
-- Found GDAL: /Library/Frameworks/GDAL.framework (1.8.1)
-- Found Expat: /usr/local/lib/libexpat.dylib
-- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
-- Found Qwt: /usr/local/lib/qwt.framework (6.0.1)
-- Found Sqlite3: /Library/Frameworks/SQLite3.framework
-- Found PostgreSQL: /usr/local/Cellar/postgresql/9.2.1/lib/libpq.dylib
-- Found SpatiaLite: /Library/Frameworks/SQLite3.framework
-- Touch support disabled
-- Pedantic compiler settings enabled
-- Debug output enabled
-- Found Python executable: /usr/local/bin/python
-- Found Python version: 2.7.3
-- Found Python library: -framework Python
-- Found SIP version: 4.13.3
-- Found PyQt4 version: 4.9.4
-- Found GSL: /Library/Frameworks/GSL.framework
-- txt2tags not found - disabled
-- Ctest Binary Directory  set to: 
/Users/varoudis/Desktop/Projects/Quantum-GIS/output/bin
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/varoudis/Desktop/Projects/Quantum-GIS



 27%] Building CXX object 
src/core/CMakeFiles/qgis_core.dir/flex_qgsexpressionlexer.cpp.o
cd /Users/varoudis/Desktop/Projects/Quantum-GIS/src/core  /usr/bin/c++   
-Dqgis_core_EXPORTS -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB 
-DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_CAST_TO_ASCII 
-DQGISDEBUG=1 -D_TTY_POSIX_ -D_HAVE_PTHREAD_ -DQT_DEBUG -g -fPIC 
-I/usr/local/Cellar/qt/4.8.3/include -F/usr/local/Cellar/qt/4.8.3/lib 
-I/usr/local/Cellar/qt/4.8.3/include/QtSvg 
-I/usr/local/Cellar/qt/4.8.3/include/QtWebKit 
-I/usr/local/Cellar/qt/4.8.3/include/QtGui 
-I/usr/local/Cellar/qt/4.8.3/include/QtTest 
-I/usr/local/Cellar/qt/4.8.3/include/QtXml 
-I/usr/local/Cellar/qt/4.8.3/include/QtSql 
-I/usr/local/Cellar/qt/4.8.3/include/QtNetwork 
-I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Headers 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/composer 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/pal 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/raster 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/renderer 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/symbology 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/symbology-ng 
-I/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/gps/qextserialport 
-I/Library/Frameworks/GEOS.framework/Headers 
-I/Library/Frameworks/PROJ.framework/Headers 
-I/Library/Frameworks/GDAL.framework/Headers 
-I/Library/Frameworks/SQLite3.framework/Headers-Wall -Wextra -Wno-long-long 
-Wformat-security -Wno-strict-aliasing -DCORE_EXPORT= -DGUI_EXPORT= 
-DPYTHON_EXPORT= -DANALYSIS_EXPORT= 
-DTEST_DATA_DIR=\/Users/varoudis/Desktop/Projects/Quantum-GIS/tests/testdata\
 -F/Library/Frameworks  -w -o 
CMakeFiles/qgis_core.dir/flex_qgsexpressionlexer.cpp.o -c 
/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/flex_qgsexpressionlexer.cpp
/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/qgsspatialindex.cpp:29:42:
 error: expected class name
class QgisVisitor : public SpatialIndex::IVisitor
 ^
/usr/local/Cellar/cmake/2.8.9/bin/cmake -E cmake_progress_report 
/Users/varoudis/Desktop/Projects/Quantum-GIS/CMakeFiles 
/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/qgsspatialindex.cpp:35:27:
 error: unknown type name 'INode'
void visitNode( const INode n )
  ^
/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/qgsspatialindex.cpp:38:27:
 error: unknown type name 'IData'
void visitData( const IData d )
  ^
/Users/varoudis/Desktop/Projects/Quantum-GIS/src/core/qgsspatialindex.cpp:43:39:
 error: unknown type name 'IData'
void visitData( std::vectorconst IData* v )
  ^
[ 27%] Building CXX object 
src/core/CMakeFiles/qgis_core.dir/qgsexpressionparser.cpp.o
cd /Users/varoudis/Desktop/Projects/Quantum-GIS/src/core  /usr/bin/c++   
-Dqgis_core_EXPORTS -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB 
-DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_CAST_TO_ASCII 
-DQGISDEBUG=1 -D_TTY_POSIX_ -D_HAVE_PTHREAD_ -DQT_DEBUG -g -fPIC 
-I/usr/local/Cellar/qt/4.8.3/include -F/usr/local/Cellar/qt/4.8.3/lib 
-I/usr/local/Cellar/qt/4.8.3/include/QtSvg 
-I/usr/local/Cellar/qt/4.8.3/include/QtWebKit 
-I/usr/local/Cellar/qt/4.8.3/include/QtGui 
-I/usr/local/Cellar/qt/4.8.3/include/QtTest 
-I/usr/local/Cellar/qt/4.8.3/include/QtXml 
-I/usr/local/Cellar/qt/4.8.3/include/QtSql 
-I/usr/local/Cellar/qt/4.8.3/include/QtNetwork 
-I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Headers 

Re: [Qgis-developer] qgis.org is very slow this morning

2012-10-17 Thread Otto Dassau
Hi,

Am Wed, 17 Oct 2012 12:21:35 +0200
schrieb Jürgen E. Fischer j...@norbit.de:

 Hi Werner,
 
 On Wed, 17. Oct 2012 at 09:54:07 +0200, Werner Macho wrote:
  It seems to be Rails competing with redmine and a compile process with
  gcc in the background ..
 
 So the minutely sphinx builds are gone now?Three of them were
 competing to update the website, when I looked.   I changed the cron entry
 to run it every 15 minutes and added locking to the script - so just one
 process runs at a time.

I changed the sphinx cronjob to 4 times a day.

 But still redmine is consuming a lot of resources although nobody (even
 Pirmin) knows exactly why...
 
 I suppose something is indexing redmine again - yesterday googlebot and
 baidu visited simultaniously, but I'm not sure that was the actually
 issue...
 
  struggling for computing time ..
  and then apache and mysql are jumping in to complete the field ;)
  
  probably time to move some processes on different machines?
 
 AFAICT only redmine is consuming lots of CPU.  Not sure what to do about
 it...
 
 
 Jürgen

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


[Qgis-developer] Fwd: Quantum GIS Desktop - Bug #3349] (Closed) Histogram is wrong if raster has negative values

2012-10-17 Thread Agustin Lobo
Hi!
Regarding Bug #3349] (Closed) Histogram is wrong if raster has
negative values, Giovanni Manghi closed the issue saying:
In QGIS master they seems ok to me. Reopen if necessary.

I do not have master. Could anybody please use this tif file
http://dl.dropbox.com/u/3180464/testhist.tif

and send me an screen capture of the qgis histogram to verify?
As a reference, an screenshot
http://dl.dropbox.com/u/3180464/histproblem.jpeg

of what I currentely get with QGIS and the correct histogram in R

(I actually tried to implement this and other tools using the R
interface in Sextante, but I did not get
that interface to work)

Agus


--
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra Jaume Almera (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
e-mail agustin.l...@ictja.csic.es
https://sites.google.com/site/aloboaleu/


--
--
Dr. Agustin Lobo
Institut de Ciencies de la Terra Jaume Almera (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona
Spain
Tel. 34 934095410
Fax. 34 934110012
e-mail agustin.l...@ictja.csic.es
https://sites.google.com/site/aloboaleu/
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] qgis.org is very slow this morning

2012-10-17 Thread Werner Macho
 Am Wed, 17 Oct 2012 12:21:35 +0200
 schrieb Jürgen E. Fischer j...@norbit.de:


 AFAICT only redmine is consuming lots of CPU.  Not sure what to do about


Hi!
Maybe there is a new redmine version available? Probably I have time
to check later this evening ..
And maybe we should really stick to up-to-date versions and seperate
some things..
As building machine I can offer a VM at the (powerful) server of a
friend of mine ..

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


Re: [Qgis-developer] migrating from 1.7 to 1.8

2012-10-17 Thread Etienne Tourigny
You built qgis with debug mode enabled.

You can suppress debug output by setting env. variable QGIS_DEBUG=-1

or run cmake again with -DCMAKE_BUILD_TYPE=Release and re-build qgis

On Wed, Oct 17, 2012 at 4:42 AM, PIERRE Sylvain sylvain.pie...@cg67.fr wrote:
 Hi,



 I’m developping a standalone apllication with python qt and pyqgis and I
 would like to update this tools

 I’m triyng to migrate from 1.7 to 1.8, so from python 2.5 to python 2.7…

 My IDE is pyscripter.

 With env 1.8 when I run my dev from pyscriter it’s slower than with 1.7 and
 there’s messages in the output window like that :



 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(364) :
 (QgsProviderRegistry::provider) Library name is C:/Program Files/Quantum GIS
 Lisboa/apps/qgis/plugins/spatialiteprovider.dll

 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(370) :
 (QgsProviderRegistry::provider) Loaded data provider library

 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(371) :
 (QgsProviderRegistry::provider) Attempting to resolve the classFactory
 function

 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(378) :
 (QgsProviderRegistry::provider) Getting pointer to a dataProvider object
 from the library

 d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4131) :
 (QgsSpatiaLiteProvider::SqliteHandles::openDb) New sqlite connection for
 C:/APPLI_PDT/CANAL_DEV/bd_canal.sqlite

 d:\src\qgis-1.8.0\src\providers\spatialite\qgsspatialiteprovider.cpp(4152) :
 (QgsSpatiaLiteProvider::SqliteHandles::openDb) Connection to the database
 was successful

 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(389) :
 (QgsProviderRegistry::provider) Instantiated the data provider plugin

 d:\src\qgis-1.8.0\src\core\qgsproviderregistry.cpp(390) :
 (QgsProviderRegistry::provider) provider name: spatialite

 d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2804) :
 (QgsVectorLayer::setDataProvider) Instantiated the data provider plugin

 d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(2818) :
 (QgsVectorLayer::setDataProvider) Extent of layer:
 980388.0988147819880396,109491.8876062979979906 :
 996598.2265172089682892,110715.9319274979934562

 d:\src\qgis-1.8.0\src\core\qgsvectorlayer.cpp(4521) :
 (QgsVectorLayer::setCoordinateSystem) - Computing Coordinate System



 It’s just like each cpp QGis function run in a verbose mode.



 It wasn’t like this with 1.7.



 How can I solve it ?






 ___
 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] [Qgis-user] Using/visualizing 3D data (Z values)

2012-10-17 Thread Vincent Picavet
Hi all,

Le mardi 25 septembre 2012 15:47:14, Etienne Tourigny a écrit :
 reviving this old thread because I'm interested in using the z-value
 (elevation) from kml files (type wkbMultiLineString25D) in a qgis plugin.
 
 Are there any plans to introduce z-value (25D) support in 2.0?

We at Oslandia are working on 3D processing in databases and visualization.

We have an early piece of code opening a 3D vector layer in QGIS and feeding 
it to QGIS Globe. This works with real 3D objects loaded from database, and 
should work with 2.5D (x, y, z) shapefiles too theoritically.

We have to get it in a better shape before starting to provide pull requests 
on this, but you should see this coming in a couple of months.

Then this will open a whole new range of needs with 3D data, but one step 
after the other...

Vincent


 
 Experimenting has shown that doing geom.exportToWkt() strips the z-value.
 
 How can I currently handle z-values? I understand that I would have to
 parse the wkb directly, is this possible in python? If so can someone give
 me some pointers?
 
 Other option - external python library like shapely? It seems shapely does
 support z levels.
 
 Or would it be simpler to parse the kml files by hand using an xml parser,
 as syntax is relatively simple?
 
 
 regards,
 Etienne
 
 On Mon, Dec 5, 2011 at 8:02 AM, Marco Hugentobler 
 
 marco.hugentob...@sourcepole.ch wrote:
  Hi Paul
  
  Unfortunately, the current geometry system does not handle z- and
  m-values in a sound way.
  Some tools consider z and others don't. M-values are even more difficult
  as they cannot be accessed by the QGIS API (z-coordinates can be read by
  parsing the binary format of the geometry).
  
  An overhaul of the geometry system is planned for version 2.
  
  Regards,
  Marco
  
  On 05.12.2011 10:42, Paul Lens wrote:
   Hi all,
   
   1. I made a TIN surface, using the interpolation plugin, from a point
   shapefile (with ALTITUDE field) and  3D line shapefiles. I lost time
   trying to extract the relevant lines from the line shapefiles without
   loosing the 3D information (Z values of the nodes).
   If I remember well, I first used Merge Layers from the mmqgis
   plugin, and it kept the Z information. Than, I used the Intersection
   command in the Vector menu, and the Z information was lost. Finally,
   after manually selecting the relevant lines and using save as, I got
   the expected 3D line shapefile keeping the Z values.
   Is this loss of Z information a known limitation of the gdal vector
   commands in QGIS (vector menu) and is this limitation affecting all
   these commands? Or did I do something wrong?
   
   2. In a second step, I wanted to be able to easily see (through
   labeling a Z field) or ask (with the identify command) those Z values
   from the 3D lines, so as to fine tune the interpretation of the
   topography.
   Again the gdal tool (in Vector menu) Node Extraction lost all Z
   information.
   Is there a workaround to create a point shapefile with a Z field? Or,
   at least, to keep the Z values in a point shapefile, rasterize it so
   as to be able to visualize the Z value using  the Identify command
   on the raster?
   
   Thanking all the developers for this wonderful program,
  
  --
  Dr. Marco Hugentobler
  Sourcepole -  Linux  Open Source Solutions
  Churerstrasse 22, CH-8808 Pfäffikon SZ,
  switzerlandmarco.hugentob...@sourcepole.ch http://www.sourcepole.ch
  Technical Advisor QGIS Project Steering Committee
  
  
  
  ___
  Qgis-user mailing list
  qgis-u...@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] fTools: Random points and grid, incorrect origin?

2012-10-17 Thread Paolo Cavallini
Hi all.
I noticed that generation of regular points and grids take 0,0 as
origin, instead of xmin, ymin of the layer bounding box: could anyone
confirm?
Thanks.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


[Qgis-developer] Saving expressions

2012-10-17 Thread Paolo Cavallini
Hi all.
Currently we can use a variety of expressions in field calculator.
UNfortunately, they cannot be saved (if not copypasting as text). It
seems feasible and reasonable to save them as an XML, so we can reload
it. If saved with the same name and in the same dir as the original
file, they could be autoloaded just as we do for styles. In this way it
would be easy to keep calculations updated.
Thoughts?
All the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


[Qgis-developer] Expressions preview often missing

2012-10-17 Thread Paolo Cavallini
Hi all.
The preview in the field calculator expression builder is often missing:
is this confirmed? Anyone working on this? Should I open a ticket?
Thanks.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] fTools: Random points and grid, incorrect origin?

2012-10-17 Thread Victor Olaya
native fTools, or the SEXTANTE version?

2012/10/17 Paolo Cavallini cavall...@faunalia.it:
 Hi all.
 I noticed that generation of regular points and grids take 0,0 as
 origin, instead of xmin, ymin of the layer bounding box: could anyone
 confirm?
 Thanks.

 --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

 ___
 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] fTools: Random points and grid, incorrect origin?

2012-10-17 Thread Alexander Bruy
Native fTools. Regular points and grids are not available in SEXTANTE yet.
This and others missed tools are in my TODO. I already reviewed Analysis
and Geoemtry tools groups in SEXTANTE and fixed some bugs. Will continue
to work on porting other tools and bugfixing

2012/10/17 Victor Olaya vola...@gmail.com:
 native fTools, or the SEXTANTE version?

 2012/10/17 Paolo Cavallini cavall...@faunalia.it:
 Hi all.
 I noticed that generation of regular points and grids take 0,0 as
 origin, instead of xmin, ymin of the layer bounding box: could anyone
 confirm?
 Thanks.

 --
 Paolo Cavallini - Faunalia
 www.faunalia.eu
 Full contact details at www.faunalia.eu/pc
 Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

 ___
 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



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


Re: [Qgis-developer] fTools: Random points and grid, incorrect origin?

2012-10-17 Thread Paolo Cavallini
Il 17/10/2012 18:39, Victor Olaya ha scritto:
 native fTools, or the SEXTANTE version?

I checked only native for now.
Thanks for your interest.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

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


Re: [Qgis-developer] Bulding QGIS on Mac 10.8

2012-10-17 Thread Larry Shaffer
Hi Tasos,

On Wed, Oct 17, 2012 at 4:29 AM, Tasos Varoudis n...@archtech.gr wrote:
 Hello,

 Any ideas? Im using brew to install deps.

 Best

   Quantum-GIS git:(master) ✗ cmake -D CMAKE_VERBOSE_MAKEFILE=true -D 
 CMAKE_BUILD_TYPE=Debug .

Your cmake command looks a little shy on options. This is what I use:

# force llvm instead of clang under XCode 4.4.1 (uses GNU 4.2.1)
export CC=/usr/bin/llvm-gcc
export CXX=/usr/bin/llvm-g++

/usr/local/bin/cmake -D
CMAKE_INSTALL_PREFIX=/Users/larrys/QGIS/github.com/QGIS_Apps \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D WITH_ASTYLE=FALSE \
-D ENABLE_TESTS=TRUE \
-D WITH_INTERNAL_SPATIALITE=FALSE \
-D WITH_PYSPATIALITE=FALSE \
-D SPATIALINDEX_INCLUDE_DIR=/usr/local/include/spatialindex \
-D SPATIALINDEX_LIBRARY=/usr/local/lib/libspatialindex.dylib \
-D QWT_LIBRARY=/usr/local/qwt-5.2.2/lib/libqwt.dylib \
-D QWT_INCLUDE_DIR=/usr/local/qwt-5.2.2/include \
-D BISON_EXECUTABLE=/usr/local/bin/bison \
-D WITH_MAPSERVER=TRUE \
-D WITH_APIDOC=FALSE \
-D QGIS_MACAPP_BUNDLE=2 \
   ../Quantum-GIS

Of note, the SPATIALINDEX_INCLUDE_DIR and SPATIALINDEX_LIBRARY are
necessary for CMake to properly find the way libspatialindex is
installed. Also, either your copy/paste failed, or you are building in
the source directory (i.e. your command ends in just one .). Consider
doing an out-of-source build as outlined in the INSTALL doc. My build
directory is beside the QGIS git directory.

These cmake options are extraneous to a basic build and can be removed:
WITH_ASTYLE, ENABLE_TESTS, WITH_APIDOC

You can use 'ccmake .' from your build directory to access a curses
interface to all the pertinent cmake options, if you are not using a
script to configure.

My build script may be of some use to you:
https://gist.github.com/2902743

You will also want to manually install QScintilla2 and compile its
Python module, which the new Python console uses (instructions are not
currently in the INSTALL doc for Mac, but I will add it today):
http://www.riverbankcomputing.com/software/qscintilla/download

These are the basics (for 2.6.2):

# install BEFORE compiling PyQt4 (or re-compile PyQt4 afterwards)
cd QScintilla source dir
cd Qt4Qt5
qmake -spec macx-g++ qscintilla.pro
make -j max number of cores on Mac
sudo make install

# compile/install PyQt

cd QScintilla source dir
cd Python
python2.7 configure.py
make -j max number of cores on Mac
sudo make install

# reference my build script on how to patch the module into the
completed/installed Mac QGIS build.

You may want to reference this previous mailing list thread:
http://osgeo-org.1560.n6.nabble.com/Building-QGIS-in-Mac-OS-X-Mountain-Lion-i-e-10-8-with-QtSQL-support-tp4992577p4993235.html

Lastly, if you can't get QGIS to compile, you could consider using the
nightly build for Mac:
http://hub.qgis.org/projects/quantum-gis/wiki/Download#421-Nightly-Builds

Note, I do not use homebrew for anything; I just follow the INSTALL
docs (which basically work for 10.6, 10.7, 10.8).

Regards,

Larry


 -- Quantum GIS version: 1.9.0 Master (10900)
 -- Could not find GRASS
 -- Found Proj: /Library/Frameworks/PROJ.framework
 -- Found GEOS: /Library/Frameworks/GEOS.framework
 -- Found GDAL: /Library/Frameworks/GDAL.framework (1.8.1)
 -- Found Expat: /usr/local/lib/libexpat.dylib
 -- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
 -- Found Qwt: /usr/local/lib/qwt.framework (6.0.1)
 -- Found Sqlite3: /Library/Frameworks/SQLite3.framework
 -- Found PostgreSQL: /usr/local/Cellar/postgresql/9.2.1/lib/libpq.dylib
 -- Found SpatiaLite: /Library/Frameworks/SQLite3.framework
 -- Touch support disabled
 -- Pedantic compiler settings enabled
 -- Debug output enabled
 -- Found Python executable: /usr/local/bin/python
 -- Found Python version: 2.7.3
 -- Found Python library: -framework Python
 -- Found SIP version: 4.13.3
 -- Found PyQt4 version: 4.9.4
 -- Found GSL: /Library/Frameworks/GSL.framework
 -- txt2tags not found - disabled
 -- Ctest Binary Directory  set to: 
 /Users/varoudis/Desktop/Projects/Quantum-GIS/output/bin
 -- Configuring done
 -- Generating done
 -- Build files have been written to: 
 /Users/varoudis/Desktop/Projects/Quantum-GIS



  27%] Building CXX object 
 src/core/CMakeFiles/qgis_core.dir/flex_qgsexpressionlexer.cpp.o
 cd /Users/varoudis/Desktop/Projects/Quantum-GIS/src/core  /usr/bin/c++   
 -Dqgis_core_EXPORTS -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB 
 -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB 
 -DQT_NO_CAST_TO_ASCII -DQGISDEBUG=1 -D_TTY_POSIX_ -D_HAVE_PTHREAD_ -DQT_DEBUG 
 -g -fPIC -I/usr/local/Cellar/qt/4.8.3/include 
 -F/usr/local/Cellar/qt/4.8.3/lib -I/usr/local/Cellar/qt/4.8.3/include/QtSvg 
 -I/usr/local/Cellar/qt/4.8.3/include/QtWebKit 
 -I/usr/local/Cellar/qt/4.8.3/include/QtGui 
 -I/usr/local/Cellar/qt/4.8.3/include/QtTest 
 -I/usr/local/Cellar/qt/4.8.3/include/QtXml 
 -I/usr/local/Cellar/qt/4.8.3/include/QtSql 
 

Re: [Qgis-developer] Bulding QGIS on Mac 10.8

2012-10-17 Thread Tasos Varoudis
Thanks a lot,

Ill try it. I dont think night build will do for me. I need the libs in order 
to link to them.

Best,
Tasos

On 17 Oct 2012, at 18:29, Larry Shaffer lar...@dakotacarto.com wrote:

 Hi Tasos,
 
 On Wed, Oct 17, 2012 at 4:29 AM, Tasos Varoudis n...@archtech.gr wrote:
 Hello,
 
 Any ideas? Im using brew to install deps.
 
 Best
 
  Quantum-GIS git:(master) ✗ cmake -D CMAKE_VERBOSE_MAKEFILE=true -D 
 CMAKE_BUILD_TYPE=Debug .
 
 Your cmake command looks a little shy on options. This is what I use:
 
 # force llvm instead of clang under XCode 4.4.1 (uses GNU 4.2.1)
 export CC=/usr/bin/llvm-gcc
 export CXX=/usr/bin/llvm-g++
 
 /usr/local/bin/cmake -D
 CMAKE_INSTALL_PREFIX=/Users/larrys/QGIS/github.com/QGIS_Apps \
-D CMAKE_BUILD_TYPE=RelWithDebInfo \
-D WITH_ASTYLE=FALSE \
-D ENABLE_TESTS=TRUE \
-D WITH_INTERNAL_SPATIALITE=FALSE \
-D WITH_PYSPATIALITE=FALSE \
-D SPATIALINDEX_INCLUDE_DIR=/usr/local/include/spatialindex \
-D SPATIALINDEX_LIBRARY=/usr/local/lib/libspatialindex.dylib \
-D QWT_LIBRARY=/usr/local/qwt-5.2.2/lib/libqwt.dylib \
-D QWT_INCLUDE_DIR=/usr/local/qwt-5.2.2/include \
-D BISON_EXECUTABLE=/usr/local/bin/bison \
-D WITH_MAPSERVER=TRUE \
-D WITH_APIDOC=FALSE \
-D QGIS_MACAPP_BUNDLE=2 \
   ../Quantum-GIS
 
 Of note, the SPATIALINDEX_INCLUDE_DIR and SPATIALINDEX_LIBRARY are
 necessary for CMake to properly find the way libspatialindex is
 installed. Also, either your copy/paste failed, or you are building in
 the source directory (i.e. your command ends in just one .). Consider
 doing an out-of-source build as outlined in the INSTALL doc. My build
 directory is beside the QGIS git directory.
 
 These cmake options are extraneous to a basic build and can be removed:
 WITH_ASTYLE, ENABLE_TESTS, WITH_APIDOC
 
 You can use 'ccmake .' from your build directory to access a curses
 interface to all the pertinent cmake options, if you are not using a
 script to configure.
 
 My build script may be of some use to you:
 https://gist.github.com/2902743
 
 You will also want to manually install QScintilla2 and compile its
 Python module, which the new Python console uses (instructions are not
 currently in the INSTALL doc for Mac, but I will add it today):
 http://www.riverbankcomputing.com/software/qscintilla/download
 
 These are the basics (for 2.6.2):
 
 # install BEFORE compiling PyQt4 (or re-compile PyQt4 afterwards)
 cd QScintilla source dir
 cd Qt4Qt5
 qmake -spec macx-g++ qscintilla.pro
 make -j max number of cores on Mac
 sudo make install
 
 # compile/install PyQt
 
 cd QScintilla source dir
 cd Python
 python2.7 configure.py
 make -j max number of cores on Mac
 sudo make install
 
 # reference my build script on how to patch the module into the
 completed/installed Mac QGIS build.
 
 You may want to reference this previous mailing list thread:
 http://osgeo-org.1560.n6.nabble.com/Building-QGIS-in-Mac-OS-X-Mountain-Lion-i-e-10-8-with-QtSQL-support-tp4992577p4993235.html
 
 Lastly, if you can't get QGIS to compile, you could consider using the
 nightly build for Mac:
 http://hub.qgis.org/projects/quantum-gis/wiki/Download#421-Nightly-Builds
 
 Note, I do not use homebrew for anything; I just follow the INSTALL
 docs (which basically work for 10.6, 10.7, 10.8).
 
 Regards,
 
 Larry
 
 
 -- Quantum GIS version: 1.9.0 Master (10900)
 -- Could not find GRASS
 -- Found Proj: /Library/Frameworks/PROJ.framework
 -- Found GEOS: /Library/Frameworks/GEOS.framework
 -- Found GDAL: /Library/Frameworks/GDAL.framework (1.8.1)
 -- Found Expat: /usr/local/lib/libexpat.dylib
 -- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
 -- Found Qwt: /usr/local/lib/qwt.framework (6.0.1)
 -- Found Sqlite3: /Library/Frameworks/SQLite3.framework
 -- Found PostgreSQL: /usr/local/Cellar/postgresql/9.2.1/lib/libpq.dylib
 -- Found SpatiaLite: /Library/Frameworks/SQLite3.framework
 -- Touch support disabled
 -- Pedantic compiler settings enabled
 -- Debug output enabled
 -- Found Python executable: /usr/local/bin/python
 -- Found Python version: 2.7.3
 -- Found Python library: -framework Python
 -- Found SIP version: 4.13.3
 -- Found PyQt4 version: 4.9.4
 -- Found GSL: /Library/Frameworks/GSL.framework
 -- txt2tags not found - disabled
 -- Ctest Binary Directory  set to: 
 /Users/varoudis/Desktop/Projects/Quantum-GIS/output/bin
 -- Configuring done
 -- Generating done
 -- Build files have been written to: 
 /Users/varoudis/Desktop/Projects/Quantum-GIS
 
 
 
 27%] Building CXX object 
 src/core/CMakeFiles/qgis_core.dir/flex_qgsexpressionlexer.cpp.o
 cd /Users/varoudis/Desktop/Projects/Quantum-GIS/src/core  /usr/bin/c++   
 -Dqgis_core_EXPORTS -DQT_SVG_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_TEST_LIB 
 -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB 
 -DQT_NO_CAST_TO_ASCII -DQGISDEBUG=1 -D_TTY_POSIX_ -D_HAVE_PTHREAD_ 
 -DQT_DEBUG -g -fPIC -I/usr/local/Cellar/qt/4.8.3/include 
 -F/usr/local/Cellar/qt/4.8.3/lib -I/usr/local/Cellar/qt/4.8.3/include/QtSvg