Re: [QGIS-Developer] QgsProjectStyleSettings styles.db remain open after QgsProject::clear()

2023-06-12 Thread Radim Blazek via QGIS-Developer
QCoreApplication.sendPostedEvents(None, QEvent.DeferredDelete) does the job. Thanks Radim On Tue, Apr 18, 2023 at 10:38 AM Nyall Dawson wrote: > You can safely execute the event loop with DeferredDelete to only cleanup of > this object without the danger of other event loop mess. __

Re: [QGIS-Developer] QgsProjectStyleSettings styles.db remain open after QgsProject::clear()

2023-06-06 Thread Radim Blazek via QGIS-Developer
On Tue, Apr 18, 2023 at 10:38 AM Nyall Dawson wrote: > You can safely execute the event loop with DeferredDelete to only cleanup of > this object without the danger of other event loop mess. Can you point me how to do it? Radim On Tue, Apr 18, 2023 at 10:38 AM Nyall Dawson wrote: >> with Qgis

Re: [QGIS-Developer] QgsSnappingConfig.reset() segfault on server

2023-06-06 Thread Radim Blazek via QGIS-Developer
I found that it happens only if QgsProject.setInstance(project) was called before. Now I see the warning in QgsProject.setInstance(): "calling this method can have serious, unintended consequences, including instability, data loss and undefined behavior. Use with EXTREME caution!" Maybe there shou

[QGIS-Developer] QgsSnappingConfig.reset() segfault on server

2023-06-05 Thread Radim Blazek via QGIS-Developer
Hi. We are getting the following crash with 3.30.2 in the server environment when uwsgi worker is being closed. Is there a workaround? Should I fill an issue? !!! uWSGI process 2663646 got Segmentation Fault !!! *** backtrace of 2663646 *** /usr/bin/uwsgi-core(uwsgi_backtrace+0x43) [0x564723ab3123

[QGIS-Developer] QgsProjectStyleSettings styles.db remain open after QgsProject::clear()

2023-04-18 Thread Radim Blazek via QGIS-Developer
Hi, with Qgis 3.28.3 called from Python, whenever QgsProject::clear() is called it creates new styles.db file, previous styles file is deleted from system, but it remains open (listed by lsof). It becomes a problem in server environment where every call to QgsProject::clear() creates a new file and

Re: [QGIS-Developer] QgsO2 (OAuth2 ) crash in exitQgis() on uWSGI

2021-04-28 Thread Radim Blazek
Radim Blazek wrote: > I forgot to say that QgsApplication.exitQgis() / QgsProject.clear() > is invoked by python atexit.register. > > Now it crashes in QgsProject.clear() and again the last qgis function > > does not have name in backtrace, is it macro? > > /lib/x8

Re: [QGIS-Developer] QgsO2 (OAuth2 ) crash in exitQgis() on uWSGI

2021-04-26 Thread Radim Blazek
I forgot to say that QgsApplication.exitQgis() / QgsProject.clear() is invoked by python atexit.register. If it is called before atexit, it works. exitQgis() in atexit is used in TestCase, it should work? Radim On Mon, Apr 26, 2021 at 1:40 PM Radim Blazek wrote: > > On Mon, Apr 26, 202

Re: [QGIS-Developer] QgsO2 (OAuth2 ) crash in exitQgis() on uWSGI

2021-04-26 Thread Radim Blazek
On Mon, Apr 26, 2021 at 1:25 PM Alessandro Pasotti wrote: > no clues sorry, but if you don't need the oauth2 plugin you can just rm/mv > the liboauth2authmethod.so and you should be fine. Hi, thanks, I found QGIS_AUTHMETHOD_FILE envar which also does the job. Now it crashes in QgsProject.clear(

[QGIS-Developer] QgsO2 (OAuth2 ) crash in exitQgis() on uWSGI

2021-04-26 Thread Radim Blazek
Hi, we are getting crash in OAuth2 plugin when QgsApplication.exitQgis() is called from Django application running on uWSGI/nginx. We need to call exitQgis() to cleanup temporary files. It works OK if it is run as Django script from command line. Unfortunately it does not print full backtrace info

[QGIS-Developer] Vector data provider in Python problem

2020-08-27 Thread Radim Blazek
Hi, I found that our Django vector provider written in Python does not work anymore with QGIS 3.12.2 and Python 3.7. I found that the problem is in QgsAbstractFeatureSource implementation, this does not work anymore: def getFeatures(self, request): return QgsFeatureIterator(MyFeatureIterator(

Re: [QGIS-Developer] Should --noplugins disable provider plugins as well ?

2019-09-17 Thread Radim Blazek
On Tue, Sep 17, 2019 at 5:23 PM Sandro Santilli wrote: > commit 3b00dc12583ebcd6148a22fa36c61c0e2a18f7bb > Author: Radim Blazek > Date: Mon May 11 15:31:29 2015 +0200 > > QGIS_PROVIDER_FILE: provider regexp pattern environment variable > > Radim: do you remem

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-26 Thread Radim Blazek
On Thu, Oct 25, 2018 at 9:34 PM Tim Sutton wrote: > What you have built sounds really cool! Is my understanding correct that with > eventual read/write support the idea is that a user connecting via QGIS > PostGIS > connection would have equivalent permissions to a user created in Django auth, >

Re: [QGIS-Developer] QGIS Server plugins and thread safety

2018-10-25 Thread Radim Blazek
ess and stick to a single thread per-process. >> >> But David may have a better advice. >> >> Btw, it's nice to see a use case for Python Vector data providers :) >> >> >> >> >> On Thu, Oct 25, 2018 at 1:02 PM Radim Blazek wrote: >>&

Re: [QGIS-Developer] QGIS Server plugins and thread safety

2018-10-25 Thread Radim Blazek
If we narrow down the environment to uWSGI (with multiple threads enabled) running a Python application, which means that more instances of the same application may run in threads but never at the same time due to Python GIL (if I understand it well), is it still a problem? If we ensure that there

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-25 Thread Radim Blazek
QGIS Server <-> Django provider <-> Django (<-> PostGIS). Radim On Wed, Oct 10, 2018 at 8:19 AM Pēteris Brūns wrote: > > > ---- On Mon, 08 Oct 2018 22:27:42 +0300 Radim Blazek > wrote > > On Mon, Oct 8, 2018 at 8:47 PM Pēteris Brūns wrote: > > >

[QGIS-Developer] Mapserver mapfile -> QGIS project

2018-10-24 Thread Radim Blazek
Is there around a piece of code to convert Mapserver mapfile to QGIS project to start with migration to QGIS server? I only found: https://github.com/sourcepole/qgis-mapfile-tools/tree/master/mapfile_tools which only reads list of layers and then calls Mapserver mapscript to render the layer as pl

Re: [QGIS-Developer] QGIS WCS is requesting FULL dataset?

2018-10-15 Thread Radim Blazek
I don't remember more than i wrote in comments and i don't know if it is still necessary. Better to keep it i think, but it could be done optional. Radim On Oct 15, 2018 01:54, "Nyall Dawson" wrote: > On Fri, 12 Oct 2018 at 20:48, Richard Duivenvoorde > wrote: > > which is the whole of the Net

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-08 Thread Radim Blazek
other effort than > django-wfs, but I just saw there's an open PR with some a lot of changed > including python 3 support, so maybe django-wfs is not as dead as it looks ? > Still WFS-T would have to be added, and again not sure how hard this would > be... > > Let us know h

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-08 Thread Radim Blazek
en seek for the bottlenecks: > > http://test.qgis.org/perf_test/graffiti/ > > Cheers > Régis > > Le lun. 8 oct. 2018 à 15:27, Radim Blazek a écrit : >> >> Hi, thanks for information. >> >> I tried QGIS <-> WFS-T <-> QGIS Server <-> Po

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-08 Thread Radim Blazek
n PR with some a lot of changed > including python 3 support, so maybe django-wfs is not as dead as it looks ? > Still WFS-T would have to be added, and again not sure how hard this would > be... > > Let us know how it goes ! > > Cheers, > > Olivier > > [1] htt

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-08 Thread Radim Blazek
ed, and again not sure how hard this would > be... > > Let us know how it goes ! > > Cheers, > > Olivier > > [1] https://github.com/qgis/QGIS/pull/7012 > > > > On Sat, Oct 6, 2018 at 4:24 AM Radim Blazek wrote: >> >> Hi, >> we need the same

Re: [QGIS-Developer] [Qgis-developer] QGIS <-> Django

2018-10-05 Thread Radim Blazek
Hi, we need the same, to be precise, we need two things, to allow editing of data stored in Django/PostGIS in QGIS over the network and let QGIS Server (WMS) to read data from Django, both using Django filters etc. If we manage to get data to QGIS from Django (and back), we can use QGIS Server and

Re: [QGIS-Developer] Where is www.qgis.org/wiki?

2018-02-27 Thread Radim Blazek
tion. >> >> https://docs.qgis.org/testing/en/docs/developers_guide/ >> >> Cheers, >> >> Alex Neto >> >> Richard Duivenvoorde escreveu no dia segunda, >> 26/02/2018 às 21:07: >>> >>> On 26-02-18 21:08, Radim Blazek wrote: >&g

[QGIS-Developer] Where is www.qgis.org/wiki?

2018-02-26 Thread Radim Blazek
Hi, I am looking for former http://www.qgis.org/wiki documents, in particular http://www.qgis.org/wiki/Adding_New_Tools_to_the_GRASS_Toolbox I tried also other links which I found, no success: http://wiki.qgis.org/qgiswiki/Adding_New_Tools_to_the_GRASS_Toolbox http://hub.qgis.org/projects/quantum-

Re: [QGIS-Developer] closestSegmentWithContext() with epsilon in Python

2017-11-28 Thread Radim Blazek
You are right, it was simple, https://github.com/qgis/QGIS/pull/5755 I have added also leftOf as Out as it can be also useful. Radim On Fri, Nov 24, 2017 at 3:38 PM, Radim Blazek wrote: > It looks like this: > > #ifndef SIP_RUN > double closestSegmentWithContext( const QgsPo

[QGIS-Developer] Why QgsPointXY is returned by asPoint()

2017-11-28 Thread Radim Blazek
Is there any reason why methods QgsPointXY asPoint() const; QgsPolylineXY asPolyline() const; QgsPolygonXY asPolygon() const; QgsMultiPointXY asMultiPoint() const; QgsMultiPolylineXY asMultiPolyline() const; QgsMultiPolygonXY asMultiPolygon() const; returning Qgs...XY do not have XY at the end of

[QGIS-Developer] Crash when Python console is opened

2017-11-27 Thread Radim Blazek
Fresh master on fresh Debian 9 crashes when I try to open Python console. Somewhere in libqt5scintilla2.so.12. Traceback https://gist.github.com/blazek/3ea58591a6725c8a68cdf4f17cbd9015 Any idea? I am using system packages only. Radim ___ QGIS-Developer

Re: [QGIS-Developer] closestSegmentWithContext() with epsilon in Python

2017-11-24 Thread Radim Blazek
; I don't know why the epsilon is excluded from the python bindings, the > docs say nothing. > Adjusting it should be trivial, just edit qgsgeometry.h (the > prepare-commit script will do the heavy lifting) > > Matthias > > On 11/24/2017 12:58 PM, Radim Blazek wrote: >>

[QGIS-Developer] closestSegmentWithContext() with epsilon in Python

2017-11-24 Thread Radim Blazek
Hi, I found that closestSegmentWithContext() in Python is useless for geometries in geographic crs, because small squared distances are set to zero because of epsilon threshold. See for example: https://user-images.githubusercontent.com/29453443/32953189-c395d8a0-cbaf-11e7-8d71-b5869392f08b.PNG po

Re: [QGIS-Developer] Missing dependencies for qgis dev in OSGeo4W

2017-06-24 Thread Radim Blazek
On Fri, Jun 23, 2017 at 8:59 PM, Jürgen E. Fischer wrote: > On Fri, 23. Jun 2017 at 14:15:00 +0200, Radim Blazek wrote: >> Missing dependencies for qgis 2.99.0-107 in osgeo4w on win7/32bit: >> xerces-c_3_1.dll >> libpng16.dll > > Fixed. Actually the gdal dependenc

[QGIS-Developer] Missing dependencies for qgis dev in OSGeo4W

2017-06-23 Thread Radim Blazek
Missing dependencies for qgis 2.99.0-107 in osgeo4w on win7/32bit: xerces-c_3_1.dll libpng16.dll The libs must be selected in package list manually. Radim ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org

Re: [QGIS-Developer] OSGeo4W setup hangs downloading setup.ini.bz2

2017-06-23 Thread Radim Blazek
It works if "Use IE5 Settings" is checked instead of "Direct Connection". But there are no particular IE5 settings AFAICT. Radim On Fri, Jun 23, 2017 at 11:44 AM, Radim Blazek wrote: > The latest osgeo4w-setup-x86.exe on win7/32bit hangs downloading > setup.ini.bz2, us

[QGIS-Developer] OSGeo4W setup hangs downloading setup.ini.bz2

2017-06-23 Thread Radim Blazek
The latest osgeo4w-setup-x86.exe on win7/32bit hangs downloading setup.ini.bz2, usually on 98% (32k/33k) but also less, randomly. There is no problem to download the file http://download.osgeo.org/osgeo4w/x86/setup.ini.bz2 in a browser. Similar problem was reported here: http://osgeo-org.1560.x6.n

Re: [QGIS-Developer] QgsHighlight disappears

2017-06-22 Thread Radim Blazek
On Mon, Jun 19, 2017 at 3:04 PM, Denis Rouzaud wrote: > I did some changes so that QgsMapCanvasItems get updated on map pan. > But looking into QgsHightLight::updatePosition() shows nothing is done in > there. Fixed calling QgsMapCanvasItem::updatePosition() from QgsHightLight::updatePosition().

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-06-21 Thread Radim Blazek
On Fri, Jun 2, 2017 at 1:50 AM, Nyall Dawson wrote: > I think copy should definitely be the ONLY behavior here. Otherwise > there's data loss - user's styling and layer settings will be lost, > and dragging memory layers will lose all features (admittedly dragging > memory layers doesn't copy any

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-06-19 Thread Radim Blazek
On Fri, Jun 2, 2017 at 11:02 AM, Radim Blazek wrote: > On Fri, Jun 2, 2017 at 10:48 AM, Nyall Dawson wrote: >> QgsBrowserItem::handleDrop just gets a layer URI in the mime data - >> that's enough for the other providers to be able to open a new copy of >> the layer to g

Re: [QGIS-Developer] QgsHighlight disappears

2017-06-19 Thread Radim Blazek
work? I tried with 2.14 and it is not working either. It was working with fc24767 (Dec 9 2013), I checked on my lrs video https://youtu.be/3BmUIAQRc0g?t=52s where highlight is created when the item is selected and then it zooms to hightlight. Radim > > Le lun. 19 juin 2017 à 14:44,

[QGIS-Developer] QgsHighlight disappears

2017-06-19 Thread Radim Blazek
Hi, I found that QgsHighlight disappeares if it is created when it is outside of canvas extent and then the extent is panned so that it should become visible. It is visible while panning. QGIS master, QgsHighlight created from QgsGeometry with QgsHighlight(QgsMapCanvas *mapCanvas, const QgsGeometr

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-06-02 Thread Radim Blazek
On Fri, Jun 2, 2017 at 10:48 AM, Nyall Dawson wrote: > On 2 June 2017 at 18:32, Radim Blazek wrote: >> On Fri, Jun 2, 2017 at 1:50 AM, Nyall Dawson wrote: >>> I think copy should definitely be the ONLY behavior here. Otherwise >>> there's data loss - user'

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-06-02 Thread Radim Blazek
On Fri, Jun 2, 2017 at 1:50 AM, Nyall Dawson wrote: > I think copy should definitely be the ONLY behavior here. Otherwise > there's data loss - user's styling and layer settings will be lost, > and dragging memory layers will lose all features (admittedly dragging > memory layers doesn't copy any

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-06-01 Thread Radim Blazek
On Tue, May 30, 2017 at 11:39 PM, Nyall Dawson wrote: >> DD works within the browser now but not for layer with measures. > I guess this has never been implemented. Looking at ... I added Z, M and ZM types to postgres provider output and allowed AddFeatures for layers with measures (user should b

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-05-30 Thread Radim Blazek
On Tue, May 30, 2017 at 10:01 AM, Sandro Santilli wrote: >> Calling QgsPostgresConn::connectDb with shared=false should be OK, right? > > I guess, given the assertion was only added in the shared=true case.. It is called from many places where it is difficult to pass shared param. I have forced n

Re: [QGIS-Developer] [Qgis-developer] Min Qt version

2017-05-30 Thread Radim Blazek
On Tue, May 30, 2017 at 11:39 AM, Martin Dobias wrote: >> Just for curiosity, question for C++ experts, how this can compile/work: >> QStringList lineParts = part.split( linePartRx, QString::SkipEmptyParts >> ); >> label = lineParts.mid( 5 ).join( ' ' ); >> if mid() returns QList which ha

Re: [QGIS-Developer] Export layer with measures

2017-05-30 Thread Radim Blazek
On Mon, May 29, 2017 at 11:39 PM, Nyall Dawson >>> QgsVectorFileWriter::ogrTypeFromWkbType( QgsWkbTypes::Type type ) >>> { >>> type = QgsWkbTypes::dropM( type ); >> >> It works without that line, can I remove it or there is any reason? > > I suspect that's probably a remnant from GDAL < 2.1. I ca

Re: [QGIS-Developer] [Qgis-developer] Min Qt version

2017-05-30 Thread Radim Blazek
On Thu, May 25, 2017 at 10:53 AM, Nyall Dawson wrote: >> What min version of Qt are you able to compile with? We should update >> INSTALL. >> >> In INSTALL requirements it is also written: Qwt >= 5.0 & (< 6.1 with >> internal QwtPolar) >> but Qwt 6.0 does not compile with Qt >= 5.4: >> http://www

Re: [QGIS-Developer] Drag and drop to PostGIS crash

2017-05-30 Thread Radim Blazek
On Tue, May 30, 2017 at 9:40 AM, Sandro Santilli wrote: > On Tue, May 30, 2017 at 04:39:01PM +1000, Nyall Dawson wrote: >> On 30 May 2017 at 16:30, Radim Blazek wrote: >> > Hi, >> > >> > QGIS3 crashes when a vector is dragged and drop to PostGIS in br

[QGIS-Developer] Drag and drop to PostGIS crash

2017-05-29 Thread Radim Blazek
Hi, QGIS3 crashes when a vector is dragged and drop to PostGIS in browser in qgspostgresconn.cpp on // sharing connection between threads is not safe // See https://issues.qgis.org/issues/13141 Q_ASSERT( QApplication::instance()->thread() == QThread::currentThread() ); the issue ment

Re: [QGIS-Developer] Export layer with measures

2017-05-29 Thread Radim Blazek
> QgsVectorFileWriter::ogrTypeFromWkbType( QgsWkbTypes::Type type ) > { > type = QgsWkbTypes::dropM( type ); It works without that line, can I remove it or there is any reason? Radim ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List

Re: [QGIS-Developer] Export layer with measures

2017-05-29 Thread Radim Blazek
On Mon, May 29, 2017 at 2:53 PM, Mark Johnson wrote: >>> What GDAL version? You need GDAL >= 2.1 for M values > Also the QGIS running must be compiled with GDAL >= 2.1 for this to work. Yes, it is, but: QgsVectorFileWriter::ogrTypeFromWkbType( QgsWkbTypes::Type type ) { type = QgsWkbTypes::dro

Re: [QGIS-Developer] Export layer with measures

2017-05-29 Thread Radim Blazek
file or PostGIS? Any chance to be implemented soon for PostGIS? Radim > Cheers > Régis > > 2017-05-29 13:35 GMT+02:00 Radim Blazek : >> >> Hi, >> >> I need to export a vector layer with measures (LineStringM) to >> Shapefile and PostGIS in QGIS3, neith

Re: [QGIS-Developer] Export layer with measures

2017-05-29 Thread Radim Blazek
On Mon, May 29, 2017 at 1:56 PM, Nyall Dawson wrote: > On 29 May 2017 at 21:35, Radim Blazek wrote: >> Hi, >> >> I need to export a vector layer with measures (LineStringM) to >> Shapefile and PostGIS in QGIS3, neither works. >> >> Shapefile: there is only

[QGIS-Developer] Export layer with measures

2017-05-29 Thread Radim Blazek
Hi, I need to export a vector layer with measures (LineStringM) to Shapefile and PostGIS in QGIS3, neither works. Shapefile: there is only 'include z dimension' but no 'include m dimension' and no PolylineM in SHPT options in save as dialog. The layer is exported without M. Postgis: the layer is

[QGIS-Developer] hasCrsTransformEnabled removed?

2017-05-25 Thread Radim Blazek
Hi, I found in http://qgis.org/api/api_break.html: setCrsTransformEnabled(), hasCrsTransformEnabled(), hasCrsTransformEnabledChanged() were removed. CRS transformation is now always enabled. But in Project Properties CRS there is now "No projection" checkbox instead of "Enable on the fly reprojec

Re: [QGIS-Developer] [Qgis-developer] Min Qt version

2017-05-25 Thread Radim Blazek
On Mon, Feb 20, 2017 at 11:42 AM, Denis Rouzaud wrote: >> On Tue, Feb 7, 2017 at 10:43 AM, Jürgen E. Fischer wrote: >>> On Tue, 07. Feb 2017 at 09:11:25 +1000, Nyall Dawson wrote: > INSTALL says in requirements Qt >= 5.3.0, Debian stable has 5.3.2. That's a mistake. AFAIK we are targetin

Re: [QGIS-Developer] [Qgis-developer] Status of QGIS3

2017-05-24 Thread Radim Blazek
Hi. On Thu, Jan 26, 2017 at 9:04 PM, Andreas Neumann wrote: > What is already done: > Python plugin update helper 2 to 3 Does it mean a doc? Can you point me to the website? I am looking for a python plugin upgrade guide. Radim ___ QGIS-Developer mai

Re: [Qgis-developer] Min Qt version

2017-02-07 Thread Radim Blazek
On Tue, Feb 7, 2017 at 10:43 AM, Jürgen E. Fischer wrote: > Hi Nyall, > > On Tue, 07. Feb 2017 at 09:11:25 +1000, Nyall Dawson wrote: >> > INSTALL says in requirements Qt >= 5.3.0, Debian stable has 5.3.2. > >> That's a mistake. AFAIK we are targeting 5.3 to cater for Debian. > > Debian jessie (st

[Qgis-developer] Min Qt version

2017-02-03 Thread Radim Blazek
Hi, I am trying to compile master and it fails with 'no member named AppDataLocation in QStandardPaths', which was added in Qt 5.4. INSTALL says in requirements Qt >= 5.3.0, Debian stable has 5.3.2. So what is now minimum required Qt version? Radim __

Re: [Qgis-developer] PyQgsAppStartup failing with Timeout on OSX

2016-07-20 Thread Radim Blazek
On Tue, Jul 19, 2016 at 10:07 PM, Radim Blazek wrote: > On Tue, Jul 19, 2016 at 7:11 PM, Radim Blazek wrote: >> This is failing https://travis-ci.org/qgis/QGIS/jobs/145868490 with >> Timeout 60.05 sec. >> >> Any idea why? I have merged pull request with just GRASS

Re: [Qgis-developer] PyQgsAppStartup failing with Timeout on OSX

2016-07-19 Thread Radim Blazek
On Tue, Jul 19, 2016 at 7:11 PM, Radim Blazek wrote: > This is failing https://travis-ci.org/qgis/QGIS/jobs/145868490 with > Timeout 60.05 sec. > > Any idea why? I have merged pull request with just GRASS config files > (xml) and 2 python scripts which are not called from tests.

[Qgis-developer] PyQgsAppStartup failing with Timeout on OSX

2016-07-19 Thread Radim Blazek
This is failing https://travis-ci.org/qgis/QGIS/jobs/145868490 with Timeout 60.05 sec. Any idea why? I have merged pull request with just GRASS config files (xml) and 2 python scripts which are not called from tests. Radim ___ Qgis-developer mailing li

[Qgis-developer] Too many tests failing

2016-07-15 Thread Radim Blazek
Hi, I have compiled current master and run ctest after some time and 46 tests are failing here: 10 simply failed, 28 double free or corruption, 4 corrupted double-linked list. Obviously, the problem is local, so what is the trick to get less tests failing? Qt 4.8.6, clang 3.5.0, Debian Jessie 64 b

Re: [Qgis-developer] GRASS Plugin Delete vector issue in windows

2016-05-23 Thread Radim Blazek
On Sat, May 21, 2016 at 9:21 AM, roy roy wrote: > Ok i'm testing OSGeo4W in 32 bit virtual machine, GRASS Plugin is not > showing up on QGIS 2.0.15 nightly; anyway this is more an OSGEO installer > issue > than a QGIS issue i think. Unfortunately I cannot help much with OSGeo4W build. Radim ___

Re: [Qgis-developer] GRASS Plugin Delete vector issue in windows

2016-05-19 Thread Radim Blazek
gt; I think a bit of well delivered information should make things better, > something > > like the LTS release policy, now we normal users know that we can rely > on it to do > > normal work, and we can use regular release to get the newest > functionalities. > > Thanks

Re: [Qgis-developer] GRASS Plugin Delete vector issue in windows

2016-05-18 Thread Radim Blazek
On Thu, Apr 21, 2016 at 8:45 AM, roy roy wrote: > > Ok thanks Nyall, > > so what do you suggest to do about this, > i think it's really quite a issue although it > happens only on windows ... I fixed that today in bbaef371. The code which should close the map was commented, which resulted in keep

Re: [Qgis-developer] GRASS plugin and environmental variables

2016-05-18 Thread Radim Blazek
On Thu, Apr 14, 2016 at 12:07 PM, Martin Landa wrote: > Hi, > > it's seems that GRASS plugin ignores GRASS-defined variables defined > in .grass7/bashrc. Even when I export them explicitly in the terminal > and launch QGIS they are ignored. Yes, it does, please fill a new issue if you want. Radi

[Qgis-developer] Derived attributes in Python action

2016-05-06 Thread Radim Blazek
Is it possible to access derived attributes in vector feature action in Python? Radim ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mai

Re: [Qgis-developer] GRASS Plugin missing g.copy?

2016-04-11 Thread Radim Blazek
On Sun, Apr 10, 2016 at 8:58 PM, Blumentrath, Stefan wrote: > Hi, > > I just tested the Browser in QGIS. It has indeed no "Copy" in the context > menu, just "Rename", "Delete" or New vector layer. > However, Drag and Drop works fine. So if you want to copy a GRASS map, just > drag it from the s

Re: [Qgis-developer] GRASS issues

2016-04-11 Thread Radim Blazek
On Fri, Apr 8, 2016 at 9:44 AM, Paolo Cavallini wrote: > Il 08/04/2016 09:33, Jürgen E. Fischer ha scritto: > >> In OSGeo4W there is a QGIS package that comes with a shortcut and doesn't >> require GRASS. And there a packages for the GRASS plugin for GRASS6 and 7 >> that >> both come with a shor

Re: [Qgis-developer] Compiling QGIS with GRASS Plugin

2016-02-29 Thread Radim Blazek
On Sat, Feb 27, 2016 at 9:09 AM, m roy wrote: > I recompiled QGIS using ccmake but the problem remains, > QGIS starts but fails to recognize GRASS Plugin which is > not available in the installed plugins list ... If the lib, provider and plugin are really compiled (lib/libqgisgrass7.so, lib/qgis/

Re: [Qgis-developer] Some issues from GRASS plugin

2016-02-22 Thread Radim Blazek
On Mon, Feb 22, 2016 at 5:14 PM, Paolo Cavallini wrote: > Hi Radim, > > Il 22/02/2016 17:01, Radim Blazek ha scritto: > >> According to >> https://www.qgis.org/en/site/getinvolved/development/qgisdevelopersguide/hig.html >> "No dialog should exceed 580 pixels

Re: [Qgis-developer] Some issues from GRASS plugin

2016-02-22 Thread Radim Blazek
On Mon, Feb 22, 2016 at 12:56 PM, Paolo Cavallini wrote: > Il 22/02/2016 12:08, Radim Blazek ha scritto: > >> If there are no modules open, I can resize that to about 467x362. Is >> it a particular module or shell which makes it big? > > Hi Radim, > 467 on a 1024 scr

Re: [Qgis-developer] Some issues from GRASS plugin

2016-02-22 Thread Radim Blazek
On Mon, Feb 22, 2016 at 11:58 AM, Paolo Cavallini wrote: >>> * the panel is far too wide for old 1024px screens, and cannot be shrunk >> >> The "New mapset" dialog? Here it is resizable and the first time it is >> started with 528x523, the geometry is saved/restored then. Can you >> resize it? Whi

Re: [Qgis-developer] Some issues from GRASS plugin

2016-02-22 Thread Radim Blazek
On Thu, Feb 18, 2016 at 1:30 PM, Paolo Cavallini wrote: > Hi all, > thanks to a course, we now have some more testing on the plugin (master > of a few days ago). Generally it's a huge improvement, and D&D import > and copy is pretty exciting. A few issues: > * if I create of a new location without

Re: [Qgis-developer] GRASS plugin broke only for me?

2016-02-16 Thread Radim Blazek
The GRASS provider/plugin only works if it is run with exactly the same version of GRASS libs it was built with (GRASS init function in GRASS lib is checking svn revision). If you run QGIS with a different GRASS version you should get soft message like "GRASS init error: Problem in GRASS initiali

Re: [Qgis-developer] New GRASS plugin: a test drive

2016-02-01 Thread Radim Blazek
provided with the toolbar menu" to "...provided with the menu" and add something like "Open GRASS Tools and Display Current GRASS Region actions are also available in the toolbar menu". Thanks Radim > Thanks again, > > Alexandre > > Radim Blazek escreveu n

Re: [Qgis-developer] New GRASS plugin: a test drive

2016-02-01 Thread Radim Blazek
to have > Open Mapset, Close Mapset, New Mapset and GRASS options as well. Yes it is intended. The tools which are not frequently used were removed from the toolbar to keep UI clean. Radim > Thanks > > Radim Blazek escreveu no dia terça, 15/12/2015 às > 11:29: >> >> On

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-12-15 Thread Radim Blazek
On Thu, Oct 8, 2015 at 10:47 PM, Blumentrath, Stefan wrote: > Finally, I was wondering if it could be an idea to place all mapset related > buttons (open / close / new / change mapset) at the bottom of the Modules > dialogue and to add a "manage mapset access" button, which runs the mapset > pi

Re: [Qgis-developer] grass module don't appear

2015-11-26 Thread Radim Blazek
On Wed, Nov 25, 2015 at 9:35 PM, Giovanni Manghi wrote: >> Then I searched for r.mapcalculator, which was present in the old processing >> toolbox. I didn't find it >> in the grass7 processing modules list. Although the grass7 stand alone has >> r.mapcalc (not r.mapcalculator), >> in the grass7

Re: [Qgis-developer] Tool to pick up linear referencing measure from mouse

2015-11-25 Thread Radim Blazek
On Tue, Nov 24, 2015 at 10:29 PM, Régis Haubourg wrote: > Radim, do you have plans to extend LRS in 2016? If you have sponsors looking > for co-funders, I would be interested in having it work with existing > M-geometries, and have tools to generate events by picking locations on the > map. Curre

Re: [Qgis-developer] Tool to pick up linear referencing measure from mouse

2015-11-24 Thread Radim Blazek
On Tue, Nov 24, 2015 at 7:50 PM, Nyall Dawson wrote: >> > I would like to create a form with two tools dedicated to "pick up" my >> > route >> > and the measure. i've done it in Arcview 3.2 once in the old past.. >> > What could be the current better and simpler approach in QGIS? >> >> I think tha

Re: [Qgis-developer] Tool to pick up linear referencing measure from mouse

2015-11-24 Thread Radim Blazek
On Mon, Nov 23, 2015 at 6:00 PM, Régis Haubourg wrote: > Hi, > I'm having a classical use case here. Before starting a new plugin, and > since it is a very common task in GIS, I would like to know if anyone has > made something alike: > > - I have a postgis db with LINESTRINGM routes (watercourses

Re: [Qgis-developer] problem with GRASS 7 when creation a new mapset

2015-11-18 Thread Radim Blazek
On Sun, Nov 15, 2015 at 5:51 PM, matteo wrote: > Hi Radim, > sorry, but I found some time only now for testing your suggestions.. > > Briefly: I didn't compiled GRASS, so it is in the folder /usr/bin/grass70 > > then I tried to add in the bash script the LD_LIBRARY_PATH for GRASS as > follows: > >

Re: [Qgis-developer] Peer review for visual changelog for 2.12

2015-10-29 Thread Radim Blazek
On Tue, Oct 27, 2015 at 8:51 AM, Tim Sutton wrote: > > Hi All > > Could I ask you all to peer review the content on: > > http://changelog.qgis.org/qgis/version/2.12.0/ The link is somehow dead. Radim > > > > Please don't broadcast that link yet to your social networks - once it is > peer revie

Re: [Qgis-developer] Visual changelog

2015-10-28 Thread Radim Blazek
Dne 27.10.2015 10:00 "Andreas Neumann" napsal(a): > > hm - indeed! The whole GRASS plugin improvement is missing. > > I created an entry: http://changelog.qgis.org/qgis/2.12.0/entry/update-of-grass-plugin/ > > Pedro or Radim: can you please correct/extend this entry? Do you have any good screensho

Re: [Qgis-developer] problem with GRASS 7 when creation a new mapset

2015-10-22 Thread Radim Blazek
On Thu, Oct 22, 2015 at 3:18 PM, matteo wrote: > Hi Radim, > thanks for the reply.. > >> You are running qgis from build (src in this case) dir? Try to install >> qgis and run it from installation target dir. You will have to add >> path to grass libs to LD_LIBRARY_PATH. > > yes.. I run QGIS from

Re: [Qgis-developer] problem with GRASS 7 when creation a new mapset

2015-10-22 Thread Radim Blazek
On Wed, Oct 21, 2015 at 5:04 PM, matteo wrote: > Hi all, > I hope that this problem is not already been discussed.. > I'm trying to test the GRASS 7 plugin but I get always the same error > during the creation of the new mapset: You are running qgis from build (src in this case) dir? Try to insta

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-22 Thread Radim Blazek
On Wed, Oct 21, 2015 at 10:04 PM, Pedro Venâncio wrote: > Hi again Radim, > > I was looking at typemask Option tag, and his definition says "for vector > input option defines allowed types. Only the layers of one of defined type > are displayed in input", but at this moment, all types are displaye

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-22 Thread Radim Blazek
On Wed, Oct 21, 2015 at 8:33 PM, Pedro Venâncio wrote: >> It >> is compiled with LFS, which adds -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 compiler flags. Try to add -D_LARGEFILE_SOURCE >> -D_FILE_OFFSET_BITS=64 to QGIS cmake CXX_EXTRA_FLAGS > > With this flags it also works without problems!

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-21 Thread Radim Blazek
On Wed, Oct 21, 2015 at 12:56 AM, Pedro Venâncio wrote: > I installed GRASS 7.0.2RC today, tested and this is still true: >> >> I made this change and with qint64 (typedef qint64 grass_off_t;) QGIS does >> not crash, >> >> With typedef qint32 grass_off_t it still crashes. > > Make this change befo

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-20 Thread Radim Blazek
On Tue, Oct 20, 2015 at 1:16 AM, Pedro Venâncio wrote: > But I think I found a pattern in the problem. Using qint64, it only happens > with 3d layers. With 2d layers, or converting layers 3d to 2d, it works ok. Very good analysis of the problem, thanks. 3D editing was broken, fixed in 295d64b. No

Re: [Qgis-developer] About digitizing with GRASS Plugin

2015-10-19 Thread Radim Blazek
On Mon, Oct 19, 2015 at 3:05 PM, m roy wrote: > Il 19/10/2015 12.41, Radim Blazek ha scritto: >> It is not possible to add in QGIS a layer without a type. So when a >> new empty layer is created, a type must be chosen. The type selected >> by user is only used for the layer a

Re: [Qgis-developer] About digitizing with GRASS Plugin

2015-10-19 Thread Radim Blazek
On Sat, Oct 17, 2015 at 10:05 AM, m roy wrote: > I ran some test with GRASS Plugin in particular > digitizing some vetor layers. Given that is > quite nice how well it's already integrated with QGIS > edit tools, I found some minor issue, this may be > by design but i'm saharig my thoughts *(IMHO)

Re: [Qgis-developer] GRASS Plugin Split features results in corrupted topology

2015-10-19 Thread Radim Blazek
On Sat, Oct 17, 2015 at 3:40 PM, m roy wrote: > Found this issue testing GRASS plugin in edit mode: > > Draw a closed boundary in a GRASS vector layer > > add a centroid inside the boundary > > now I need to add a node on the boundary > (cannot find how to do that is there a way to > add a node

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-19 Thread Radim Blazek
On Sun, Oct 18, 2015 at 6:48 PM, Pedro Venâncio wrote: >> It is most probably the problem with different off_t size in GRASS and >> QGIS. I have already implemented fix, but the problem is how to get >> real off_t size from GRASS. On Windows, it is now hard coded 8 bytes. >> build_off_t_size was a

Re: [Qgis-developer] GRASS7 build error

2015-10-18 Thread Radim Blazek
RASS6 on, it also compiles well. > > So, it seems that there is something with the GRASS7, which also requires > GRASS6. > > > Pedro > > > 2015-10-17 12:30 GMT+01:00 Paulo van Breugel : >> >> >> >> On 17-10-15 13:00, Radim Blazek wrote: >>&g

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-18 Thread Radim Blazek
On Sat, Oct 17, 2015 at 8:47 AM, m roy wrote: > > > Il 15/10/2015 13.25, Radim Blazek ha scritto: >> On Thu, Oct 15, 2015 at 10:49 AM, m roy wrote: >> >>> After some quick vector digitizing tests: awesome tool >>> for QGIS !! >>> >>> t

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-18 Thread Radim Blazek
On Fri, Oct 16, 2015 at 11:47 PM, Blumentrath, Stefan wrote: > Hi Radim, > > Another issue: > The temporal maps are not listed in the input widgets. I assume that a > "translation" for GRASS parser options > (https://grass.osgeo.org/programming7/parser__standard__options_8c.html) to > the QGIS

Re: [Qgis-developer] GRASS7 build error

2015-10-17 Thread Radim Blazek
If you have GRASS 7 installed and you want to compile GRASS 7 provider/plugin, use WITH_GRASS7=ON, otherwise OFF. If GRASS 7 is not found automatically, specify also GRASS_PREFIX7 and GRASS_INCLUDE_DIR7. Radim On Sat, Oct 17, 2015 at 9:58 AM, Salvatore Larosa wrote: > Hi Radim, > > On Wed, Oct

Re: [Qgis-developer] New GRASS plugin: a test drive

2015-10-17 Thread Radim Blazek
On Fri, Oct 16, 2015 at 8:49 PM, Pedro Venâncio wrote: > Hi Radim,I've just compile qgis and I'm getting this Segmentation fault, > when editing a GRASS layer (point, line or polygon) with Node Tool: It is most probably the problem with different off_t size in GRASS and QGIS. I have already imple

Re: [Qgis-developer] grass plugin: r.contour failing

2015-10-16 Thread Radim Blazek
On Fri, Oct 16, 2015 at 6:21 PM, Paolo Cavallini wrote: > Il 16/10/2015 16:52, Radim Blazek ha scritto: > >> So it seem to be a problem in r.contour, thus question to grass list. > > indeed. somehow the region is smaller than I expected, sorry for the noise. > all the

  1   2   3   4   5   6   7   >