[Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Denis Rouzaud

Hi all,

I observed a few changes I see as drawbacks.

1. When you draw a line, when you right-click to finish the feature, the 
current point is used. I think it is more consistent to place points 
with left-clicks and finish with a right, without adding anymore point.


2. Also, when I finish a feature, I have to commit changes and to 
refresh the canvas before I can see it on the map. If I am right, it did 
not used to be like this.


3. There is no add/remove node for a linestring. I am going to write 
this as a plugin. I this planned to be done? Did I look too quickly and 
this feature does exist?


Thanks a lot,

Denis

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Marco Hugentobler

Hi Denis

>There is no add/remove node for a linestring

Can't you do that with the node tool?

Regards,
Marco

On 23.01.2012 14:47, Denis Rouzaud wrote:

Hi all,

I observed a few changes I see as drawbacks.

1. When you draw a line, when you right-click to finish the feature, 
the current point is used. I think it is more consistent to place 
points with left-clicks and finish with a right, without adding 
anymore point.


2. Also, when I finish a feature, I have to commit changes and to 
refresh the canvas before I can see it on the map. If I am right, it 
did not used to be like this.


3. There is no add/remove node for a linestring. I am going to write 
this as a plugin. I this planned to be done? Did I look too quickly 
and this feature does exist?


Thanks a lot,

Denis

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



--
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Denis Rouzaud



Can't you do that with the node tool?



Well, as far as I tried, you cannot remove a single node.

And to add one, double-click seems to add a node (there is a cross 
drawn),  but you cannot move it, and it is added in the wrong segment.



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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Andreas Neumann

Hi Denis

On Mon, 23 Jan 2012 14:47:49 +0100, Denis Rouzaud wrote:

Hi all,

I observed a few changes I see as drawbacks.

1. When you draw a line, when you right-click to finish the feature,
the current point is used. I think it is more consistent to place
points with left-clicks and finish with a right, without adding
anymore point.


I think that this behaviour is not new but was always like this. This 
is also a general digitizing issue and has nothing to do with the 
Postgis provider, as far as I know. Personally, I am not sure what is 
easier/best to finish digitizing a line.


I had a look at other graphic software:

* Inkscape: finish line with double click or right click, but right 
click does not add a new point. This seems to be in line with what you 
propose above.

* Autocad: finish a polyline with enter key
* Openoffice: finish a line with a double click - right-click undoes 
last vertex.
* Scribus: finish line with right click, but right click does not add a 
new point. In line with Denis' proposal.


In general I think that QGIS current solution with finishing a line 
with right-click (while adding a new vertex) is not so bad, once you are 
used to it. It means fewer mouse-clicks, which is nice. It might be a 
little unfamiliar for new QGIS users, but I think people can get used to 
it quickly - am I wrong?


One issue we have with right-click and with double click is that it is 
hard to replicate on a touchpad. Marco Bernasocchi, the current QGIS on 
Android maintainer has to find a workaround because there are no 
right-clicks on a touchpad.


Any idea about a better way to finish digitizing a line?


2. Also, when I finish a feature, I have to commit changes and to
refresh the canvas before I can see it on the map. If I am right, it
did not used to be like this.


That's strange - I cannot observe this behavior. It works fine on my 
machine.



3. There is no add/remove node for a linestring. I am going to write
this as a plugin. I this planned to be done? Did I look too quickly
and this feature does exist?


yes - this functionality is missing - and I think it should go into the 
core (not just as a plugin). The functionality to extend a line is a 
core functionality that everyone needs at some point.


Andreas

--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Giovanni Manghi
You need to use the "del" keyboard key.
On Jan 23, 2012 2:27 PM, "Denis Rouzaud"  wrote:

>
>  Can't you do that with the node tool?
>>
>>
> Well, as far as I tried, you cannot remove a single node.
>
> And to add one, double-click seems to add a node (there is a cross drawn),
>  but you cannot move it, and it is added in the wrong segment.
>
>
> __**_
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/qgis-**developer
>
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Andreas Neumann

Denis,

You can remove one or more nodes by selecting them - they become blue - 
and then you hit the delete key.


A double click adds a node.

But there is no way to extend and already digitized line beyond the 
end. This functionality needs to be added.


Andreas

On Mon, 23 Jan 2012 15:27:12 +0100, Denis Rouzaud wrote:

Can't you do that with the node tool?



Well, as far as I tried, you cannot remove a single node.

And to add one, double-click seems to add a node (there is a cross
drawn),  but you cannot move it, and it is added in the wrong 
segment.



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


--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Marco Hugentobler


>Well, as far as I tried, you cannot remove a single node.
>And to add one, double-click seems to add a node (there is a cross 
drawn),  but you cannot move it, and it is added in the wrong segment.


These are probably bugs. The node tool is intended to do exactly these 
things.




On 23.01.2012 15:27, Denis Rouzaud wrote:



Can't you do that with the node tool?



Well, as far as I tried, you cannot remove a single node.

And to add one, double-click seems to add a node (there is a cross 
drawn),  but you cannot move it, and it is added in the wrong segment.






--
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Andreas Neumann

for me, the node tool works fine.

The only missing functionality is to extend a line beyond the end or 
beginning. I am not sure if this can be handled by the node tool or 
requires a separate tool?


Andreas

On Mon, 23 Jan 2012 15:31:51 +0100, Marco Hugentobler wrote:

Well, as far as I tried, you cannot remove a single node.
And to add one, double-click seems to add a node (there is a cross 
drawn),  but you cannot move it, and it is added in the wrong segment.


These are probably bugs. The node tool is intended to do exactly
these things.



On 23.01.2012 15:27, Denis Rouzaud wrote:



Can't you do that with the node tool?



Well, as far as I tried, you cannot remove a single node.

And to add one, double-click seems to add a node (there is a cross 
drawn),  but you cannot move it, and it is added in the wrong segment.





--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Denis Rouzaud

Hi all,

Thanks a lot for you quick replies.

I'll try to resume.

1. Insertion of linestrings.
In my opinion, right-click to finish with adding new node is not great. 
I like consistency, and have left to add, right to finish is much more 
consistent. And one more right click is quicker than canceling the last 
added point ;) Andreas: in the example you shown, there is no one which 
used the same as qgis. But it might sounds like a bad idea to change a 
software behavior?


2. Have to commit to see the newly added features.
Yes this is really strange, it used to work, but since a few days (don't 
remenber when) I have to commit changes.n (see video)


3. Remove node.
Ok, got it, thanks.

4. Add node.
Cannot have it working. A node is added but in the previous segment. And 
I cannot move it. (see same video)


5. Having some experience with cad softwares, I must say I don't think 
it's a great idea to have a single action (or icon) for adding, 
deleting, moving nodes. It leads to a much more complex action. I.e., 
for adding a node: double clicking - selecting node - moving it without 
releasing button - release button instead of clicking - moving - clicking.
I'll see with the drawers, but I am pretty sure they would like single 
buttons.


See the video for point 2 and 4, here 
http://www.youtube.com/watch?v=g4IsQ2R_9Ag&hd=1 



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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Andreas Neumann



On Mon, 23 Jan 2012 15:49:36 +0100, Denis Rouzaud wrote:

Hi all,

 Thanks a lot for you quick replies.

 I'll try to resume.

 1. Insertion of linestrings.
 In my opinion, right-click to finish with adding new node is not
great. I like consistency, and have left to add, right to finish is
much more consistent. And one more right click is quicker than
canceling the last added point ;) Andreas: in the example you shown,
there is no one which used the same as qgis. But it might sounds like
a bad idea to change a software behavior?


well - as I said. I do not have strong feelings about it. I am not an 
operator, so I am not personally affected ;-) no - more seriously. Do 
you really think it would be that hard for your people to use the 
different behavior? At the beginning it will be strange - I agree - but 
I have the feeling that people get used to it quickly.



 2. Have to commit to see the newly added features.
 Yes this is really strange, it used to work, but since a few days
(don't remenber when) I have to commit changes.n (see video)


that sounds like a bug. I will try to replicate at later with the 
current trunk. I did not see this behavior before.



 3. Remove node.
 Ok, got it, thanks.


good



 4. Add node.
 Cannot have it working. A node is added but in the previous segment.
And I cannot move it. (see same video)


to add a node you double click on a line segment and than you can move 
it. Does this work?



 5. Having some experience with cad softwares, I must say I don't
think it's a great idea to have a single action (or icon) for adding,
deleting, moving nodes. It leads to a much more complex action. I.e.,
for adding a node: double clicking - selecting node - moving it
without releasing button - release button instead of clicking - 
moving

- clicking.
 I'll see with the drawers, but I am pretty sure they would like
single buttons.


well - but on the other hand you don't have to change tools all the 
time. I personally prefer the way QGIS does it because I can work with 
fewer tools. The path-tool in Inkscape and in Illustrator is a good 
example where one tool can actually handle all path shapes without 
having to change the tool. This is a big plus in my opinion. One can use 
keyboard modifiers and the different mouse buttons to change behavior of 
the path tool ...


But again - with touchpads - it is a different story ...

Andreas

--
--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Giovanni Manghi
> 2. Have to commit to see the newly added features.
> Yes this is really strange, it used to work, but since a few days
> (don't remenber when) I have to commit changes.n (see video)
> 

not confirmed here using master.



> 4. Add node.
> Cannot have it working. A node is added but in the previous segment.
> And I cannot move it. (see same video)


On master I'm getting a crash (using both shapes and postgis) when
adding nodes with the node tool (attached the error message). Should I
file a ticket?

I also see "strange things" when adding nodes: sometimes when adding a
node, the one added previously disappear and sometimes the node seems to
be added in a completely different spot than the onde clicked.


WARNING:  there is no transaction in progress
* deactivate parallellinetool
* deactivate circulararctool
* deactivate modifycirculararctool
* deactivate parallellinetool
* deactivate circulararctool
* deactivate modifycirculararctool
* deactivate parallellinetool
* deactivate circulararctool
* deactivate modifycirculararctool
Fatal: ASSERT failure in QList::operator[]: "index out of range",
file /usr/include/qt4/QtCore/qlist.h, line 464
Stacktrace (run through c++filt):
/usr/bin/qgis.bin(_Z15myMessageOutput9QtMsgTypePKc+0xb3)[0x4d0a03]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x2e)[0x7f7fa398034e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x7c7ef)[0x7f7fa39807ef]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z6qFatalPKcz
+0x94)[0x7f7fa3980994]
/usr/bin/qgis.bin(_ZN18QgsSelectedFeature10isSelectedEi+0x69)[0x5c2ce9]
/usr/bin/qgis.bin(_ZN18QgsMapToolNodeTool16canvasPressEventEP11QMouseEvent+0x703)[0x5c1013]
/usr/lib/libqgis_gui.so.1.9.90(_ZN12QgsMapCanvas15mousePressEventEP11QMouseEvent+0x2f)[0x7f7fa4364adf]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN7QWidget5eventEP6QEvent
+0x949)[0x7f7fa2e70fc9]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN6QFrame5eventEP6QEvent
+0x26)[0x7f7fa32195b6]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN13QGraphicsView13viewportEventEP6QEvent+0x7b)[0x7f7fa343cdfb]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate29sendThroughObjectEventFiltersEP7QObjectP6QEvent+0x88)[0x7f7fa3a70c88]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x7f)[0x7f7fa2e2043f]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xafb)[0x7f7fa2e25cbb]
/usr/lib/libqgis_core.so.1.9.90(_ZN14QgsApplication6notifyEP7QObjectP6QEvent+0x7e)[0x7f7fa47c871e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent+0x8c)[0x7f7fa3a70afc]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb+0x172)[0x7f7fa2e21442]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x27c9d5)[0x7f7fa2ea09d5]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(_ZN12QApplication15x11ProcessEventEP7_XEvent+0xdde)[0x7f7fa2e9f94e]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2a44a2)[0x7f7fa2ec84a2]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch
+0x1dd)[0x7f7f9cdc0a5d]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x45258)[0x7f7f9cdc1258]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration
+0x69)[0x7f7f9cdc1429]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x76)[0x7f7fa3a9bed6]
/usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x2a410e)[0x7f7fa2ec810e]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE+0x32)[0x7f7fa3a6fcf2]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0xa7)[0x7f7fa3a6fef7]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv
+0x89)[0x7f7fa3a74789]
/usr/bin/qgis.bin(main+0x1801)[0x4c9071]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f7fa192b30d]
/usr/bin/qgis.bin[0x4d0811]
Aborted


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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Paolo Cavallini
Il 23/01/2012 15:49, Denis Rouzaud ha scritto:

> 5. Having some experience with cad softwares, I must say I don't think it's a 
> great
> idea to have a single action (or icon) for adding, deleting, moving nodes. It 
> leads
> to a much more complex action. I.e., for adding a node: double clicking - 
> selecting
> node - moving it without releasing button - release button instead of 
> clicking -
> moving - clicking.
> I'll see with the drawers, but I am pretty sure they would like single 
> buttons.

For me, the current situation (node tool) is a major improvement over the old,
many-buttons one. Everything can be improved, but I would see having many 
buttons as
a regression.
All the best.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Ramon Andiñach

On 24/01/2012, at 03:18 , Paolo Cavallini wrote:

> Il 23/01/2012 15:49, Denis Rouzaud ha scritto:
> 
>> 5. Having some experience with cad softwares, I must say I don't think it's 
>> a great
>> idea to have a single action (or icon) for adding, deleting, moving nodes. 
>> It leads
>> to a much more complex action. I.e., for adding a node: double clicking - 
>> selecting
>> node - moving it without releasing button - release button instead of 
>> clicking -
>> moving - clicking.
>> I'll see with the drawers, but I am pretty sure they would like single 
>> buttons.
> 
> For me, the current situation (node tool) is a major improvement over the old,
> many-buttons one. Everything can be improved, but I would see having many 
> buttons as
> a regression.
> All the best.

+1
In another drawing programme I use a lot, it is irritating to me that amount of 
time I spend mucking about with the buttons - when I should be drawing.
The node tool might take a little getting used to, but now that I am, knowing 
it can be done like this, increases my existing frustration about having to 
continually stop drawing to change buttons.

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-23 Thread Denis Rouzaud

OK. I see your point.

I'll see with the drawers, and if they need something, I will bring 
something as a plugin.




On 01/24/2012 12:07 AM, Ramon Andiñach wrote:

On 24/01/2012, at 03:18 , Paolo Cavallini wrote:


Il 23/01/2012 15:49, Denis Rouzaud ha scritto:


5. Having some experience with cad softwares, I must say I don't think it's a 
great
idea to have a single action (or icon) for adding, deleting, moving nodes. It 
leads
to a much more complex action. I.e., for adding a node: double clicking - 
selecting
node - moving it without releasing button - release button instead of clicking -
moving - clicking.
I'll see with the drawers, but I am pretty sure they would like single buttons.

For me, the current situation (node tool) is a major improvement over the old,
many-buttons one. Everything can be improved, but I would see having many 
buttons as
a regression.
All the best.

+1
In another drawing programme I use a lot, it is irritating to me that amount of 
time I spend mucking about with the buttons - when I should be drawing.
The node tool might take a little getting used to, but now that I am, knowing 
it can be done like this, increases my existing frustration about having to 
continually stop drawing to change buttons.

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

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Giovanni Manghi

> For me, the current situation (node tool) is a major improvement over the old,
> many-buttons one. Everything can be improved, but I would see having many 
> buttons as
> a regression.

agree 100%

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Denis Rouzaud

Hi all,

1. Insertion of linestrings finishing by right click.
I am not very confident with current behavior. Would you agree on adding 
an option to ask if right click should also add a node or just finish 
the operation ?


2. Have to commit to see the newly added features.
I am using a view, and updating corresponding table with a rule. Jurgen, 
do you have any idea about it? Would it be possible?


4. Add node.
Jurgen fixed it yesterday, thanks a lot.

5. Single vs. several tools.
You almost changed my mind. Ok, you changed it ;)

Thanks a lot for comments, helps, tips and fixes!

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Andreas Neumann

Hi Denis and others,

On Tue, 24 Jan 2012 11:16:57 +0100, Denis Rouzaud wrote:

Hi all,

1. Insertion of linestrings finishing by right click.
I am not very confident with current behavior. Would you agree on
adding an option to ask if right click should also add a node or just
finish the operation ?


sounds like an idea - could go into the digitizing options. Maybe you 
can ask Marco to implement this. Then people can fight about what should 
be the default ;-) I can understand that the current behavior that 
right-click adds an additional node can confuse newcomers.



2. Have to commit to see the newly added features.
I am using a view, and updating corresponding table with a rule.
Jurgen, do you have any idea about it? Would it be possible?


that really should work. Sounds like a bug to me.


4. Add node.
Jurgen fixed it yesterday, thanks a lot.


good - thanks.


5. Single vs. several tools.
You almost changed my mind. Ok, you changed it ;)


;-)

Andreas


--
Andreas Neumann
Böschacherstrasse 10A
8624 Grüt (Gossau ZH)
Switzerland
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Giovanni Manghi

> > 2. Have to commit to see the newly added features.
> > I am using a view, and updating corresponding table with a rule.
> > Jurgen, do you have any idea about it? Would it be possible?
> 
>  that really should work. Sounds like a bug to me.

it works here

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Nathan Woodrow
On Tue, Jan 24, 2012 at 8:29 PM, Andreas Neumann wrote:

> Hi Denis and others,
>
>
> On Tue, 24 Jan 2012 11:16:57 +0100, Denis Rouzaud wrote:
>
>> Hi all,
>>
>> 1. Insertion of linestrings finishing by right click.
>> I am not very confident with current behavior. Would you agree on
>> adding an option to ask if right click should also add a node or just
>> finish the operation ?
>>
>
> sounds like an idea - could go into the digitizing options. Maybe you can
> ask Marco to implement this. Then people can fight about what should be the
> default ;-) I can understand that the current behavior that right-click
> adds an additional node can confuse newcomers.


My only concern with this is it will then be inconstant across users e.g
makes it hard to write training manuals when you have to say "you can do it
this way, or if someone has changed it you can do it this way", it might
not be so bad for something like this but I think we should decided on
somethings and just stick to them.  Giving users heaps of options to tweak
can sometimes make a system harder to use, sometimes the less options the
better.

IMO the way it works currently is good however if we were to ever add right
click context menus to the drawing tools (like Arc or CAD based systems)
then I think this behavior might not be ideal.

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Jürgen E . Fischer
Hi Denis,

On Tue, 24. Jan 2012 at 11:16:57 +0100, Denis Rouzaud wrote:
> 2. Have to commit to see the newly added features.
> I am using a view, and updating corresponding table with a rule. Jurgen,  
> do you have any idea about it? Would it be possible?

No. That's not the normal behaviour.  How can I reproduce that?  The provider
shouldn't matter as the new features aren't stored there, but in memory until
you commit.

Just to be sure: We are talking about core qgis and not some plugin, are we?


Jürgen

-- 
Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-20
Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
Software Engineer D-26506 Norden   http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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


Re: [Qgis-developer] Postgis provider, add and modify linestring

2012-01-24 Thread Denis Rouzaud

Hi Jürgen,

Yes, we speak about QGIS core.

I tested with others layers that are straight tables and I do not have 
this behavior.

I only have this in a view.

You can see this in the video I posted: 
http://www.youtube.com/watch?v=g4IsQ2R_9Ag&hd=1


You probably do not need this, but the SQL of the table and view is here 
https://github.com/3nids/qWat/blob/master/sql/pipes.sql
Basically, I have a table and a view with insert/update/delete rules, 
including the geometry field.


For info, I use: postgis 1.5.3 and postgres 9.1

Don't know where to look at anymore (already upgrade the packages).







On 01/24/2012 02:52 PM, Jürgen E. Fischer wrote:

Hi Denis,

On Tue, 24. Jan 2012 at 11:16:57 +0100, Denis Rouzaud wrote:

2. Have to commit to see the newly added features.
I am using a view, and updating corresponding table with a rule. Jurgen,
do you have any idea about it? Would it be possible?

No. That's not the normal behaviour.  How can I reproduce that?  The provider
shouldn't matter as the new features aren't stored there, but in memory until
you commit.

Just to be sure: We are talking about core qgis and not some plugin, are we?


Jürgen

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