[QGIS-Developer] MemoryLayerSaver plugin maintainter

2023-07-11 Thread Chris Crook via QGIS-Developer
Hi QGIS maintainers I have now passed over maintenance of the MemoryLayerSaver plugin to Yoann Quenach de Quivillic. Please could you update the Plugin settings in https://plugins.qgis.org/plugins/MemoryLayerSaver/ to make yquenach the maintainer. Many thanks Chris Crook (he/him<ht

[QGIS-Developer] Fw: [ccrook/QGIS-Contour-Plugin] RuntimeError : wrapped C/C++ object of type ContourGeneratorAlgorithm has been deleted (Issue #46)

2022-12-04 Thread Chris Crook via QGIS-Developer
Hi Developers The contour plugin I have been maintaining seems to occasionally lose the C++ object that its processing algorithm is using. In particular this happens when changing settings. Before I get lost trying to track this through the Python/SWIG bindings and comparing with other

[QGIS-Developer] Python rendered size of symbol

2019-10-21 Thread Chris Crook
I want to calculate the rendered size of a marker symbol for a given feature, when the symbol includes data defined properties. I'm having trouble navigating the API to determine the steps I need to achieve this! I think I need to determine the render context for the symbol including the , in

Re: [QGIS-Developer] QGIS Seg fault from python

2019-10-07 Thread Chris Crook
For the record it seems that the seg fault is coming from the line symbol=QgsLineSymbol([basePointLine]) It works perfectly using: symbol=QgsLineSymbol() symbol.changeSymbolLayer(0,basePointLine) From: Chris Crook Sent: Saturday, 5 October

[QGIS-Developer] QGIS Seg fault from python

2019-10-04 Thread Chris Crook
Hi All I am trying to configure a renderer with a marker line in python. Currently it is killing QGIS with seg fault. Running recent dev build or 3.8.4 on ubuntu 18.04. Below is the code I am running in python console which crashes QGIS. Any ideas as to what I am doing wrong? Thanks in

Re: [QGIS-Developer] Installing qgis custom widgets in designer from development build

2019-09-10 Thread Chris Crook
-Developer] Installing qgis custom widgets in designer from development build Hi Chris, First thing is to run CMake with -DWITH_CUSTOM_WIDGETS Then the resulting library needs to be copied into the folder where Qt loads its plugins from. Matthias On 9/9/19 9:43 AM, Chris Crook wrote: > Titl

[QGIS-Developer] Installing qgis custom widgets in designer from development build

2019-09-09 Thread Chris Crook
Title pretty much is the question - I'm building QGIS development build on ubuntu as per instructions in INSTALL. I think the thing I need to register with designer is libqgis-customwidgets.so. But that doesn't seem to be built as part of the CMake build (can't find the file anywhere), and

[QGIS-Developer] How do I define a marker offset with an expression.

2019-09-05 Thread Chris Crook
Hi All I am trying to offset a marker (ellipse or simple marker). I can easily do this by entering values into the Offset x and y fields (eg 20.0, 30.0 mm). However I haven't figured out how to enter this as an expression. I have entered an expression as "array(20.0,30.0)" but the symbol

[QGIS-Developer] Ellipse marker calculated offset

2019-01-02 Thread Chris Crook
Hi and Happy New Year I am trying to define a symbology using an ellipse marker with a calculated offset. The ellipse marker contains an offset field defined by x and y values. These can be set using an field calculator, which looks like it should evaluate to an array with x and y offsets.

[QGIS-Developer] Disable scratch layer warning on closing project

2018-09-08 Thread Chris Crook
Hi Is there a setting anywhere to disable the warning when closing a project with temporary layers (This layer contains one or more temporary scratch layers. These layers are not saved to disk ) Thanks Chris This message contains information, which may

[QGIS-Developer] API for adding files to .qgz file

2018-08-06 Thread Chris Crook
Hi. Can anyone give me pointers for adding data to the .qgz project file. I am thinking about updating the Memory Layer saver plugin to use this but I haven't spotted the API around it. I'm thinking I could either reconfigure it to embed the current .mldata file it creates within the .qgz,

[QGIS-Developer] Re-implementing delimited text provider help

2018-07-06 Thread Chris Crook
Hi all I am looking for guidance on documentation. The help for the delimited text provider has largely got lost between versions 2 and 3. In version 3 is defined in QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#importing-a-delimited-text-file" ) ); This links

Re: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem

2018-02-13 Thread Chris Crook
To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem On 11 February 2018 at 21:07, Chris Crook <ccr...@linz.govt.nz> wrote: > Hi Nyall > > The code is on github .. > > https://github.com/ccrook/QGIS-Vecto

Re: [QGIS-Developer] QGIS 3 itemById should return subclassed item

2018-02-12 Thread Chris Crook
Hi Nyall Thanks so much for the pointer (idea that is, not C++ pointer) .. I'll give it a go Cheers Chris From: QGIS-Developer [qgis-developer-boun...@lists.osgeo.org] on behalf of Nyall Dawson [nyall.daw...@gmail.com] Sent: 13 February 2018 10:36 To:

Re: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem

2018-02-11 Thread Chris Crook
From: Nyall Dawson [nyall.daw...@gmail.com] Sent: 08 February 2018 10:53 To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem On 8 February 2018 at 05:44, Chris Crook <ccr...@linz.govt.nz> wrote:

Re: [QGIS-Developer] QGIS3: Python QgsFeatureRenderer subclass problem

2018-02-07 Thread Chris Crook
. So issue could either be if startRender does not invoke super.startRender (to set thread id) or if called from two threads. From: QGIS-Developer [qgis-developer-boun...@lists.osgeo.org] on behalf of Chris Crook Sent: 08 February 2018 08:45 To: qgis

Re: [QGIS-Developer] tricontour crashing in QGIS3

2018-02-05 Thread Chris Crook
Hi Tom The previous mail did have the backtrace as far as the python interpreter ... while I could post the rest of it that will be more layers of python and the standard QGIS plugin invocation. My feeling is that won't add to understanding the issue .. but can post if it seems useful to you

[QGIS-Developer] tricontour crashing in QGIS3

2018-02-04 Thread Chris Crook
on environment. Can you suggest any reason why it might be different running from within QGIS and how I can work around/fix this! Thanks Chris Crook This message contains information, which may be in confidence and may be subject to legal privilege. If you

Re: [QGIS-Developer] QgsExpression python pattern

2018-01-31 Thread Chris Crook
Chris Crook wrote > I am updating some plugins which use QgsExpression, and I'm wondering > about the best way to use expressions in QGIS3. It in the past I used a > pattern like: > > exp=QgsExpression(expressionText) > exp.prepare(fields) > requ

[QGIS-Developer] QgsExpression python pattern

2018-01-31 Thread Chris Crook
I am updating some plugins which use QgsExpression, and I'm wondering about the best way to use expressions in QGIS3. It in the past I used a pattern like: exp=QgsExpression(expressionText) exp.prepare(fields) request=QgsFeatureRequest() request.setSubsetOfAttributes(

Re: [QGIS-Developer] QGIS3 Plugin debugging help

2018-01-30 Thread Chris Crook
(see nabble link for context) i've run this with a debugger. It does indeed identify the location of the crash as in the matplotlib triangulation function, and specifically within qh_initstatistics which is called to construct the convex hull of the points. Which I guess means there is an issue

[QGIS-Developer] QGIS3 Plugin debugging help

2018-01-30 Thread Chris Crook
Hi All I am looking for suggestions on how to debug a plugin that is crashing QGIS3 I am trying to port the contour plugin to QGIS3. The port is largely done but there is one outstanding issue that causes QGIS to die. The plugin uses the python matplotlib library to do the contouring. It has

Re: [QGIS-Developer] Lost redmine wiki contents ...

2017-06-14 Thread Chris Crook
. Fischer [j...@norbit.de] Sent: 14 June 2017 18:55 To: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] Lost redmine wiki contents ... Hi Chris, On Tue, 13. Jun 2017 at 20:46:18 +, Chris Crook wrote: > https://issues.qgis.org/wiki/quantum-gis/Python_plugin_API_changes_from_18_to

[QGIS-Developer] Lost redmine wiki contents ...

2017-06-13 Thread Chris Crook
Hi Does anyone know where the content of: https://issues.qgis.org/wiki/quantum-gis/Python_plugin_API_changes_from_18_to_20 have gone? Thanks This message contains information, which may be in confidence and may be subject to legal privilege. If you are not

Re: [QGIS-Developer] 2.18.9 - big thanks to Jürgen for the quick release!

2017-05-27 Thread Chris Crook
Absolutely want to second this comment. This level of commitment is what makes QGIS great, and an invaluable tools for me in my work Thankyou Jürgen Chris From: QGIS-Developer [qgis-developer-boun...@lists.osgeo.org] On Behalf Of Nyall Dawson

[QGIS-Developer] Release 2.18.8 on Ubuntu 16.04 dies loading delimited text file

2017-05-22 Thread Chris Crook
Hi Last night I installed version 2.18.8 onto ubuntu 16.04 (via automatic upgrade). This seems to have killed the delimited text provider. Symptoms are: Open delimited text dialog Select simple .csv file with lat and lon fields Click OK ... QGIS dies immediately Normal

Re: [Qgis-developer] Best Practice for QGIS Plugin Help Documentation

2016-11-19 Thread Chris Crook
Hi Calvin Method 2 is well supported by QGIS. Put the help in index.html in the plugin directory, then def showMyPluginHelp(self): from qgis import utils utils.showPluginHelp() The showPluginHelp function will look for index.html by default, but you can specify a filename to use

Re: [Qgis-developer] QgsFeatureRendererV2.startRender deprecated ...

2016-09-15 Thread Chris Crook
t; To: Chris Crook > Cc: qgis-developer@lists.osgeo.org > Subject: Re: [Qgis-developer] QgsFeatureRendererV2.startRender > deprecated ... > > Hi Chris > > On Mon, Sep 12, 2016 at 10:18 AM, Chris Crook <ccr...@linz.govt.nz> wrote: > > Hi All > > > &g

Re: [Qgis-developer] QgsFeatureRendererV2.startRender deprecated ...

2016-09-13 Thread Chris Crook
the coordinateTransform is still populated, so this is a good option for me. Thanks also for suggestion of extracting layer infomation when the renderer is created.. Chris From: Martin Dobias [wonder...@gmail.com] Sent: 13 September 2016 15:26 To: Chris Crook Cc

[Qgis-developer] QgsFeatureRendererV2.startRender deprecated ...

2016-09-11 Thread Chris Crook
there, but I don't see that as a guaranteed API for getting the source CRS. Any suggestions? Thanks Chris Crook This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended recipient, you must

[Qgis-developer] legendSymbologyItems - python binding

2016-09-06 Thread Chris Crook
Hi I want to display a custom icon on the legend for a python implementation of QgsFeatureRendererV2 (VectorFieldRenderer) The implementation that used to work many versions of QGIS ago worked by overriding the QgsFeatureRendererV2.legendSymbologyItems(size) function. This function does not

Re: [Qgis-developer] QGIS 3 - breaking user projects?

2016-08-07 Thread Chris Crook
As an alternative to building and maintaining a bunch of translation code, how feasible would it be to build something like a python project migration tool? I'm not very familiar with the project XML structure but I'm wondering if it could be done using a python xml library which could update

Re: [Qgis-developer] morph delimited-text-provider to generic table-provider?

2016-07-11 Thread Chris Crook
Another thought .. why not use a plugin (which could emulate geometry component of DLT provider) to add geometry virtual fields to an existing layer? Sounds really straightforward and would be available immediately and on older versions of QGIS. Cheers Chris

Re: [Qgis-developer] morph delimited-text-provider to generic table-provider?

2016-07-11 Thread Chris Crook
Hi All Intriguing idea. I would be reluctant to have the DL provider any more cumbersome as it serves very well for very quick visualisation of data exported by other programs/scripts. OTOH the dialog for creating delimited text layers is very clumsy - it has a lot to do in one screen and

Re: [Qgis-developer] [QA] CSV Test Flaky

2015-11-30 Thread Chris Crook
... if multithreading in used in the test at all. In summary I don't have any immediate thoughts as to why it could be ... thoughts anyone? Cheers Chris From: Matthias Kuhn [matth...@opengis.ch Sent: 01 December 2015 03:47 To: qgis-developer; Chris Crook Subject

Re: [Qgis-developer] QGIS 2.10.1 Pisa - Read CSV file problem

2015-08-04 Thread Chris Crook
Hi Zoltan I think this could be classed as an error! The source code rejects field names that look like positive numbers (some digits optionally followed by a period and some more digits). I can't recall a reason why it should do this. It could be reasonable to require field names to be

[Qgis-developer] Transfer plugin ownership - LandXml

2015-03-29 Thread Chris Crook
Hi Could you transfer the ownership of the LandXml plugin http://plugins.qgis.org/plugins/LandXml/ from jpalmer to ccrook please. Thanks Chris Crook From: Alex Mandel [tech_...@wildintellect.com] Sent: 30 March 2015 13:56 To: Chris Crook; 'qgis-developer

[Qgis-developer] Transfer plugin ownership

2015-03-29 Thread Chris Crook
Hi Could someone remind me who to contact about transferring ownership of a plugin on plugins.qgis.org please? Thanks Chris This message contains information, which may be in confidence and may be subject to legal privilege. If you are not the intended

Re: [Qgis-developer] SIP and transfer of ownership

2014-12-01 Thread Chris Crook
in the Qt framework, though I think this sort of pattern is well used within it, eg strings?). Thanks Chris -Original Message- From: Martin Dobias [mailto:wonder...@gmail.com] Sent: Saturday, 8 November 2014 8:08 p.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re

Re: [Qgis-developer] set attributes of a new feature

2014-11-15 Thread Chris Crook
HI Siki You need to keep the fields() array as a python entity for the duration of the existence of the feature... that is feat=QgsFeature() fields=lay.dataProvider().fields() feat.setFields(fields,true) feat['point_id']=xxx Think this should work... Cheers Chris

[Qgis-developer] SIP and transfer of ownership

2014-10-11 Thread Chris Crook
Hi I'm just looking at the QgsGraduatedSymbolRendererV2 SIP and wanting to check my understanding of the use of /Transfer/ I think this is used to transfer ownership of an object. So for example the renderer includes the member function void setSourceColorRamp( QgsVectorColorRampV2* ramp

Re: [Qgis-developer] Trouble with PostGis plugin

2014-10-10 Thread Chris Crook
Hi Walter When you connect to the PostGis database make sure that you have selected the Use estimated metadata option - this optimises the connection for large datasets - see attached screenshot. This should greatly improve the connection times for postigs. (If you are already doing this

Re: [Qgis-developer] Symbology api

2014-10-03 Thread Chris Crook
Interesting idea. At the moment the graduated renderer colour is also a discrete function of attributes. Changing to a continuous function (or having a continuous function alternative) would mean changing the legend interface somewhat. I've been thinking about how to better implement the

[Qgis-developer] Github @username messages

2014-09-29 Thread Chris Crook
Hi All I'm finding that I often seem to miss messages from github which have been labelled @ccrook. I'm wondering if this is just my issue, or whether others find this too? Thanks Chris This message contains information, which may be in confidence and may be subject to legal privilege. If

Re: [Qgis-developer] Memory Layers - some proposals

2014-09-26 Thread Chris Crook
Hi I think this depends a bit upon your perception of the world. As a developer you are aware that this is a memory layer, and so volatile by nature. On the other hand as a user this is not necessarily a memory layer, it is just part of your project, and may have come from some plugin or

Re: [Qgis-developer] EasyCustomLabeling ported to QGIS 2.0

2014-02-01 Thread Chris Crook
I've updated the MemoryLayerSaver plugin to fix this. Basically the problem comes from (I believe) the SIP wrapping around QgsFeature attributes. So for a feature feat with a field 'f', feat.f=None value=feat.f print type(value) prints PyQtNullVariant. The same result (expected in this

Re: [Qgis-developer] import CSV to an existing layer

2013-09-27 Thread Chris Crook
Hi Denis I'm not sure if you are suggesting adding this to the existing delimited text layer function (bad idea!), or adding a new function using components of the existing delimited text layer. I say bad idea for a couple of reasons. FIrstly the UI is already cluttered enough, and adding

[Qgis-developer] Python renderer problem with 2.0.1 in OSGEO

2013-09-21 Thread Chris Crook
Hi All I'm having problems with getting a python plugin (Vector Field Renderer) running on 2.0.1 in the standalone windows version (installed onto windows 7). The plugin implements a custom vector layer renderer to draw arrows based on object attributes. It is used by selecting the renderer

[Qgis-developer] Changing plugin maintainer in repository

2013-09-17 Thread Chris Crook
Hi Just wondering what the procedure is to change the maintainer of a plugin in the QGIS plugin repository? Any suggestions... Thanks Chris This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not

[Qgis-developer] Python unit tests and SIP API version

2013-06-18 Thread Chris Crook
Hi Currently when I run make the unit tests (unbuntu) the delimited text python tests are running under SIP API version 1, or possibly some sort of strange mixture, and seem to be failing. So if I do from PyQt4.QtCore import QVariant import sip print sip.getapi('QVariant') I get '1'. I see

Re: [Qgis-developer] Python unit tests and SIP API version

2013-06-18 Thread Chris Crook
from PyQt4.QtCore. And also to not try and import QString. Seems to be working.. Chris -Original Message- From: Chris Crook Sent: Wednesday, 19 June 2013 6:15 a.m. To: qgis-developer@lists.osgeo.org Subject: [Qgis-developer] Python unit tests and SIP API version Hi Currently when

[Qgis-developer] Converting plugins to new API

2013-06-09 Thread Chris Crook
I guess it is about time to start porting plugins to the new API? Is there a summary of the significant API changes or conversion guidelines available anywhere? I've seen Nathan's summary of the SIP changes at https://gist.github.com/NathanW2/5734767, but I'm wondering if there is a more

Re: [Qgis-developer] Converting plugins to new API

2013-06-09 Thread Chris Crook
...@gmail.com] Sent: Monday, 10 June 2013 12:03 p.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Converting plugins to new API Hey Chris, There isn't anything more then what I have made. Feel free to make a wiki page with what I made so far and add

Re: [Qgis-developer] Delimited text issues and ideas

2013-05-26 Thread Chris Crook
From: Alexander Bruy [alexander.b...@gmail.com] Sent: 27 May 2013 04:22 To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Delimited text issues and ideas Hi Chris, 2013/5/26 Chris Crook ccr...@linz.govt.nz: Good thought

Re: [Qgis-developer] Delimited text enchancements

2013-05-25 Thread Chris Crook
, particularly since we wouldn't just be using data files with .csv extensions. Cheers Chris ___ From: HAUBOURG [regis.haubo...@eau-adour-garonne.fr] Sent: 25 May 2013 22:20 To: Chris Crook Subject: RE : Delimited text enchancements Hi Chris, you are right, reading csvt

Re: [Qgis-developer] Delimited text issues and ideas

2013-05-25 Thread Chris Crook
thoughts on this? Cheers Chris ___ _ From: Alexander Bruy [alexander.b...@gmail.com] Sent: 23 May 2013 18:35 To: Tim Sutton Cc: qgis-developer@lists.osgeo.org; HAUBOURG; Chris Crook Subject: Re: [Qgis-developer] Delimited text issues and ideas Hi, also another

Re: [Qgis-developer] Delimited text enchancements

2013-05-25 Thread Chris Crook
From: Bob and Deb [bobd...@gmail.com] Sent: 26 May 2013 10:13 To: Chris Crook Cc: QGIS Developer Mailing List; Régis Haubourg Subject: Re: [Qgis-developer] Delimited text enchancements How about using Field in the VRT instead of using a CSVT? On May 25, 2013 12:16

[Qgis-developer] FW: Invitation to become a QGIS core committer

2013-05-22 Thread Chris Crook
by the Social Contract. I will not directly commit to areas other than the delimited text provider without discussion and agreement from the developer community and Marco Hugentobler. My github user name is ccrook. Thanks Chris Crook From: Tim Sutton [mailto:t...@linfiniti.com]mailto:[mailto:t

Re: [Qgis-developer] Unit tests

2013-05-20 Thread Chris Crook
Hi Benedict I put on the delimited text tests, but only have Ubuntu development platform set up at the moment (on which of course they pass!!). What platform are these results on, and do you have any more details for the delimited text failures? Thanks Chris Crook

[Qgis-developer] QgsDataProvider and supportsSubsetString

2013-04-30 Thread Chris Crook
Hi All As we are looking at API tidy ups (I understand), would there be any support for providing a bit more granularity in supportsSubsetString. At the moment this is a simple boolean, and the GUI offers a SQL based subset string builder. However not all providers naturally use SQL based

Re: [Qgis-developer] QgsDataProvider and supportsSubsetString

2013-04-30 Thread Chris Crook
Hi Matthias Thanks for comments. As we are looking at API tidy ups (I understand), would there be any support for providing a bit more granularity in supportsSubsetString. At the moment this is a simple boolean, and the GUI offers a SQL based subset string builder. However not all

[Qgis-developer] Delimited text plugin and file encoding dialog - advice please!

2013-04-27 Thread Chris Crook
Hi The new delimited text plugin GUI has a selector for file encoding which I added (to support different file encodings!). However I've just noticed that there is a QgsEncodingFileDialog which already supports selecting encoding for a file (though it is not much used in QGIS). It would make

[Qgis-developer] Fields/attributes

2013-04-25 Thread Chris Crook
Couple of questions with regard to QgsFeature fields and attributes: 1) Are there any guidelines/constraints regarding field names. The delimited text provider can take names from the first line of a text file, and that can be very arbitrary. I'm wondering if I should put more constraints on

[Qgis-developer] Version 2.0 Python API

2013-04-23 Thread Chris Crook
Hi Is there anywhere a summary of the Python API changes for version 2.0, as a guide for porting plugins to the new version. I'm guessing that with the focus on cleaning up the API this may be a work in progress, but if there is something available that would be great. Thanks Chris This

[Qgis-developer] Context help styling

2013-04-21 Thread Chris Crook
Hi I'm wanting to tidy up some context help, and can't quite figure out where some of the styling is coming from, and where would be a good place to put styling information if I wanted to. It looks like it comes from the code QString myStyle = QgsApplication::reportStyleSheet();

[Qgis-developer] Updating context help and translations

2013-04-17 Thread Chris Crook
Hi Just wondering what the procedure is for updating context help (in this case for delimited text plugin). I can update en_US version, but sadly I'm totally incompetent for any other options.So question is when translations are being done, how should the other versions be handled. At

[Qgis-developer] Rule based renderer and colours

2013-04-13 Thread Chris Crook
Hi I really like the rule based renderer. One thing that doesn't seem easy though is to use the colour data defined property, as it isn't clear (and possibly not easy) to generate an expression for a colour. I am thinking it would be really useful to have a Colour section in the function

[Qgis-developer] QgsMessageLog

2013-04-12 Thread Chris Crook
Hi I'm writing some test cases in python and want to trap messages sent to QgsMessageLog. The C++ API docs state that there is a receivedMessage signal emitted by the QgsMessageLog, but it does not seem to be exposed to the Python API. Can anyone tell me either how to access the message log

Re: [Qgis-developer] Setting up test with plugin..

2013-04-11 Thread Chris Crook
-Original Message- From: Martin Dobias [mailto:wonder...@gmail.com] Sent: Thursday, 11 April 2013 8:43 p.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Setting up test with plugin.. Hi Chris On Thu, Apr 11, 2013 at 9:58 AM, Chris Crook ccr...@linz.govt.nz

[Qgis-developer] Memory layer saver plugin to core?

2013-04-02 Thread Chris Crook
Hi All I'm wondering if there would be any support for moving the memory layer saver plugin to core. At the moment many plugins create scratch memory layers, and the current default behaviour of QGis is to silently drop the data when the project is saved - when the user reloads the project

[Qgis-developer] QFontMetrics problem in composer

2013-01-27 Thread Chris Crook
/OGR 1.9.2 Running against GDAL/OGR 1.9.2 GEOS Version 3.3.3 PostgreSQL Client Version 9.1.6 SpatiaLite Version 2.4.0 QWT Version 5.2.2 Chris Crook This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must

[Qgis-developer] Plugin layer and labelling

2013-01-27 Thread Chris Crook
of custom labelling, but that looks like a lot more work :-( Is there a simpler way? Thanks Chris Crook This message contains information, which is confidential and may be subject to legal privilege. If you are not the intended recipient, you must not peruse, use, disseminate, distribute

Re: [Qgis-developer] Plugin layer and labelling

2013-01-27 Thread Chris Crook
it). That doesn't seem right? Chris Crook Technical Leader (Spatial Information Management) Customer Services Business Development E ccr...@linz.govt.nz | DDI 04 4600567 Wellington Office, Level 7, Radio New Zealand House, 155 The Terrace PO Box 5501, Wellington 6145, New Zealand | T 04 460 0110 W

Re: [Qgis-developer] Memory data provider persistence

2012-07-26 Thread Chris Crook
- From: Even Rouault [mailto:even.roua...@mines-paris.org] Sent: Thursday, 26 July 2012 6:47 a.m. To: qgis-developer@lists.osgeo.org Cc: Chris Crook; haubourg Subject: Re: [Qgis-developer] Memory data provider persistence Le mercredi 25 juillet 2012 20:03:16, Chris Crook a écrit : Hi .. yes I

Re: [Qgis-developer] Memory data provider persistence

2012-07-26 Thread Chris Crook
Good points. I'm thinking perhaps the solution is to use Sqlite/spatialite (don't get me wrong - I like and use spatialite a lot). But perhaps use the python spatialite driver directly, rather than the QgsVectorFileWriter class as I am currently doing, as I cannot see any OGR options for

Re: [Qgis-developer] Memory data provider persistence

2012-07-25 Thread Chris Crook
Hi .. yes I don't like masking the FID field and I'm not thinking this is a long term solution, even before the problem in my implementation with the field index issue (which I think I will be able to fix). I'm looking at a couple of options over the next few days .. and open to any

Re: [Qgis-developer] Memory data provider persistence

2012-07-25 Thread Chris Crook
-Original Message- From: Chris Crook Sent: Thursday, 26 July 2012 6:03 a.m. To: haubourg; qgis-developer@lists.osgeo.org Subject: RE: [Qgis-developer] Memory data provider persistence Hi .. yes I don't like masking the FID field and I'm not thinking this is a long term solution, even before

Re: [Qgis-developer] Memory data provider persistence

2012-07-22 Thread Chris Crook
qgis without saving the edits, then there is no prompt for saving the edits. If the edits don't get saved then the memory saver plugin doesn't flag the project as dirty, and so the changes don't get saved. Could this match your example? Cheers Chris Crook -Original Message- From

[Qgis-developer] Adding attributes to data provider, python

2012-01-16 Thread Chris Crook
Hi All Since updating QGIS (from 1.6 I think) several plugins I use are no longer working properly, because of the issue raised as bug 4687 http://hub.qgis.org/issues/4687. Basically they are using the approach in the python cookbook for creating memory layers using the data provider

RE: [Qgis-developer] Python: groups in QgsLegendInterface()

2011-06-14 Thread Chris Crook
-Original Message- From: Marco Bernasocchi [mailto:ma...@bernawebdesign.ch] Sent: Friday, 10 June 2011 7:51 p.m. To: Chris Crook Cc: qgis-developer-requ...@lists.osgeo.org Subject: Re: [Qgis-developer] Python: groups in QgsLegendInterface() Hi On 06/10/2011 04:05 AM, Chris Crook wrote: Hi

RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Chris Crook
if it is included in the zip file). Also I'm wondering how to specify plugin tags? Thanks Chris From: Alessandro Pasotti [mailto:apaso...@gmail.com] Sent: Tuesday, 14 June 2011 6:06 p.m. To: Chris Crook Cc: Tim Sutton; qgis-developer

RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-14 Thread Chris Crook
[mailto:apaso...@gmail.com] Sent: Wednesday, 15 June 2011 9:30 a.m. To: Chris Crook Cc: Qgis Developer List; Tim Sutton Subject: Re: [Qgis-developer] Preparing for the release announcement - plugin manager site 2011/6/14 Chris Crook ccr...@linz.govt.nzmailto:ccr...@linz.govt.nz Hi The repository looks good

RE: [Qgis-developer] Preparing for the release announcement - plugin manager site

2011-06-13 Thread Chris Crook
Just wondering how the new plugins repository relates to the existing user contributed plugins repo. Should we move plugins to the new one, and if so should we delete them from the existing repository, or is it fine to have two versions of the same plugin? Cheers Chris

[Qgis-developer] Python: groups in QgsLegendInterface()

2011-06-09 Thread Chris Crook
Hi All How can I determine the group index of a group containing a layer? Basically I'm creating a new layer, and wanting to add it to the same group as a new layer. It looks like the only way to add a layer to a group is via the group index. But I can't see any way to determine the group

[Qgis-developer] Render extents based subset of features

2011-06-08 Thread Chris Crook
I have a layer of simple lines (ie straight lines with no midpoint nodes), which I want rendered so that only lines with one of the endpoints within the extents are displayed and selectable. Lines which cross the map window but do not terminate in it are omitted. This is to display land

RE: [Qgis-developer] QGIS Plugin - Ovals

2011-06-03 Thread Chris Crook
I have published a plugin called vectorfieldrenderer which plots arrows with orientation and scale based field values. I wrote this for plotting deformation (eg ground moment as a result of an earthquake). I've been thinking about adding ellipses to it for a while (to represent the

[Qgis-developer] How to handle errors when loading the project

2011-03-08 Thread Chris Crook
Hi All I've recently had problems with loading project files and think it would be good to change the handling of this a bit! First a bit of background. My problems originally came from the changes to the delimited text provider to use Qurl.fromLocalFile as the datasource. I think this is a

RE: [Qgis-developer] Cleanly create memory layer in Python?

2011-01-19 Thread Chris Crook
for the layer (rather than the provider). It remains an option for future implementation :-) Cheers Chris -Original Message- From: Martin Dobias [mailto:wonder...@gmail.com] Sent: Thursday, 20 January 2011 8:51 a.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer

RE: [Qgis-developer] Cleanly create memory layer in Python?

2011-01-17 Thread Chris Crook
-Original Message- From: Martin Dobias [mailto:wonder...@gmail.com] Sent: Saturday, 8 January 2011 7:06 a.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Cleanly create memory layer in Python? On Thu, Jan 6, 2011 at 9:16 PM, Chris Crook ccr

RE: [Qgis-developer] Cleanly create memory layer in Python?

2011-01-09 Thread Chris Crook
: Saturday, 8 January 2011 7:06 a.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Cleanly create memory layer in Python? On Thu, Jan 6, 2011 at 9:16 PM, Chris Crook ccr...@linz.govt.nz wrote: Hi All I'm wanting to create a memory provider in Python without

RE: [Qgis-developer] Cleanly create memory layer in Python?

2011-01-09 Thread Chris Crook
to QgsMapLayer.dataSourceUri(), and to have that use the provider dataSourceUri() function unless the provider was not defined. Cheers Chris -Original Message- From: Chris Crook Sent: Monday, 10 January 2011 8:51 a.m. To: 'Martin Dobias' Cc: qgis-developer@lists.osgeo.org Subject: RE

RE: [Qgis-developer] Loading CSV with geometry field

2010-12-28 Thread Chris Crook
Hi Jude If you are able to use QGis 1.7 this now can take a geometry column (formatted as well known text) in a CSV file using the delimited text plugin. Cheers Chris From: jude mwenda [judemwe...@gmail.com] Sent: 29 December 2010 00:33 To:

[Qgis-developer] Qgis crashing on QgsVectorLayer committedFeaturesRemoved signal..

2010-12-22 Thread Chris Crook
Hi All I'm having a problem with Qgis crashing on the committedFeaturesRemoved signal in my MemoryLayerSaver plugin. This seems to happen with the I've raised a Trac ticket, 3366, for this. Wondering if anyone has any insights into what could be causing this, or how to debug it. Thanks

[Qgis-developer] Memory provider saver and signals

2010-12-19 Thread Chris Crook
Hi All I'm trying to find some good signals for identifying changes to data in a memory layer. I've got a functional memory provider plugin, at the moment saving each memory layer to a GML file. However I'm not sure I've got the best approach to identifying when data changes are made to

RE: [Qgis-developer] Problem using vector data provider in python

2010-12-14 Thread Chris Crook
: Wednesday, 15 December 2010 9:49 a.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Problem using vector data provider in python On Tue, Dec 14, 2010 at 9:18 PM, Chris Crook ccr...@linz.govt.nz wrote: Hi All I'm wondering if it is possible to use

RE: [Qgis-developer] Memory data provider persistence

2010-12-06 Thread Chris Crook
From: Martin Dobias [wonder...@gmail.com] Sent: 06 December 2010 22:57 To: Barry Rowlingson Cc: Chris Crook; qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Memory data provider persistence On Mon, Dec 6, 2010 at 10:45 AM, Barry Rowlingson b.rowling

RE: [Qgis-developer] Memory data provider persistence

2010-12-06 Thread Chris Crook
and pretty scungy! But that is personal preference I guess. Brilliant .. Cheers Chris -Original Message- From: b.rowling...@googlemail.com [mailto:b.rowling...@googlemail.com] On Behalf Of Barry Rowlingson Sent: Tuesday, 7 December 2010 7:40 a.m. To: Chris Crook Cc: Martin Dobias

RE: [Qgis-developer] Memory data provider persistence

2010-12-06 Thread Chris Crook
ownership of the data. For it all to make sense it needs a projectDataDirty() flag. Bother! Chris -Original Message- From: b.rowling...@googlemail.com [mailto:b.rowling...@googlemail.com] On Behalf Of Barry Rowlingson Sent: Tuesday, 7 December 2010 12:21 p.m. To: Chris Crook Cc: Martin Dobias

RE: [Qgis-developer] Memory data provider persistence

2010-12-05 Thread Chris Crook
, then they can save the layer to that. How does this sound to people? Cheers Chris -Original Message- From: Martin Dobias [mailto:wonder...@gmail.com] Sent: Sunday, 5 December 2010 6:08 a.m. To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Memory data

RE: [Qgis-developer] Memory data provider persistence

2010-12-04 Thread Chris Crook
the reinstated project would be a more accurate copy of the one originally saved. Cheers Chris From: Martin Dobias [wonder...@gmail.com] Sent: 05 December 2010 06:07 To: Chris Crook Cc: qgis-developer@lists.osgeo.org Subject: Re: [Qgis-developer] Memory data provider

  1   2   >