Closed ponceta closed 5 years ago
For Pully, forms are correctly transfered, simple styles too, conditionnal styles are not (have to investigate why), edition works, composers seems to be ok except for conditionnal styles.
Additions:
To me it's still a bit early to start this work ,but raising the issues on conditionnal style to QGIS dev's can be usefull.
@m-kuhn expressions having conditions on boolean for PG layers are broken. see https://github.com/qgis/QGIS/commit/cfb8552b14 and its comment
quick dirty hack
sed -r "s/'t'/true/g; s/'f'/false/g" qwat.qgs > qwat_qgis3.qgs
@wonder-sk do you know why layer order is not respected when opening a 2.x project on QGIS 3? easy fix?
@nyalldawson is it expected that atlas generation config is lost when opening 2.x project on QGIS 3?
I guess your "quick and dirty" hack is the way to go. I can't think of anything better.
@m-kuhn thanks for the feed-back.
Haven't seen the issue (maybe just haven't tried) - please feel free to file a bug report in QGIS tracker for that...
@haubourg this is now a milestone for End 2018!
I just noticed that if I create a feature in a Linestring layer with snap on the 3d node, the new line has 3D and cannot be saved (I have to toggle off the nodes layer in order to create the line with snap on the pipe nodes). Is there a way to deactivate this behavior? Linestrings shouldn't become LinestringZ..
@lbartoletti @pblottiere Hi guys, I had no time to test you Z branch improvements yet. Does it adress Tudor's issue ?
I just noticed that if I create a feature in a Linestring layer with snap on the 3d node, the new line has 3D and cannot be saved (I have to toggle off the nodes layer in order to create the line with snap on the pipe nodes). Is there a way to deactivate this behavior? Linestrings shouldn't become LinestringZ..
Hi @tudorbarascu!
I tried to reproduce your issue on master but I didn't succeed in. But I probably missed something...
Here are my steps:
Can you give me some more information? I'll try to reproduce.
Thank you!
@pblottiere Sure! Thanks for looking. The problem I described is when snapping on PointZ (nodes in our case) not on LinestringZ. To replicate, you need a PointZ and a Linestring layer. Draw a Linestring that snaps to any PointZ feature and try to save.
Test tables:
CREATE TABLE test_point (id serial PRIMARY KEY, name text, geom geometry(PointZ, 3844) );
CREATE TABLE test_line (id serial PRIMARY KEY, name text, geom geometry(Linestring, 3844) );
At first I created the test tables without the name text
column but it seems I found a regression as QGIS doesn't show the SAVE button when just the id and geom columns although it lets me to add points and lines. I was actually hitting https://github.com/qgis/QGIS/pull/6290
Quickfinder will get integrated in core in 3.2 for the services part (geomapfish, osm).
@tudorbarascu Oh! I tried and I just got a segfault during saving... I'll take a look!
@tudorbarascu I tried with my branch coming with this PR https://github.com/qgis/QGIS/pull/5823 and there's no more segfault. Moreover, I successfully saved the linestring layer.
I'll let you know once this PR is merged!
@pblottiere Noticed the PR was merged 3 hours ago. I just built and tested and the problem is still present. Thanks for your very nice work.
I just built and tested and the problem is still present.
@tudorbarascu Damn :(! It means that I didn't reproduce your issue correctly... I'll try again tomorrow and I let you know.
@pblottiere I added a gif so that you can reproduce more easily.
Create the tables
CREATE TABLE test_point (id serial PRIMARY KEY, name text, geom geometry(PointZ, 3844) );
CREATE TABLE test_line (id serial PRIMARY KEY, name text, geom geometry(Linestring, 3844) );
Add a point then save
Add a line starting from the point with snapping.
Error is:
Could not commit changes to layer test_line
Errors: ERROR: 1 feature(s) not added - geometry type is not compatible with the current layer.
![bug](https://user-images.githubusercontent.com/3179646/38490899-0786f694-3bf3-11e8-9fd3-73f82b7d981a.gif)
Basically, it creates a line with Z instead of simple one. Thus, trying to save fails.
@tudorbarascu Can you show the log panel with the error messages raised by PostGIS?
@haubourg Sure, updated comment. I thought I had already posted it above. My bad ;).
@tudorbarascu
I added a gif so that you can reproduce more easily.
Oh yes, indeed! Thanks for the GIF, I'm able to reproduce now! I take a look.
Trying to migrate to 3. On master, if I add the pipe layer the NOT NULL constraints of the fk_node_a
and node_b
columns propagate to the dialog thus disabling the OK
of the dialog. As these columns get filled by db triggers it's an impediment.
Is there a workaround?
Issue with workaround here: https://issues.qgis.org/issues/19671
Issue with workaround here: https://issues.qgis.org/issues/19671
@tudorbarascu I fail to find the fix or PR allowing the workaround in the upstream issue. Is the workaround already implemented?
@haubourg Sorry, from that issue you are taken to another etc. and then you see the solution. I updated the original issue with: A workaround would be to simply fill those specific columns with a default value, -1 let's say and it will let you pass while the database logic will change it to what's supposed to be.
@tudorbarascu Nice ! thanks for making it clearer !
@m-kuhn expressions having conditions on boolean for PG layers are broken. see qgis/QGIS@cfb8552 and its comment
quick dirty hack
sed -r "s/'t'/true/g; s/'f'/false/g" qwat.qgs > qwat_qgis3.qgs
On notepad++ CTRL+H replace 't' by true
Hi,
I propose to add here all the points which are problematic towards a migration to QGIS 3.0 (actual 2.99) from existing project to project in v 3.0.
Feel free to edit my post and add your points to this list.