Skip to content

Commit

Permalink
Bing user defined layer
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Jan 25, 2024
1 parent 1b302d4 commit 14bdec2
Show file tree
Hide file tree
Showing 2 changed files with 264 additions and 19 deletions.
223 changes: 219 additions & 4 deletions tests/qgis-projects/tests/base_layers_user_defined.qgs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<qgis projectname="" saveDateTime="2023-11-13T15:32:36" saveUser="nboisteault" saveUserFull="nboisteault" version="3.28.12-Firenze">
<qgis projectname="" saveDateTime="2024-01-25T12:00:22" saveUser="nboisteault" saveUserFull="nboisteault" version="3.28.15-Firenze">
<homePath path=""></homePath>
<title></title>
<transaction mode="Disabled"></transaction>
Expand Down Expand Up @@ -61,6 +61,11 @@
</Option>
</customproperties>
</layer-tree-layer>
<layer-tree-layer checked="Qt::Checked" expanded="1" id="Bing_Satellite_7755e045_210c_4a90_acf4_6f659827af53" legend_exp="" legend_split_behavior="0" name="Bing Satellite external" patch_size="-1,-1" providerKey="wms" source="type=xyz&amp;zmin=1&amp;zmax=18&amp;url=https://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g%3D0%26dir%3Ddir_n'">
<customproperties>
<Option></Option>
</customproperties>
</layer-tree-layer>
<layer-tree-group checked="Qt::Unchecked" expanded="0" groupLayer="" name="=== GROUPS ===">
<customproperties>
<Option type="Map">
Expand Down Expand Up @@ -196,15 +201,16 @@
<item>WMS_demo_lizmap_com_communes_1d5559c6_3210_42c0_b4ee_227d19588dc2</item>
<item>OpenStreetMap_3533874f_acee_499a_889a_dca4be39b8ba</item>
<item>polygons_bc568c03_fefb_4911_bd8e_0efe2d005dcc</item>
<item>Bing_Satellite_7755e045_210c_4a90_acf4_6f659827af53</item>
</custom-order>
</layer-tree-group>
<snapping-settings enabled="0" intersection-snapping="0" maxScale="0" minScale="0" mode="2" scaleDependencyMode="0" self-snapping="0" tolerance="12" type="1" unit="1">
<individual-layer-settings>
<layer-setting enabled="0" id="bakeries_b6a64974_7f5b_4c13_b411_e7ead03bd9fb" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
<layer-setting enabled="0" id="townhalls_EPSG2154_e6ad5c7f_9cb3_485e_9c44_ebd70fc8a48f" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
<layer-setting enabled="0" id="polygons_349974be_544e_4450_a66e_b2e3651fbde5" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
<layer-setting enabled="0" id="polygons_bc568c03_fefb_4911_bd8e_0efe2d005dcc" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
<layer-setting enabled="0" id="polygons_6c53e302_45e9_42a3_b2e7_60171f517d02" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
<layer-setting enabled="0" id="townhalls_EPSG2154_e6ad5c7f_9cb3_485e_9c44_ebd70fc8a48f" maxScale="0" minScale="0" tolerance="12" type="1" units="1"></layer-setting>
</individual-layer-settings>
</snapping-settings>
<relations></relations>
Expand Down Expand Up @@ -254,6 +260,11 @@
<legendlayerfile isInOverview="0" layerid="OpenStreetMap_3533874f_acee_499a_889a_dca4be39b8ba" visible="0"></legendlayerfile>
</filegroup>
</legendlayer>
<legendlayer checked="Qt::Checked" drawingOrder="-1" name="Bing Satellite external" open="true" showFeatureCount="0">
<filegroup hidden="false" open="true">
<legendlayerfile isInOverview="0" layerid="Bing_Satellite_7755e045_210c_4a90_acf4_6f659827af53" visible="1"></legendlayerfile>
</filegroup>
</legendlayer>
<legendgroup checked="Qt::Unchecked" name="=== GROUPS ===" open="false"></legendgroup>
<legendgroup checked="Qt::Unchecked" name="project-background-color" open="false"></legendgroup>
<legendgroup checked="Qt::Unchecked" name="empty group" open="false"></legendgroup>
Expand Down Expand Up @@ -364,6 +375,209 @@
<paintEffect></paintEffect>
</main-annotation-layer>
<projectlayers>
<maplayer autoRefreshEnabled="0" autoRefreshTime="0" hasScaleBasedVisibilityFlag="0" legendPlaceholderImage="" maxScale="0" minScale="1e+08" refreshOnNotifyEnabled="0" refreshOnNotifyMessage="" styleCategories="AllStyleCategories" type="raster">
<extent>
<xmin>-20037508.34278924390673637</xmin>
<ymin>-20037508.34278924763202667</ymin>
<xmax>20037508.34278924390673637</xmax>
<ymax>20037508.34278924763202667</ymax>
</extent>
<wgs84extent>
<xmin>-180</xmin>
<ymin>-85.05112877980660357</ymin>
<xmax>179.99999999999997158</xmax>
<ymax>85.05112877980660357</ymax>
</wgs84extent>
<id>Bing_Satellite_7755e045_210c_4a90_acf4_6f659827af53</id>
<datasource>type=xyz&amp;zmin=1&amp;zmax=18&amp;url=https://ecn.t3.tiles.virtualearth.net/tiles/a{q}.jpeg?g%3D0%26dir%3Ddir_n'</datasource>
<shortname>Bing_Satellite</shortname>
<keywordList>
<value></value>
</keywordList>
<layername>Bing Satellite external</layername>
<srs>
<spatialrefsys nativeFormat="Wkt">
<wkt>PROJCRS["WGS 84 / Pseudo-Mercator",BASEGEOGCRS["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]],ID["EPSG",4326]],CONVERSION["Popular Visualisation Pseudo-Mercator",METHOD["Popular Visualisation Pseudo Mercator",ID["EPSG",1024]],PARAMETER["Latitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8801]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Web mapping and visualisation."],AREA["World between 85.06°S and 85.06°N."],BBOX[-85.06,-180,85.06,180]],ID["EPSG",3857]]</wkt>
<proj4>+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs</proj4>
<srsid>3857</srsid>
<srid>3857</srid>
<authid>EPSG:3857</authid>
<description>WGS 84 / Pseudo-Mercator</description>
<projectionacronym>merc</projectionacronym>
<ellipsoidacronym>EPSG:7030</ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</srs>
<resourceMetadata>
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type>dataset</type>
<title></title>
<abstract></abstract>
<links></links>
<fees></fees>
<encoding></encoding>
<crs>
<spatialrefsys nativeFormat="Wkt">
<wkt></wkt>
<proj4></proj4>
<srsid>0</srsid>
<srid>0</srid>
<authid></authid>
<description></description>
<projectionacronym></projectionacronym>
<ellipsoidacronym></ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</crs>
<extent></extent>
</resourceMetadata>
<provider>wms</provider>
<noData>
<noDataList bandNo="1" useSrcNoData="0"></noDataList>
</noData>
<map-layer-style-manager current="défaut">
<map-layer-style name="défaut"></map-layer-style>
</map-layer-style-manager>
<metadataUrls></metadataUrls>
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
<Private>0</Private>
</flags>
<temporal enabled="0" fetchMode="0" mode="0">
<fixedRange>
<start></start>
<end></end>
</fixedRange>
</temporal>
<elevation band="1" enabled="0" symbology="Line" zoffset="0" zscale="1">
<data-defined-properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</data-defined-properties>
<profileLineSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="line">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</data_defined_properties>
<layer class="SimpleLine" enabled="1" locked="0" pass="0">
<Option type="Map">
<Option name="align_dash_pattern" type="QString" value="0"></Option>
<Option name="capstyle" type="QString" value="square"></Option>
<Option name="customdash" type="QString" value="5;2"></Option>
<Option name="customdash_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="customdash_unit" type="QString" value="MM"></Option>
<Option name="dash_pattern_offset" type="QString" value="0"></Option>
<Option name="dash_pattern_offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="dash_pattern_offset_unit" type="QString" value="MM"></Option>
<Option name="draw_inside_polygon" type="QString" value="0"></Option>
<Option name="joinstyle" type="QString" value="bevel"></Option>
<Option name="line_color" type="QString" value="229,182,54,255"></Option>
<Option name="line_style" type="QString" value="solid"></Option>
<Option name="line_width" type="QString" value="0.6"></Option>
<Option name="line_width_unit" type="QString" value="MM"></Option>
<Option name="offset" type="QString" value="0"></Option>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="offset_unit" type="QString" value="MM"></Option>
<Option name="ring_filter" type="QString" value="0"></Option>
<Option name="trim_distance_end" type="QString" value="0"></Option>
<Option name="trim_distance_end_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="trim_distance_end_unit" type="QString" value="MM"></Option>
<Option name="trim_distance_start" type="QString" value="0"></Option>
<Option name="trim_distance_start_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="trim_distance_start_unit" type="QString" value="MM"></Option>
<Option name="tweak_dash_pattern_on_corners" type="QString" value="0"></Option>
<Option name="use_custom_dash" type="QString" value="0"></Option>
<Option name="width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</data_defined_properties>
</layer>
</symbol>
</profileLineSymbol>
<profileFillSymbol>
<symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="fill">
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</data_defined_properties>
<layer class="SimpleFill" enabled="1" locked="0" pass="0">
<Option type="Map">
<Option name="border_width_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="color" type="QString" value="229,182,54,255"></Option>
<Option name="joinstyle" type="QString" value="bevel"></Option>
<Option name="offset" type="QString" value="0,0"></Option>
<Option name="offset_map_unit_scale" type="QString" value="3x:0,0,0,0,0,0"></Option>
<Option name="offset_unit" type="QString" value="MM"></Option>
<Option name="outline_color" type="QString" value="35,35,35,255"></Option>
<Option name="outline_style" type="QString" value="no"></Option>
<Option name="outline_width" type="QString" value="0.26"></Option>
<Option name="outline_width_unit" type="QString" value="MM"></Option>
<Option name="style" type="QString" value="solid"></Option>
</Option>
<data_defined_properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</data_defined_properties>
</layer>
</symbol>
</profileFillSymbol>
</elevation>
<customproperties>
<Option type="Map">
<Option name="identify/format" type="QString" value="Value"></Option>
</Option>
</customproperties>
<pipe-data-defined-properties>
<Option type="Map">
<Option name="name" type="QString" value=""></Option>
<Option name="properties"></Option>
<Option name="type" type="QString" value="collection"></Option>
</Option>
</pipe-data-defined-properties>
<pipe>
<provider>
<resampling enabled="false" maxOversampling="2" zoomedInResamplingMethod="nearestNeighbour" zoomedOutResamplingMethod="nearestNeighbour"></resampling>
</provider>
<rasterrenderer alphaBand="-1" band="1" nodataColor="" opacity="1" type="singlebandcolordata">
<rasterTransparency></rasterTransparency>
<minMaxOrigin>
<limits>None</limits>
<extent>WholeRaster</extent>
<statAccuracy>Estimated</statAccuracy>
<cumulativeCutLower>0.02</cumulativeCutLower>
<cumulativeCutUpper>0.98</cumulativeCutUpper>
<stdDevFactor>2</stdDevFactor>
</minMaxOrigin>
</rasterrenderer>
<brightnesscontrast brightness="0" contrast="0" gamma="1"></brightnesscontrast>
<huesaturation colorizeBlue="128" colorizeGreen="128" colorizeOn="0" colorizeRed="255" colorizeStrength="100" grayscaleMode="0" invertColors="0" saturation="0"></huesaturation>
<rasterresampler maxOversampling="2"></rasterresampler>
<resamplingStage>resamplingFilter</resamplingStage>
</pipe>
<blendMode>0</blendMode>
</maplayer>
<maplayer autoRefreshEnabled="0" autoRefreshTime="0" hasScaleBasedVisibilityFlag="0" legendPlaceholderImage="" maxScale="0" minScale="1e+08" refreshOnNotifyEnabled="0" refreshOnNotifyMessage="" styleCategories="AllStyleCategories" type="raster">
<extent>
<xmin>423695.45161758514586836</xmin>
Expand Down Expand Up @@ -4633,6 +4847,7 @@ def my_form_open(dialog, layer, feature):
<layer id="WMS_demo_lizmap_com_communes_1d5559c6_3210_42c0_b4ee_227d19588dc2"></layer>
<layer id="OpenStreetMap_3533874f_acee_499a_889a_dca4be39b8ba"></layer>
<layer id="polygons_bc568c03_fefb_4911_bd8e_0efe2d005dcc"></layer>
<layer id="Bing_Satellite_7755e045_210c_4a90_acf4_6f659827af53"></layer>
</layerorder>
<properties>
<Digitizing>
Expand Down Expand Up @@ -4700,7 +4915,7 @@ def my_form_open(dialog, layer, feature):
<value>lizmap_user_groups</value>
</variableNames>
<variableValues type="QStringList">
<value>intranet</value>
<value>testsrepository</value>
<value></value>
<value></value>
</variableValues>
Expand Down Expand Up @@ -4815,7 +5030,7 @@ def my_form_open(dialog, layer, feature):
<Bookmarks></Bookmarks>
<ProjectViewSettings UseProjectScales="0" rotation="0">
<Scales></Scales>
<DefaultViewExtent xmax="595959.2369582784594968" xmin="295048.25652468379121274" ymax="5554217.30874627642333508" ymin="5320220.77006333880126476">
<DefaultViewExtent xmax="639356.74658149131573737" xmin="251650.74690147093497217" ymax="5554217.30874627642333508" ymin="5320220.77006333880126476">
<spatialrefsys nativeFormat="Wkt">
<wkt>PROJCRS["WGS 84 / Pseudo-Mercator",BASEGEOGCRS["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]],ID["EPSG",4326]],CONVERSION["Popular Visualisation Pseudo-Mercator",METHOD["Popular Visualisation Pseudo Mercator",ID["EPSG",1024]],PARAMETER["Latitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8801]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting (X)",east,ORDER[1],LENGTHUNIT["metre",1]],AXIS["northing (Y)",north,ORDER[2],LENGTHUNIT["metre",1]],USAGE[SCOPE["Web mapping and visualisation."],AREA["World between 85.06°S and 85.06°N."],BBOX[-85.06,-180,85.06,180]],ID["EPSG",3857]]</wkt>
<proj4>+proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs</proj4>
Expand Down
Loading

0 comments on commit 14bdec2

Please sign in to comment.