Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Luigi Pirelli
May be tested against test dataset provided by werner macho and Giovanni Manghi? On Tuesday, 24 November 2015, Matthias Kuhn wrote: > Thank you Marco, > > Are you confident that these are the only places that need changes, so > does this mean that there is no more reason

Re: [Qgis-developer] QGIS docs

2015-11-24 Thread Michael Kirk
Figured it out, the body the template was not being used as there is a special layout for the documentation page. I’ve removed the confusing code and added an explanatory comment here: https://github.com/qgis/QGIS-Website/pull/290 > On Nov 24,

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

2015-11-24 Thread Régis Haubourg
Well, thanks Nyall, Radim and Pierre for your lights ! Nyall Dawson wrote >> I think that now (>=2.8), when QGIS geometry supports M (measure), the >> measure calculated for the nearest point on the identified line >> could/should be added to derived attributes in standard identify >> results. >

[Qgis-developer] QGIS docs

2015-11-24 Thread Michael Kirk
Hi, I’m trying to wrap my head around the state of documentation in QGIS. There is: https://github.com/qgis/QGIS-Documentation and https://github.com/qgis/QGIS-Website It seems like qgis/QGIS-Documentation corresponds to http://docs.qgis.org Whereas qgis/QGIS-Website corresponds to

Re: [Qgis-developer] Silently fail on error or say it loud?

2015-11-24 Thread Jonathan
Hi Alessandro, I'd suggest that failing silently is probably the worst situation for the user, and the code-guidelines should be updated. The user thinks they're getting what they want and instead their request is being ignored. These sorts of things usually lead to users wasting lots of time

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

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

2015-11-24 Thread Nyall Dawson
On 25 Nov 2015 1:39 AM, "Radim Blazek" wrote: > > 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

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Matthias Kuhn
Thank you Marco, Are you confident that these are the only places that need changes, so does this mean that there is no more reason for a warning and we just need a quick point release? I applied the same to processing and did some changes to your fix to make it work also for union and clip.

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

2015-11-24 Thread Luigi Pirelli
alessandro Pasotti has a pull request that probably is what you are looking for https://github.com/qgis/QGIS/pull/2498 Regards On Tuesday, 24 November 2015, Régis Haubourg < regis.haubo...@eau-adour-garonne.fr> wrote: > Well, thanks Nyall, Radim and Pierre for your lights ! > > > Nyall Dawson

[Qgis-developer] Silently fail on error or say it loud?

2015-11-24 Thread Alessandro Pasotti
Hi, I didn't find much on coding guidelines and I'm not sure about what to do, it seems that this is treated differently in different parts of the code. An example: in the vector layer configuration dialog, the user can enter ad UI file for the custom form, if the specified file does not exist

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

2015-11-24 Thread PIERRE Sylvain
Hi Regis, I dont know if it's exactly what you are looking for but I had a same question. It was not for a plugin but for a standalone app. Form looks like screenshot joined I can send you ui and class behind the form. Lots of things are hard-coded (standalone app) It's a mash-up from first

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Marco Hugentobler
Hi >ad issue 1: update fTools to warn users when some features cause problems >ad issue 2: quick fix fTools to convert geometry collections to single geometry types A function that takes a geometry type and extracts the longest line / the largest polygon / the first point from the geometry

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Bernhard Ströbl
rg List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer __ Information from ESET Mail Security, version of virus signature database 12614 (20151124) __ The message was checked by ESE

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Alessandro Pasotti
2015-11-24 10:42 GMT+01:00 Matthias Kuhn : > Hi Marco > > Good to have your feedback, you probably know the problem best. > > On 11/24/2015 09:28 AM, Marco Hugentobler wrote: > > Hi > > >ad issue 1: update fTools to warn users when some features cause problems > >ad issue 2:

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Bernhard Ströbl
Project Steering Committee __ Information from ESET Mail Security, version of virus signature database 12614 (20151124) __ The message was checked by ESET Mail Security. http://www.eset.com ___ Qgis-developer mailing list Qgis-developer

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

2015-11-24 Thread Hugo Mercier
Hi Régis, On 23/11/2015 18:00, Régis Haubourg wrote: > > Could we dream for the future of a new generic form widget with custom > expressions to get attributes or geometric information from a layer (with > snapping options )? > Expressions can be inserted in "custom actions" of a layer.

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Marco Hugentobler
Hi Alessandro, Matthias >Is there no requirement for multi types? Afaik, the problem for f-tools are not the multi types, but only the geometry collections (containing geometries with different shape type). In my experience, if geos returns a geometry collection, it usually contains one

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Marco Hugentobler
On 24.11.2015 11:13, Matthias Kuhn wrote: Hi Marco On 11/24/2015 11:01 AM, Marco Hugentobler wrote: Hi Alessandro, Matthias >Is there no requirement for multi types? Afaik, the problem for f-tools are not the multi types, but only the geometry collections (containing geometries with

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Matthias Kuhn
Hi Marco Good to have your feedback, you probably know the problem best. On 11/24/2015 09:28 AM, Marco Hugentobler wrote: > Hi > > >ad issue 1: update fTools to warn users when some features cause problems > >ad issue 2: quick fix fTools to convert geometry collections to > single geometry types

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Matthias Kuhn
Hi Marco On 11/24/2015 11:01 AM, Marco Hugentobler wrote: > Hi Alessandro, Matthias > > >Is there no requirement for multi types? > > Afaik, the problem for f-tools are not the multi types, but only the > geometry collections (containing geometries with different shape > type). In my experience,

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Marco Hugentobler
Hi all I had a detailed look with the debugger at what happens in the different versions. It turned out fTools does indeed handle geometry collections, but assumed a geometry collection has wkb type 'unknown' (which was true <= 2.8, but now geometry collections are not unknown anymore).

Re: [Qgis-developer] Quick fixes and error communication for ftools

2015-11-24 Thread Neumann, Andreas
Thank you Marco! Much appreciated. Andreas On 2015-11-24 16:36, Marco Hugentobler wrote: > Hi all > > I had a detailed look with the debugger at what happens in the different > versions. It turned out fTools does indeed handle geometry collections, but > assumed a geometry collection