QGIS/tests/testdata/layouts/scalebar_old_datadefined.qgs
Nyall Dawson 9378dcd73f [FEATURE][layouts] Allow scalebar line style to be set using
standard QGIS line symbols

Instead of the previous settings of scalebar line color/width/cap styles,
we now expose the option as a full line symbol for more advanced styling

Also some code cleanups

Sponsored by SLYR
2020-03-22 16:41:31 +10:00

289 lines
16 KiB
Plaintext

<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
<qgis version="3.13.0-Master" saveUserFull="Nyall Dawson" projectname="" saveUser="nyall">
<homePath path=""/>
<title></title>
<autotransaction active="0"/>
<evaluateDefaultValues active="0"/>
<trust active="0"/>
<projectCrs>
<spatialrefsys>
<wkt>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]</wkt>
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
<srsid>3452</srsid>
<srid>4326</srid>
<authid>EPSG:4326</authid>
<description>WGS 84</description>
<projectionacronym>longlat</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>true</geographicflag>
</spatialrefsys>
</projectCrs>
<layer-tree-group>
<customproperties/>
<custom-order enabled="0"/>
</layer-tree-group>
<snapping-settings enabled="0" mode="2" tolerance="12" intersection-snapping="0" type="1" unit="1">
<individual-layer-settings/>
</snapping-settings>
<relations/>
<mapcanvas annotationsVisible="1" name="theMapCanvas">
<units>degrees</units>
<extent>
<xmin>-1</xmin>
<ymin>-1</ymin>
<xmax>1</xmax>
<ymax>1</ymax>
</extent>
<rotation>0</rotation>
<destinationsrs>
<spatialrefsys>
<wkt>GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]</wkt>
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
<srsid>3452</srsid>
<srid>4326</srid>
<authid>EPSG:4326</authid>
<description>WGS 84</description>
<projectionacronym>longlat</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>true</geographicflag>
</spatialrefsys>
</destinationsrs>
<rendermaptile>0</rendermaptile>
<expressionContextScope/>
</mapcanvas>
<projectModels/>
<legend updateDrawingOrder="true"/>
<mapViewDocks/>
<mapViewDocks3D/>
<projectlayers/>
<layerorder/>
<properties>
<Gui>
<CanvasColorBluePart type="int">255</CanvasColorBluePart>
<CanvasColorGreenPart type="int">255</CanvasColorGreenPart>
<CanvasColorRedPart type="int">255</CanvasColorRedPart>
<SelectionColorAlphaPart type="int">255</SelectionColorAlphaPart>
<SelectionColorBluePart type="int">0</SelectionColorBluePart>
<SelectionColorGreenPart type="int">255</SelectionColorGreenPart>
<SelectionColorRedPart type="int">255</SelectionColorRedPart>
</Gui>
<Legend>
<filterByMap type="bool">false</filterByMap>
</Legend>
<Measure>
<Ellipsoid type="QString">WGS84</Ellipsoid>
</Measure>
<Measurement>
<AreaUnits type="QString">m2</AreaUnits>
<DistanceUnits type="QString">meters</DistanceUnits>
</Measurement>
<PAL>
<CandidatesLinePerCM type="double">5</CandidatesLinePerCM>
<CandidatesPolygonPerCM type="double">2.5</CandidatesPolygonPerCM>
<DrawRectOnly type="bool">false</DrawRectOnly>
<DrawUnplaced type="bool">false</DrawUnplaced>
<PlacementEngineVersion type="int">1</PlacementEngineVersion>
<SearchMethod type="int">0</SearchMethod>
<ShowingAllLabels type="bool">false</ShowingAllLabels>
<ShowingCandidates type="bool">false</ShowingCandidates>
<ShowingPartialsLabels type="bool">true</ShowingPartialsLabels>
<TextFormat type="int">0</TextFormat>
<UnplacedColor type="QString">255,0,0,255</UnplacedColor>
</PAL>
<Paths>
<Absolute type="bool">false</Absolute>
</Paths>
<PositionPrecision>
<Automatic type="bool">true</Automatic>
<DecimalPlaces type="int">2</DecimalPlaces>
</PositionPrecision>
<SpatialRefSys>
<ProjectionsEnabled type="int">1</ProjectionsEnabled>
</SpatialRefSys>
</properties>
<visibility-presets/>
<transformContext/>
<projectMetadata>
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type></type>
<title></title>
<abstract></abstract>
<links/>
<author>Nyall Dawson</author>
<creation>2020-03-21T15:09:09</creation>
</projectMetadata>
<Annotations/>
<Layouts>
<Layout printResolution="300" units="mm" worldFileMap="{241afb9a-7e23-45d6-b891-ecee3a85410f}" name="Layout 1">
<Snapper snapToGuides="1" snapToGrid="0" tolerance="5" snapToItems="1"/>
<Grid resolution="10" offsetUnits="mm" resUnits="mm" offsetY="0" offsetX="0"/>
<PageCollection>
<symbol clip_to_extent="1" force_rhr="0" alpha="1" type="fill" name="">
<layer class="SimpleFill" enabled="1" locked="0" pass="0">
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/>
<prop v="255,255,255,255" k="color"/>
<prop v="miter" k="joinstyle"/>
<prop v="0,0" k="offset"/>
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/>
<prop v="MM" k="offset_unit"/>
<prop v="35,35,35,255" k="outline_color"/>
<prop v="no" k="outline_style"/>
<prop v="0.26" k="outline_width"/>
<prop v="MM" k="outline_width_unit"/>
<prop v="solid" k="style"/>
<data_defined_properties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option name="properties"/>
<Option value="collection" type="QString" name="type"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
<LayoutItem templateUuid="{cced865e-5874-4668-9d66-a5ccb1153390}" itemRotation="0" id="" opacity="1" type="65638" frameJoinStyle="miter" position="0,0,mm" background="true" positionLock="false" uuid="{cced865e-5874-4668-9d66-a5ccb1153390}" excludeFromExports="0" outlineWidthM="0.3,mm" blendMode="0" zValue="0" size="297,210,mm" visibility="1" referencePoint="0" frame="false" positionOnPage="0,0,mm" groupUuid="">
<FrameColor alpha="255" green="0" red="0" blue="0"/>
<BackgroundColor alpha="255" green="255" red="255" blue="255"/>
<LayoutObject>
<dataDefinedProperties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option name="properties"/>
<Option value="collection" type="QString" name="type"/>
</Option>
</dataDefinedProperties>
<customproperties/>
</LayoutObject>
<symbol clip_to_extent="1" force_rhr="0" alpha="1" type="fill" name="">
<layer class="SimpleFill" enabled="1" locked="0" pass="0">
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/>
<prop v="255,255,255,255" k="color"/>
<prop v="miter" k="joinstyle"/>
<prop v="0,0" k="offset"/>
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/>
<prop v="MM" k="offset_unit"/>
<prop v="35,35,35,255" k="outline_color"/>
<prop v="no" k="outline_style"/>
<prop v="0.26" k="outline_width"/>
<prop v="MM" k="outline_width_unit"/>
<prop v="solid" k="style"/>
<data_defined_properties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option name="properties"/>
<Option value="collection" type="QString" name="type"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</LayoutItem>
<GuideCollection visible="1"/>
</PageCollection>
<LayoutItem templateUuid="{1f1cb11f-7072-4733-a168-2970fb7f2351}" type="65646" blendMode="0" outlineWidthM="0.3,mm" unitLabel="km" groupUuid="" mapUuid="{241afb9a-7e23-45d6-b891-ecee3a85410f}" numUnitsPerSegment="200" labelBarSpace="3" labelVerticalPlacement="0" uuid="{1f1cb11f-7072-4733-a168-2970fb7f2351}" style="Single Box" lineJoinStyle="miter" labelHorizontalPlacement="0" positionLock="false" itemRotation="0" frame="false" height="12" frameJoinStyle="miter" positionOnPage="80.9774,134.395,mm" maxBarWidth="150" visibility="1" referencePoint="0" lineCapStyle="square" background="false" outlineWidth="0.3" segmentSizeMode="0" numSegmentsLeft="0" position="80.9774,134.395,mm" numMapUnitsPerScaleBarUnit="1" boxContentSpace="1" zValue="2" segmentMillimeters="36.3582" unitType="km" opacity="1" alignment="0" minBarWidth="50" size="92.725,56.4801,mm" id="" excludeFromExports="0" numSegments="2">
<FrameColor alpha="255" green="0" red="0" blue="0"/>
<BackgroundColor alpha="255" green="255" red="255" blue="255"/>
<LayoutObject>
<dataDefinedProperties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option type="Map" name="properties">
<Option type="Map" name="dataDefinedScalebarFill">
<Option value="true" type="bool" name="active"/>
<Option value="'yellow'" type="QString" name="expression"/>
<Option value="3" type="int" name="type"/>
</Option>
<Option type="Map" name="dataDefinedScalebarFill2">
<Option value="true" type="bool" name="active"/>
<Option value="'blue'" type="QString" name="expression"/>
<Option value="3" type="int" name="type"/>
</Option>
<Option type="Map" name="dataDefinedScalebarLineColor">
<Option value="true" type="bool" name="active"/>
<Option value="'red'" type="QString" name="expression"/>
<Option value="3" type="int" name="type"/>
</Option>
<Option type="Map" name="dataDefinedScalebarLineWidth">
<Option value="true" type="bool" name="active"/>
<Option value="3" type="QString" name="expression"/>
<Option value="3" type="int" name="type"/>
</Option>
</Option>
<Option value="collection" type="QString" name="type"/>
</Option>
</dataDefinedProperties>
<customproperties/>
</LayoutObject>
<text-style textOpacity="1" fontWordSpacing="0" fontFamily="Cantarell" multilineHeight="1" fontUnderline="0" textOrientation="horizontal" fontStrikeout="0" blendMode="0" fontKerning="1" namedStyle="" textColor="0,0,0,255" fontSize="12" previewBkgrdColor="255,255,255,255" fontWeight="50" fontSizeMapUnitScale="3x:0,0,0,0,0,0" fontCapitals="0" fontItalic="0" fontLetterSpacing="0" fontSizeUnit="Point">
<text-buffer bufferColor="255,255,255,255" bufferSize="1" bufferSizeMapUnitScale="3x:0,0,0,0,0,0" bufferNoFill="1" bufferJoinStyle="128" bufferOpacity="1" bufferBlendMode="0" bufferDraw="0" bufferSizeUnits="MM"/>
<text-mask maskSizeMapUnitScale="3x:0,0,0,0,0,0" maskJoinStyle="128" maskType="0" maskOpacity="1" maskSizeUnits="MM" maskEnabled="0" maskSize="1.5" maskedSymbolLayers=""/>
<background shapeRadiiX="0" shapeRotationType="0" shapeRadiiMapUnitScale="3x:0,0,0,0,0,0" shapeOffsetMapUnitScale="3x:0,0,0,0,0,0" shapeSVGFile="" shapeSizeX="0" shapeFillColor="255,255,255,255" shapeBorderWidthMapUnitScale="3x:0,0,0,0,0,0" shapeOffsetY="0" shapeType="0" shapeBorderWidth="0" shapeSizeMapUnitScale="3x:0,0,0,0,0,0" shapeOffsetX="0" shapeRotation="0" shapeSizeType="0" shapeSizeY="0" shapeBorderColor="128,128,128,255" shapeRadiiY="0" shapeOffsetUnit="MM" shapeRadiiUnit="MM" shapeDraw="0" shapeOpacity="1" shapeBlendMode="0" shapeBorderWidthUnit="MM" shapeSizeUnit="MM" shapeJoinStyle="64"/>
<shadow shadowRadiusMapUnitScale="3x:0,0,0,0,0,0" shadowRadiusAlphaOnly="0" shadowOffsetGlobal="1" shadowOffsetMapUnitScale="3x:0,0,0,0,0,0" shadowOpacity="0.7" shadowColor="0,0,0,255" shadowOffsetAngle="135" shadowOffsetDist="1" shadowRadius="1.5" shadowRadiusUnit="MM" shadowBlendMode="6" shadowScale="100" shadowUnder="0" shadowDraw="0" shadowOffsetUnit="MM"/>
<dd_properties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option name="properties"/>
<Option value="collection" type="QString" name="type"/>
</Option>
</dd_properties>
</text-style>
<numericFormat id="basic">
<Option type="Map">
<Option value="" type="QChar" name="decimal_separator"/>
<Option value="6" type="int" name="decimals"/>
<Option value="0" type="int" name="rounding_type"/>
<Option value="false" type="bool" name="show_plus"/>
<Option value="true" type="bool" name="show_thousand_separator"/>
<Option value="false" type="bool" name="show_trailing_zeros"/>
<Option value="" type="QChar" name="thousand_separator"/>
</Option>
</numericFormat>
<fillColor alpha="255" green="0" red="0" blue="0"/>
<fillColor2 alpha="255" green="255" red="255" blue="255"/>
<strokeColor alpha="255" green="0" red="0" blue="0"/>
</LayoutItem>
<LayoutItem templateUuid="{241afb9a-7e23-45d6-b891-ecee3a85410f}" itemRotation="0" id="" opacity="1" followPreset="false" type="65639" frameJoinStyle="miter" position="48.9947,23.3065,mm" drawCanvasItems="true" keepLayerSet="false" background="true" positionLock="false" uuid="{241afb9a-7e23-45d6-b891-ecee3a85410f}" excludeFromExports="0" outlineWidthM="0.3,mm" blendMode="0" zValue="1" size="141.54,94.7572,mm" mapRotation="0" visibility="1" mapFlags="0" labelMargin="0,mm" referencePoint="0" frame="false" positionOnPage="48.9947,23.3065,mm" followPresetName="" groupUuid="">
<FrameColor alpha="255" green="0" red="0" blue="0"/>
<BackgroundColor alpha="255" green="255" red="255" blue="255"/>
<LayoutObject>
<dataDefinedProperties>
<Option type="Map">
<Option value="" type="QString" name="name"/>
<Option name="properties"/>
<Option value="collection" type="QString" name="type"/>
</Option>
</dataDefinedProperties>
<customproperties/>
</LayoutObject>
<Extent xmin="-3.5" ymin="-2.34314903846153877" xmax="3.5" ymax="2.34314903846153877"/>
<LayerSet/>
<AtlasMap atlasDriven="0" scalingMode="2" margin="0.10000000000000001"/>
<labelBlockingItems/>
</LayoutItem>
<customproperties>
<property value="png" key="atlasRasterFormat"/>
</customproperties>
<Atlas enabled="0" pageNameExpression="" hideCoverage="0" coverageLayer="" filenamePattern="'output_'||@atlas_featurenumber" sortFeatures="0" filterFeatures="0"/>
</Layout>
</Layouts>
<Bookmarks/>
<ProjectViewSettings UseProjectScales="0">
<Scales/>
</ProjectViewSettings>
<ProjectTimeSettings timeStepUnit="h" frameRate="1" timeStep="1"/>
<ProjectDisplaySettings>
<BearingFormat id="bearing">
<Option type="Map">
<Option value="" type="QChar" name="decimal_separator"/>
<Option value="6" type="int" name="decimals"/>
<Option value="0" type="int" name="direction_format"/>
<Option value="0" type="int" name="rounding_type"/>
<Option value="false" type="bool" name="show_plus"/>
<Option value="true" type="bool" name="show_thousand_separator"/>
<Option value="false" type="bool" name="show_trailing_zeros"/>
<Option value="" type="QChar" name="thousand_separator"/>
</Option>
</BearingFormat>
</ProjectDisplaySettings>
</qgis>