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.

Currently not. I'll keep it in mind and let you know if something
comes up, but currently there are no plans.

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/mailman/listinfo/qgis-developer

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.
> 
> And as of 2 days ago, it does: ;)
> 
> https://github.com/qgis/QGIS/commit/1f0d24a0c7a6555ced117ecfc08a73afb1f31b46
> 
> Nyall

I suppose that means that in 2.14, I'll be able to make my own tool calling
identify classes to get vertex measure. So good! 

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.  

Last question now :) 

I need to make an edit form, with inline with some attributes (measure, or x
/ y) that user shall use to go picking those data from the canvas. Behind
the button, I need to code some behaviour, like target layer, snapping
options, fields or geometry information to catch, and of course destination
field. 
Is this possible with a python init script, without any plugin?

If so, that allows me to distribute project + ui file + .py and have it work
with no plugin install or additional configuration. 
Any snippet to point me in the right direction?  (When done, I will submit
it to pyqgis cookbook, this would be great to share). 
All the best
Régis 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110p5238358.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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.
>
> And as of 2 days ago, it does: ;)
>
> https://github.com/qgis/QGIS/commit/1f0d24a0c7a6555ced117ecfc08a73afb1f31b46

Nice, thanks!

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/mailman/listinfo/qgis-developer

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 would like to know if anyone
has
> > made something alike:
> >
> > - I have a postgis db with LINESTRINGM routes (watercourses already
> > calibrated with measures).
> >
> > - I have a non geometric table registering events with start and end
> > measures + identifier of my routes (watercours ID).
> >
> > - I create my event in the attribute table, with one ID and two manually
> > typed measures, then a view cast it to spatial view using
> > locate_beetween_measure function.
> >
> > 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 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.

And as of 2 days ago, it does: ;)

https://github.com/qgis/QGIS/commit/1f0d24a0c7a6555ced117ecfc08a73afb1f31b46

Nyall

>
> > LRS plugin does not have that feature, and requires to recalibrate
layers
> > from scratch.
>
> Similarly Locate, Create events and Calculate measures tools in the
> LRS plugin should be extended  to support existing layers with
> measure.
>
> Radim
>
> > 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 )?
> >
> > Cheers
> >
> > Régis
> >
> >
> >
> > --
> > View this message in context:
http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110.html
> > Sent from the Quantum GIS - Developer mailing list archive at
Nabble.com.
> > ___
> > Qgis-developer mailing list
> > Qgis-developer@lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 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.
> >
> > And as of 2 days ago, it does: ;)
> >
> >
> https://github.com/qgis/QGIS/commit/1f0d24a0c7a6555ced117ecfc08a73afb1f31b46
> >
> > Nyall
>
> I suppose that means that in 2.14, I'll be able to make my own tool calling
> identify classes to get vertex measure. So good!
>
> 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.
>
> Last question now :)
>
> I need to make an edit form, with inline with some attributes (measure, or
> x
> / y) that user shall use to go picking those data from the canvas. Behind
> the button, I need to code some behaviour, like target layer, snapping
> options, fields or geometry information to catch, and of course destination
> field.
> Is this possible with a python init script, without any plugin?
>
> If so, that allows me to distribute project + ui file + .py and have it
> work
> with no plugin install or additional configuration.
> Any snippet to point me in the right direction?  (When done, I will submit
> it to pyqgis cookbook, this would be great to share).
> All the best
> Régis
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110p5238358.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org 
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer



-- 
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

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 LRS plugin (Martin Dobias), others, and at least  
personal stuff ;-)
PS: I have same for point event

Sylvain

-Message d'origine-
De : Qgis-developer [mailto:qgis-developer-boun...@lists.osgeo.org] De la part 
de Régis Haubourg
Envoyé : lundi 23 novembre 2015 18:01
À : qgis-developer@lists.osgeo.org
Objet : [Qgis-developer] Tool to pick up linear referencing measure from mouse

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 already calibrated 
with measures).

- I have a non geometric table registering events with start and end measures + 
identifier of my routes (watercours ID). 

- I create my event in the attribute table, with one ID and two manually typed 
measures, then a view cast it to spatial view using locate_beetween_measure 
function. 

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? 

LRS plugin does not have that feature, and requires to recalibrate layers from 
scratch.

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 )?  

Cheers

Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/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. Could it help ?

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

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

2015-11-23 Thread Régis Haubourg
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 already
calibrated with measures).

- I have a non geometric table registering events with start and end
measures + identifier of my routes (watercours ID). 

- I create my event in the attribute table, with one ID and two manually
typed measures, then a view cast it to spatial view using
locate_beetween_measure function. 

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? 

LRS plugin does not have that feature, and requires to recalibrate layers
from scratch.

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 )?  

Cheers

Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Tool-to-pick-up-linear-referencing-measure-from-mouse-tp5238110.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer