[Qgis-developer] error in sip?

2013-06-24 Thread Denis Rouzaud

Hi,

I am not sure there is an error, but here:
https://github.com/qgis/Quantum-GIS/blob/master/python/core/qgsattributeaction.sip#L80

but it seems the last argument is missing, shouldn't it be:
sipCpp-doAction( a0, *a1, a2, a3 );

??

Cheers,

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


Re: [Qgis-developer] crash due to encoding?

2013-06-24 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 21/06/2013 18:02, Richard Duivenvoorde ha scritto:
 On 21-06-13 17:48, Paolo Cavallini wrote:
 1. open the following file:
 http://www.igeo.pt/produtos/cadastro/caop/download/CAOP20121_Shapes/Cont_AAd_CAOP20121.zip

 2. set a win 1252 encoding (necessary, as it has high ASCII)
 3. save a project
 crash at the first or second save.
 Anyone confirms?
 
 nope, not at first sight. I can save it, set encoding to Windows 1252, create 
 a
 project with it and save the shapefile as a new shapefile.

Tried again with a fresh package:
* open the shp
* set up the encoding to windows-1252
* save to project
* click again on save (the project, not the shp):
Fatal: QGIS died on signal 11
Stacktrace (piped through c++filt):
/usr/bin/qgis.bin(myMessageOutput(QtMsgType, char const*)+0xb1)[0x4ff191]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char
const*)+0x30)[0x7f6ce5cc4450]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x718b8)[0x7f6ce5cc48b8]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*, 
...)+0x94)[0x7f6ce5cc4a44]
/lib/x86_64-linux-gnu/libc.so.6(+0x35310)[0x7f6ce2cf6310]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x1c)[0x7f6ce6f4f0cc]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::findItem(QgsDataItem*, 
QgsDataItem*)
const+0x70)[0x7f6ce6f4f120]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::parent(QModelIndex const)
const+0x35)[0x7f6ce6f4f315]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x758a1e)[0x7f6ce5707a1e]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QSortFilterProxyModel::mapFromSource(QModelIndex
const) const+0xd)[0x7f6ce5707b5d]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QSortFilterProxyModel::parent(QModelIndex
const) const+0x84)[0x7f6ce5700084]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QPersistentModelIndex::parent()
const+0x23)[0x7f6ce5dbe7e3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x72a7c3)[0x7f6ce56d97c3]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x72b439)[0x7f6ce56da439]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, 
QMetaObject
const*, int, void**)+0x2bf)[0x7f6ce5ddfdcf]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x7537e1)[0x7f6ce57027e1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, 
QMetaObject
const*, int, void**)+0x2bf)[0x7f6ce5ddfdcf]
/usr/lib/libqgis_core.so.1.9.0(QgsBrowserModel::updateProjectHome()+0x6f)[0x7f6ce6f4f4af]
/usr/lib/libqgis_core.so.1.9.0(+0x3e3ddd)[0x7f6ce7172ddd]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, 
QMetaObject
const*, int, void**)+0x2bf)[0x7f6ce5ddfdcf]
/usr/lib/libqgis_core.so.1.9.0(QgsProject::writeProject(QDomDocument)+0x25)[0x7f6ce7176365]
/usr/lib/libqgis_core.so.1.9.0(QgsProject::write()+0x496)[0x7f6ce70431a6]
/usr/bin/qgis.bin(QgisApp::fileSave()+0x7a)[0x52273a]
/usr/bin/qgis.bin[0x7c477a]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QMetaObject::activate(QObject*, 
QMetaObject
const*, int, void**)+0x2bf)[0x7f6ce5ddfdcf]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAction::triggered(bool)+0x32)[0x7f6ce5172bb2]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAction::activate(QAction::ActionEvent)+0x70)[0x7f6ce5173fe0]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x5851cf)[0x7f6ce55341cf]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QAbstractButton::mouseReleaseEvent(QMouseEvent*)+0x8c)[0x7f6ce553447c]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QToolButton::mouseReleaseEvent(QMouseEvent*)+0xa)[0x7f6ce55f0d6a]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QWidget::event(QEvent*)+0x929)[0x7f6ce51c6149]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::notify_helper(QObject*,
QEvent*)+0xac)[0x7f6ce51790ec]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplication::notify(QObject*,
QEvent*)+0x99b)[0x7f6ce517c2bb]
/usr/lib/libqgis_core.so.1.9.0(QgsApplication::notify(QObject*,
QEvent*)+0x73)[0x7f6ce6f481f3]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(QCoreApplication::notifyInternal(QObject*,
QEvent*)+0x8e)[0x7f6ce5dcb3ae]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointerQWidget,
bool)+0x14b)[0x7f6ce517f18b]

[Qgis-developer] Font size in server

2013-06-24 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all.
Apparently, font size in the server is now bigger than in the desktop:
http://hub.qgis.org/issues/8068
at least for me and another user; another one does not confirm this.
This used to be ok a short while ago.
Is there someone confirming or disproving this?
A general, or local problem?
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
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlHIWvkACgkQ/NedwLUzIr7EsQCgtXAI5OkaE55ozzjDv1msSliI
jWsAoLT+lWW9ea9YAD41sMY2F7ogXxsq
=CRGc
-END PGP SIGNATURE-
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Vincent Picavet
Hello James,

Could you open a ticket for that problem on QGIS bugtracker, and attach your 
files there ?
Thanks,
Vincent

Le lundi 24 juin 2013 16:44:37, Stott James a écrit :
 Hi all,
 
 Is anyone else having problems with using atlas with python?
 
 I am writing some python code that uses the Atlas functionality in master
 to create a PDF / jpg for each of my 5000 records.
 
 I can produce a jpg/pdf for each feature, however the composerMap object
 does not stay the same size.
 
 I found this bug report which describes the issue. This report is listed as
 fixed:
 
 http://hub.qgis.org/issues/6956
 
 I have set the following two lines in my code:
 
 myAtlas.setFixedScale( False )
 myAtlas.setMargin(0.1)
 
 If I set this up from within QGIS, it works perfectly. It is only through
 Python I have problems.
 
 Here are the example exported jpgs:
 
 Generated inside QGIS GUI
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharin
 g
 
 Generated from python
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharin
 g
 
 I have also included a stripped down version of my code, along with a
 sample shapefile (this isn't the data I am planning to use it with, but it
 doesn't work with either the sample or the real data).
 
 https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharin
 g
 
 Using master, updated today from OsGeo4W.
 
 Many thanks,
 
 James Stott
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Stott James
Hi all,

Is anyone else having problems with using atlas with python?

I am writing some python code that uses the Atlas functionality in master to 
create a PDF / jpg for each of my 5000 records.

I can produce a jpg/pdf for each feature, however the composerMap object does 
not stay the same size.

I found this bug report which describes the issue. This report is listed as 
fixed:

http://hub.qgis.org/issues/6956

I have set the following two lines in my code:

myAtlas.setFixedScale( False )
myAtlas.setMargin(0.1)

If I set this up from within QGIS, it works perfectly. It is only through 
Python I have problems.

Here are the example exported jpgs:

Generated inside QGIS GUI

https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharing

Generated from python

https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharing

I have also included a stripped down version of my code, along with a sample 
shapefile (this isn't the data I am planning to use it with, but it doesn't 
work with either the sample or the real data).

https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharing

Using master, updated today from OsGeo4W.

Many thanks,

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


[Qgis-developer] QGIS master packages for opensuse

2013-06-24 Thread Otto Dassau
Hi,

for testing and bug hunting I added QGIS master packages to the
Application:Geo repository for opensuse. You can install them as qgis2
package. They are not build automatically, but I will try to update
regularly.

http://hub.qgis.org/wiki/quantum-gis/Download#24-openSUSE

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


Re: [Qgis-developer] Problems with Atlas and Map dimensions on composer using Python

2013-06-24 Thread Alexander Bruy
Hi,

I have similar issue: composer map changes its dimensions when
scale and extents changed. I posted question in this list some time
ago [0].

Seems it is impossible to keep composer map size and position
locked. IMO this is big issue that makes composer templates
useless in some cases.

[0] http://www.mail-archive.com/qgis-developer@lists.osgeo.org/msg15587.html

2013/6/24 Stott James fmro...@fylkesmannen.no:
 Hi all,

 Is anyone else having problems with using atlas with python?

 I am writing some python code that uses the Atlas functionality in master to
 create a PDF / jpg for each of my 5000 records.

 I can produce a jpg/pdf for each feature, however the composerMap object
 does not stay the same size.

 I found this bug report which describes the issue. This report is listed as
 fixed:

 http://hub.qgis.org/issues/6956

 I have set the following two lines in my code:

 myAtlas.setFixedScale( False )
 myAtlas.setMargin(0.1)

 If I set this up from within QGIS, it works perfectly. It is only through
 Python I have problems.



 Here are the example exported jpgs:



 Generated inside QGIS GUI



 https://docs.google.com/file/d/0B6r5nAOdEBZrbFk0UUdxOVdTRVk/edit?usp=sharing



 Generated from python



 https://docs.google.com/file/d/0B6r5nAOdEBZrZVJmWlpBb1c4Q2M/edit?usp=sharing



 I have also included a stripped down version of my code, along with a sample
 shapefile (this isn’t the data I am planning to use it with, but it doesn’t
 work with either the sample or the real data).



 https://docs.google.com/file/d/0B6r5nAOdEBZrRUpzZm81cU1pUkk/edit?usp=sharing



 Using master, updated today from OsGeo4W.



 Many thanks,



 James Stott

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


Re: [Qgis-developer] QGIS master packages for opensuse

2013-06-24 Thread Kari Salovaara

Hi,

this is great, thanks.
I've only one problem - I cannot have Release version 1.8.0-9.5 with 
QGIS Master version, there will be error in qgis-plugin-grass.

Or what will happen if I ignore some of its depencies ?
It would be really nice to have running version when translating.

Regards,
Kari


On 24.06.2013 17:57, Otto Dassau wrote:

Hi,

for testing and bug hunting I added QGIS master packages to the
Application:Geo repository for opensuse. You can install them as qgis2
package. They are not build automatically, but I will try to update
regularly.

http://hub.qgis.org/wiki/quantum-gis/Download#24-openSUSE

Regards
Otto


--
Kari Salovaara
Hanko, Finland

Volunteers do not necessarily have the time; they just have the heart. 
~Elizabeth Andrew

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