diff --git a/tests/qgis-projects/tests/filter_layer_by_user.qgs b/tests/qgis-projects/tests/filter_layer_by_user.qgs index 9733c54bca..39fda2075d 100644 --- a/tests/qgis-projects/tests/filter_layer_by_user.qgs +++ b/tests/qgis-projects/tests/filter_layer_by_user.qgs @@ -1,11 +1,10 @@ - + - - - + + - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -45,8 +44,8 @@ - + @@ -61,7 +60,7 @@ 0 - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -95,7 +94,6 @@ - Annotations_1b82beaa_5a0a_445e_b2ad_d7288106e20f @@ -104,7 +102,7 @@ - + 0 @@ -127,7 +125,7 @@ - + 0 @@ -168,7 +166,7 @@ blue_filter_layer_by_user - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -200,7 +198,7 @@ - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -244,9 +242,141 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -276,25 +406,6 @@ - - - - - - - - - - - - - - - - - - - @@ -310,12 +421,12 @@ - + - + @@ -345,25 +456,6 @@ - - - - - - - - - - - - - - - - - - - @@ -373,7 +465,7 @@ - + @@ -395,17 +487,6 @@ - - - - - - - - - - - @@ -427,8 +508,8 @@ - - + + @@ -448,7 +529,7 @@ - + @@ -464,7 +545,9 @@ + + @@ -475,10 +558,10 @@ 1 - + - + @@ -516,33 +599,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -620,7 +676,7 @@ - + @@ -663,7 +719,11 @@ def my_form_open(dialog, layer, feature): - + + + + + "gid" @@ -690,7 +750,7 @@ def my_form_open(dialog, layer, feature): green_filter_layer_by_user_edition_only - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -722,7 +782,7 @@ def my_form_open(dialog, layer, feature): - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -766,9 +826,141 @@ def my_form_open(dialog, layer, feature): + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -798,25 +990,6 @@ def my_form_open(dialog, layer, feature): - - - - - - - - - - - - - - - - - - - @@ -832,12 +1005,12 @@ def my_form_open(dialog, layer, feature): - + - + @@ -867,25 +1040,6 @@ def my_form_open(dialog, layer, feature): - - - - - - - - - - - - - - - - - - - @@ -895,7 +1049,7 @@ def my_form_open(dialog, layer, feature): - + @@ -917,17 +1071,6 @@ def my_form_open(dialog, layer, feature): - - - - - - - - - - - @@ -949,8 +1092,8 @@ def my_form_open(dialog, layer, feature): - - + + @@ -970,7 +1113,7 @@ def my_form_open(dialog, layer, feature): - + @@ -986,6 +1129,9 @@ def my_form_open(dialog, layer, feature): + @@ -996,10 +1142,10 @@ def my_form_open(dialog, layer, feature): 1 - + - + @@ -1037,33 +1183,6 @@ def my_form_open(dialog, layer, feature): - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1141,7 +1260,7 @@ def my_form_open(dialog, layer, feature): - + @@ -1211,7 +1330,7 @@ def my_form_open(dialog, layer, feature): red_layer_with_no_filter - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -1234,7 +1353,7 @@ def my_form_open(dialog, layer, feature): - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -1270,9 +1389,141 @@ def my_form_open(dialog, layer, feature): + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -1302,25 +1553,6 @@ def my_form_open(dialog, layer, feature): - - - - - - - - - - - - - - - - - - - @@ -1335,7 +1567,11 @@ def my_form_open(dialog, layer, feature): - + + + 0 0 @@ -1374,7 +1610,10 @@ def my_form_open(dialog, layer, feature): - + + + + @@ -1393,7 +1632,7 @@ def my_form_open(dialog, layer, feature): - + "gid" @@ -1403,14 +1642,7 @@ def my_form_open(dialog, layer, feature): - - - - - - 1 - true - + 2 @@ -1470,7 +1702,7 @@ def my_form_open(dialog, layer, feature): lizmap_user_groups - intranet + testsrepository @@ -1558,7 +1790,7 @@ def my_form_open(dialog, layer, feature): - + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -1571,7 +1803,7 @@ def my_form_open(dialog, layer, feature): - + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] +proj=longlat +datum=WGS84 +no_defs 3452 @@ -1607,11 +1839,12 @@ def my_form_open(dialog, layer, feature): + - - + + PROJCRS["RGF93 v1 / Lambert-93",BASEGEOGCRS["RGF93 v1",DATUM["Reseau Geodesique Francais 1993 v1",ELLIPSOID["GRS 1980",6378137,298.257222101,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4171]],CONVERSION["Lambert-93",METHOD["Lambert Conic Conformal (2SP)",ID["EPSG",9802]],PARAMETER["Latitude of false origin",46.5,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8821]],PARAMETER["Longitude of false origin",3,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8822]],PARAMETER["Latitude of 1st standard parallel",49,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Latitude of 2nd standard parallel",44,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8824]],PARAMETER["Easting at false origin",700000,LENGTHUNIT["metre",1],ID["EPSG",8826]],PARAMETER["Northing at false origin",6600000,LENGTHUNIT["metre",1],ID["EPSG",8827]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Engineering survey, topographic mapping."],AREA["France - onshore and offshore, mainland and Corsica."],BBOX[41.15,-9.86,51.56,10.38]],ID["EPSG",2154]] +proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs 145 @@ -1624,19 +1857,55 @@ def my_form_open(dialog, layer, feature): + + + - + + + + + + + - + + + + + + + + + + + + + + + + + + GEOGCRS["WGS 84",ENSEMBLE["World Geodetic System 1984 ensemble",MEMBER["World Geodetic System 1984 (Transit)"],MEMBER["World Geodetic System 1984 (G730)"],MEMBER["World Geodetic System 1984 (G873)"],MEMBER["World Geodetic System 1984 (G1150)"],MEMBER["World Geodetic System 1984 (G1674)"],MEMBER["World Geodetic System 1984 (G1762)"],MEMBER["World Geodetic System 1984 (G2139)"],ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]],ENSEMBLEACCURACY[2.0]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],USAGE[SCOPE["Horizontal component of 3D system."],AREA["World."],BBOX[-90,-180,90,180]],ID["EPSG",4326]] + +proj=longlat +datum=WGS84 +no_defs + 3452 + 4326 + EPSG:4326 + WGS 84 + longlat + EPSG:7030 + true + + - + \ No newline at end of file diff --git a/tests/qgis-projects/tests/filter_layer_by_user.qgs.cfg b/tests/qgis-projects/tests/filter_layer_by_user.qgs.cfg index fafa4f2243..3b6fbf3279 100644 --- a/tests/qgis-projects/tests/filter_layer_by_user.qgs.cfg +++ b/tests/qgis-projects/tests/filter_layer_by_user.qgs.cfg @@ -1,15 +1,17 @@ { "metadata": { - "qgis_desktop_version": 32216, - "lizmap_plugin_version_str": "3.14.3-alpha", - "lizmap_plugin_version": 31403, - "lizmap_web_client_target_version": 30700, + "qgis_desktop_version": 32815, + "lizmap_plugin_version_str": "4.3.18-alpha", + "lizmap_plugin_version": 40318, + "lizmap_web_client_target_version": 30900, "lizmap_web_client_target_status": "Dev", "instance_target_url": "http://localhost:8130/", - "instance_target_repository": "intranet", - "project_valid": true + "instance_target_repository": "testsrepository" + }, + "warnings": {}, + "debug": { + "total_time": 0.379 }, - "warnings": [], "options": { "projection": { "proj4": "+proj=lcc +lat_0=46.5 +lon_0=3 +lat_1=49 +lat_2=44 +x_0=700000 +y_0=6600000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs", @@ -33,11 +35,13 @@ ], "minScale": 10000, "maxScale": 2000000, + "use_native_zoom_levels": false, + "hide_numeric_scale_value": false, "initialExtent": [ - -492657.5601093583, - 698659.0419671754, - 609116.6044059563, - 1329107.5127044579 + -492657.5601, + 698659.042, + 609116.6044, + 1329107.5127 ], "popupLocation": "dock", "pointTolerance": 25, diff --git a/tests/qgis-projects/tests/set_tests_respository_rights.sql b/tests/qgis-projects/tests/set_tests_respository_rights.sql index be17ce4360..3d0f7ee40a 100644 --- a/tests/qgis-projects/tests/set_tests_respository_rights.sql +++ b/tests/qgis-projects/tests/set_tests_respository_rights.sql @@ -5,6 +5,8 @@ INSERT INTO lizmap.jacl2_group( id_aclgrp, name, grouptype, ownerlogin) VALUES ('group_a', 'group_a', 0, null), ('__priv_user_in_group_a', 'user_in_group_a', 2, 'user_in_group_a'), + ('group_b', 'group_b', 0, null), + ('__priv_user_in_group_b', 'user_in_group_b', 2, 'user_in_group_b'), ('__priv_publisher', 'publisher', 2, 'publisher') ON CONFLICT DO NOTHING ; @@ -14,6 +16,7 @@ INSERT INTO lizmap.jlx_user( usr_login, usr_email, usr_password, status, create_date) VALUES ('user_in_group_a', 'user_in_group_a@nomail.nomail', '$2y$10$d2KZfxeYJP0l3YbNyDMZYe2vGSA3JWa8kFJSdecmSEIqInjnunTJ.', 1, NOW()), + ('user_in_group_b', 'user_in_group_b@nomail.nomail', '$2y$10$d2KZfxeYJP0l3YbNyDMZYe2vGSA3JWa8kFJSdecmSEIqInjnunTJ.', 1, NOW()), ('publisher', 'publisher@nomail.nomail', '$2y$10$d2KZfxeYJP0l3YbNyDMZYe2vGSA3JWa8kFJSdecmSEIqInjnunTJ.', 1, NOW()) ON CONFLICT DO NOTHING ; @@ -24,6 +27,9 @@ INSERT INTO lizmap.jacl2_user_group( VALUES ('user_in_group_a', 'group_a'), ('user_in_group_a', '__priv_user_in_group_a'), ('user_in_group_a', 'users'), + ('user_in_group_b', 'group_b'), + ('user_in_group_b', '__priv_user_in_group_b'), + ('user_in_group_b', 'users'), ('publisher', '__priv_publisher'), ('publisher', 'users'), ('publisher', 'publishers') @@ -54,6 +60,11 @@ VALUES ('lizmap.repositories.view', 'group_a', 'testsrepository', 0), ('lizmap.tools.displayGetCapabilitiesLinks', 'group_a', 'testsrepository', 0), ('lizmap.tools.edition.use', 'group_a', 'testsrepository', 0), -('lizmap.tools.layer.export', 'group_a', 'testsrepository', 0) +('lizmap.tools.layer.export', 'group_a', 'testsrepository', 0), +-- ...for users in group_b group +('lizmap.repositories.view', 'group_b', 'testsrepository', 0), +('lizmap.tools.displayGetCapabilitiesLinks', 'group_b', 'testsrepository', 0), +('lizmap.tools.edition.use', 'group_b', 'testsrepository', 0), +('lizmap.tools.layer.export', 'group_b', 'testsrepository', 0) ON CONFLICT DO NOTHING ; diff --git a/tests/qgis-projects/tests/tests_dataset.sql b/tests/qgis-projects/tests/tests_dataset.sql index 16f60f4a49..31bb33cc42 100644 --- a/tests/qgis-projects/tests/tests_dataset.sql +++ b/tests/qgis-projects/tests/tests_dataset.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 14.11 (Debian 14.11-1.pgdg110+2) --- Dumped by pg_dump version 14.11 (Ubuntu 14.11-0ubuntu0.22.04.1) +-- Dumped by pg_dump version 14.12 (Ubuntu 14.12-0ubuntu0.22.04.1) SET statement_timeout = 0; SET lock_timeout = 0; @@ -404,6 +404,38 @@ CREATE SEQUENCE tests_projects.dnd_popup_id_seq ALTER SEQUENCE tests_projects.dnd_popup_id_seq OWNED BY tests_projects.dnd_popup.id; +-- +-- Name: double_geom; Type: TABLE; Schema: tests_projects; Owner: - +-- + +CREATE TABLE tests_projects.double_geom ( + id integer NOT NULL, + title text, + geom public.geometry(Polygon,4326), + geom_d public.geometry(Polygon,4326) +); + + +-- +-- Name: double_geom_id_seq; Type: SEQUENCE; Schema: tests_projects; Owner: - +-- + +CREATE SEQUENCE tests_projects.double_geom_id_seq + AS integer + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- Name: double_geom_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - +-- + +ALTER SEQUENCE tests_projects.double_geom_id_seq OWNED BY tests_projects.double_geom.id; + + -- -- Name: edition_layer_embed_child; Type: TABLE; Schema: tests_projects; Owner: - -- @@ -2319,51 +2351,23 @@ ALTER SEQUENCE tests_projects.tramway_stops_id_stop_seq OWNED BY tests_projects. -- --- Name: xss; Type: TABLE; Schema: tests_projects; Owner: - --- - -CREATE TABLE tests_projects.xss ( - id integer NOT NULL, - geom public.geometry(Point,2154), - description text -); - - --- --- Name: xss_id_seq; Type: SEQUENCE; Schema: tests_projects; Owner: - --- - -CREATE SEQUENCE tests_projects.xss_id_seq - AS integer - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: xss_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - --- - -ALTER SEQUENCE tests_projects.xss_id_seq OWNED BY tests_projects.xss.id; - --- --- Name: double_geom; Type: TABLE; Schema: tests_projects; Owner: - +-- Name: triple_geom; Type: TABLE; Schema: tests_projects; Owner: - -- -CREATE TABLE tests_projects.double_geom ( +CREATE TABLE tests_projects.triple_geom ( id integer NOT NULL, title text, - geom public.geometry(Polygon,4326), - geom_d public.geometry(Polygon,4326) + geom public.geometry(Point,4326), + geom_l public.geometry(LineString,4326), + geom_p public.geometry(Polygon,4326) ); + -- --- Name: double_geom; Type: SEQUENCE; Schema: tests_projects; Owner: - +-- Name: triple_geom_id_seq; Type: SEQUENCE; Schema: tests_projects; Owner: - -- -CREATE SEQUENCE tests_projects.double_geom_id_seq +CREATE SEQUENCE tests_projects.triple_geom_id_seq AS integer START WITH 1 INCREMENT BY 1 @@ -2373,30 +2377,28 @@ CREATE SEQUENCE tests_projects.double_geom_id_seq -- --- Name: double_geom_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - +-- Name: triple_geom_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - -- -ALTER SEQUENCE tests_projects.double_geom_id_seq OWNED BY tests_projects.double_geom.id; +ALTER SEQUENCE tests_projects.triple_geom_id_seq OWNED BY tests_projects.triple_geom.id; -- --- Name: triple_geom; Type: TABLE; Schema: tests_projects; Owner: - +-- Name: xss; Type: TABLE; Schema: tests_projects; Owner: - -- -CREATE TABLE tests_projects.triple_geom ( +CREATE TABLE tests_projects.xss ( id integer NOT NULL, - title text, - geom public.geometry(Point,4326), - geom_l public.geometry(LineString,4326), - geom_p public.geometry(Polygon,4326) - + geom public.geometry(Point,2154), + description text ); + -- --- Name: triple_geom Type: SEQUENCE; Schema: tests_projects; Owner: - +-- Name: xss_id_seq; Type: SEQUENCE; Schema: tests_projects; Owner: - -- -CREATE SEQUENCE tests_projects.triple_geom_id_seq +CREATE SEQUENCE tests_projects.xss_id_seq AS integer START WITH 1 INCREMENT BY 1 @@ -2406,10 +2408,10 @@ CREATE SEQUENCE tests_projects.triple_geom_id_seq -- --- Name: triple_geom_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - +-- Name: xss_id_seq; Type: SEQUENCE OWNED BY; Schema: tests_projects; Owner: - -- -ALTER SEQUENCE tests_projects.triple_geom_id_seq OWNED BY tests_projects.triple_geom.id; +ALTER SEQUENCE tests_projects.xss_id_seq OWNED BY tests_projects.xss.id; -- @@ -2489,6 +2491,13 @@ ALTER TABLE ONLY tests_projects.dnd_form_geom ALTER COLUMN id SET DEFAULT nextva ALTER TABLE ONLY tests_projects.dnd_popup ALTER COLUMN id SET DEFAULT nextval('tests_projects.dnd_popup_id_seq'::regclass); +-- +-- Name: double_geom id; Type: DEFAULT; Schema: tests_projects; Owner: - +-- + +ALTER TABLE ONLY tests_projects.double_geom ALTER COLUMN id SET DEFAULT nextval('tests_projects.double_geom_id_seq'::regclass); + + -- -- Name: edition_layer_embed_child id; Type: DEFAULT; Schema: tests_projects; Owner: - -- @@ -2903,22 +2912,18 @@ ALTER TABLE ONLY tests_projects.tramway_stops ALTER COLUMN id_stop SET DEFAULT n -- --- Name: xss id; Type: DEFAULT; Schema: tests_projects; Owner: - +-- Name: triple_geom id; Type: DEFAULT; Schema: tests_projects; Owner: - -- -ALTER TABLE ONLY tests_projects.xss ALTER COLUMN id SET DEFAULT nextval('tests_projects.xss_id_seq'::regclass); - --- --- Name: double_geom id; Type: DEFAULT; Schema: tests_projects; Owner: - --- +ALTER TABLE ONLY tests_projects.triple_geom ALTER COLUMN id SET DEFAULT nextval('tests_projects.triple_geom_id_seq'::regclass); -ALTER TABLE ONLY tests_projects.double_geom ALTER COLUMN id SET DEFAULT nextval('tests_projects.double_geom_id_seq'::regclass); -- --- Name: triple_geom id; Type: DEFAULT; Schema: tests_projects; Owner: - +-- Name: xss id; Type: DEFAULT; Schema: tests_projects; Owner: - -- -ALTER TABLE ONLY tests_projects.triple_geom ALTER COLUMN id SET DEFAULT nextval('tests_projects.triple_geom_id_seq'::regclass); +ALTER TABLE ONLY tests_projects.xss ALTER COLUMN id SET DEFAULT nextval('tests_projects.xss_id_seq'::regclass); + -- -- Data for Name: attribute_table; Type: TABLE DATA; Schema: tests_projects; Owner: - @@ -3065,6 +3070,15 @@ COPY tests_projects.dnd_popup (id, field_tab1, field_tab2, geom) FROM stdin; \. +-- +-- Data for Name: double_geom; Type: TABLE DATA; Schema: tests_projects; Owner: - +-- + +COPY tests_projects.double_geom (id, title, geom, geom_d) FROM stdin; +1 F2 0103000020E610000001000000060000005520F9393F8E0E4043232852C1CD454091126D1728C40E4049F9C8EAF5CB454015E1134ED2540E40190EB02B2ECC454015E1134ED2540E40190EB02B2ECC454089C25720B0490E402CE5037573CE45405520F9393F8E0E4043232852C1CD4540 0103000020E61000000100000007000000879AE9F0C7BA0E4030327583F7D1454067325F7DA79E0E404EB50AFEA5D04540FA7B2DC3A5AF0E40CC0ED2F6E3CE45408E34CC0DD0C10E40F5B479184BCF45408E34CC0DD0C10E40F5B479184BCF4540BC614BB6D4EA0E40BE84EFBB22D04540879AE9F0C7BA0E4030327583F7D14540 +\. + + -- -- Data for Name: edition_layer_embed_child; Type: TABLE DATA; Schema: tests_projects; Owner: - -- @@ -3119,8 +3133,8 @@ COPY tests_projects.end2end_form_edition_geom (id, value, geom) FROM stdin; COPY tests_projects.filter_layer_by_user (gid, "user", "group", geom) FROM stdin; 1 admin \N 01010000206A08000000E08B6EAA0E744090DC4977C6372F41 -2 user_in_group_a \N 01010000206A08000084D3086E0FDFF3404A2C05E482472F41 3 \N \N 01010000206A08000028B76AD632CBE540B5C59180B9102E41 +2 user_in_group_a,user_in_group_b \N 01010000206A08000084D3086E0FDFF3404A2C05E482472F41 \. @@ -3731,25 +3745,20 @@ COPY tests_projects.tramway_stops (id_stop, geom) FROM stdin; -- --- Data for Name: xss; Type: TABLE DATA; Schema: tests_projects; Owner: - +-- Data for Name: triple_geom; Type: TABLE DATA; Schema: tests_projects; Owner: - -- -COPY tests_projects.xss (id, geom, description) FROM stdin; -1 01010000206A0800000D9D9921FD822741B3C56B7B4DF45741 +COPY tests_projects.triple_geom (id, title, geom, geom_l, geom_p) FROM stdin; +1 P2 0101000020E61000009BAFF31C24420F40B0F20C103ECD4540 0102000020E610000003000000F831609D15230F40B6C8ADA872CB45400D2267EAD5350F40CA0ED2F6E3CE4540CD98B4D8D86F0F40013F5C530CCE4540 0103000020E610000001000000040000008CEAFEE73F350F40CE5B430568D2454027CEAF4A464D0F40F4234A1D77D045405E04E2147F7E0F402E327583F7D145408CEAFEE73F350F40CE5B430568D24540 \. --- --- Data for Name: double_geom; Type: TABLE DATA; Schema: tests_projects; Owner: - --- -COPY tests_projects.double_geom (id, title, geom, geom_d) FROM stdin; -1 F2 010300000001000000060000005520F9393F8E0E4043232852C1CD454091126D1728C40E4049F9C8EAF5CB454015E1134ED2540E40190EB02B2ECC454015E1134ED2540E40190EB02B2ECC454089C25720B0490E402CE5037573CE45405520F9393F8E0E4043232852C1CD4540 01030000000100000007000000879AE9F0C7BA0E4030327583F7D1454067325F7DA79E0E404EB50AFEA5D04540FA7B2DC3A5AF0E40CC0ED2F6E3CE45408E34CC0DD0C10E40F5B479184BCF45408E34CC0DD0C10E40F5B479184BCF4540BC614BB6D4EA0E40BE84EFBB22D04540879AE9F0C7BA0E4030327583F7D14540 -\. -- --- Data for Name: triple_geom; Type: TABLE DATA; Schema: tests_projects; Owner: - +-- Data for Name: xss; Type: TABLE DATA; Schema: tests_projects; Owner: - -- -COPY tests_projects.triple_geom (id, title, geom, geom_l, geom_p) FROM stdin; -1 P2 01010000009BAFF31C24420F40B0F20C103ECD4540 010200000003000000F831609D15230F40B6C8ADA872CB45400D2267EAD5350F40CA0ED2F6E3CE4540CD98B4D8D86F0F40013F5C530CCE4540 010300000001000000040000008CEAFEE73F350F40CE5B430568D2454027CEAF4A464D0F40F4234A1D77D045405E04E2147F7E0F402E327583F7D145408CEAFEE73F350F40CE5B430568D24540 + +COPY tests_projects.xss (id, geom, description) FROM stdin; +1 01010000206A0800000D9D9921FD822741B3C56B7B4DF45741 \. @@ -3830,6 +3839,13 @@ SELECT pg_catalog.setval('tests_projects.dnd_form_id_seq', 1, true); SELECT pg_catalog.setval('tests_projects.dnd_popup_id_seq', 2, true); +-- +-- Name: double_geom_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - +-- + +SELECT pg_catalog.setval('tests_projects.double_geom_id_seq', 1, true); + + -- -- Name: edition_layer_embed_child_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - -- @@ -4258,23 +4274,17 @@ SELECT pg_catalog.setval('tests_projects.tramway_stops_id_stop_seq', 5, true); -- --- Name: xss_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - +-- Name: triple_geom_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - -- -SELECT pg_catalog.setval('tests_projects.xss_id_seq', 1, true); - --- --- Name: double_geom_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - --- +SELECT pg_catalog.setval('tests_projects.triple_geom_id_seq', 1, true); -SELECT pg_catalog.setval('tests_projects.double_geom_id_seq', 1, true); -- --- Name: triple_geom_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - +-- Name: xss_id_seq; Type: SEQUENCE SET; Schema: tests_projects; Owner: - -- -SELECT pg_catalog.setval('tests_projects.triple_geom_id_seq', 1, true); - +SELECT pg_catalog.setval('tests_projects.xss_id_seq', 1, true); -- @@ -4365,6 +4375,14 @@ ALTER TABLE ONLY tests_projects.dnd_popup ADD CONSTRAINT dnd_popup_pkey PRIMARY KEY (id); +-- +-- Name: double_geom double_geom_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - +-- + +ALTER TABLE ONLY tests_projects.double_geom + ADD CONSTRAINT double_geom_pkey PRIMARY KEY (id); + + -- -- Name: edition_layer_embed_child edition_layer_embed_child_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - -- @@ -4878,27 +4896,19 @@ ALTER TABLE ONLY tests_projects.tramway_stops -- --- Name: xss xss_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - +-- Name: triple_geom triple_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - -- -ALTER TABLE ONLY tests_projects.xss - ADD CONSTRAINT xss_pkey PRIMARY KEY (id); - - --- --- Name: double_geom double_geom_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - --- - -ALTER TABLE ONLY tests_projects.double_geom - ADD CONSTRAINT double_geom_pkey PRIMARY KEY (id); +ALTER TABLE ONLY tests_projects.triple_geom + ADD CONSTRAINT triple_pkey PRIMARY KEY (id); -- --- Name: triple_geom triple_geom_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - +-- Name: xss xss_pkey; Type: CONSTRAINT; Schema: tests_projects; Owner: - -- -ALTER TABLE ONLY tests_projects.triple_geom - ADD CONSTRAINT triple_pkey PRIMARY KEY (id); +ALTER TABLE ONLY tests_projects.xss + ADD CONSTRAINT xss_pkey PRIMARY KEY (id); -- @@ -4976,3 +4986,4 @@ ALTER TABLE ONLY tests_projects.tramway_pivot -- -- PostgreSQL database dump complete -- +