Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
motohirooya authored Sep 23, 2022
1 parent b305b13 commit f2005cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhotoView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@
</symbols>
</renderer-v2>
<labeling type="rule-based">
<rules key="{8ecdb80f-b18d-4ce1-b49d-c89f0c55ebd8}">
<rule filter="/*&#xd;&#xa;写真表示地物かの条件判定 シンボロジ、ラベル共通&#xd;&#xa;*/&#xd;&#xa;with_variable('Number', to_int( coalesce(@PhotoView_Number , 5) ) ,&#xd;&#xa;with_variable('TopMargin', to_real(coalesce(@PhotoView_TopMargin ,8.0))*@map_scale/1000,&#xd;&#xa;with_variable('PhotoBySideMargin',to_real(coalesce(@PhotoView_PhotoBySideMargin , 15.0)),&#xd;&#xa;with_variable('SideMargin',@map_extent_width /(1+(@PhotoBySideMargin+1)*@Number),&#xd;&#xa;with_variable('Extent',&#xd;&#xa;&#x9; intersection( @map_extent , translate( @map_extent ,0,-@PhotoBySideMargin*@SideMargin*0.800-@TopMargin)),&#xd;&#xa;CASE &#xd;&#xa;WHEN @map_rotation &lt;> 0 THEN false&#xd;&#xa;WHEN attribute( 'invisible' ) THEN false&#xd;&#xa;WHEN not within( $geometry , @Extent ) THEN false&#xd;&#xa;ELSE&#xd;&#xa;with_variable('DistRank', array_find(&#xd;&#xa;&#x9; array_foreach(&#xd;&#xa;&#x9;array_sort( &#xd;&#xa;&#x9;&#x9;array_agg( array( distance( @map_extent_center , $geometry ),$id ) ,filter:=if( attribute( 'invisible' ),false,true) and within( $geometry , @Extent ))&#xd;&#xa;&#x9;),&#xd;&#xa;&#x9;@element[1])&#xd;&#xa;&#x9;,$id),&#xd;&#xa;@DistRank&lt;@Number)&#xd;&#xa;END&#xd;&#xa;)))))" description="Photo" key="{c5f78bb9-5d16-4c5d-ad0d-42ebfbf14193}">
<rules key="{c36a2dc7-e5a3-4e3e-84fc-7e2b67d70bfd}">
<rule filter="/*&#xd;&#xa;写真表示地物かの条件判定 シンボロジ、ラベル共通&#xd;&#xa;*/&#xd;&#xa;with_variable('Number', to_int( coalesce(@PhotoView_Number , 5) ) ,&#xd;&#xa;with_variable('TopMargin', to_real(coalesce(@PhotoView_TopMargin ,8.0))*@map_scale/1000,&#xd;&#xa;with_variable('PhotoBySideMargin',to_real(coalesce(@PhotoView_PhotoBySideMargin , 15.0)),&#xd;&#xa;with_variable('SideMargin',@map_extent_width /(1+(@PhotoBySideMargin+1)*@Number),&#xd;&#xa;with_variable('Extent',&#xd;&#xa;&#x9; intersection( @map_extent , translate( @map_extent ,0,-@PhotoBySideMargin*@SideMargin*0.800-@TopMargin)),&#xd;&#xa;CASE &#xd;&#xa;WHEN @map_rotation &lt;> 0 THEN false&#xd;&#xa;WHEN attribute( 'invisible' ) THEN false&#xd;&#xa;WHEN not within( $geometry , @Extent ) THEN false&#xd;&#xa;ELSE&#xd;&#xa;with_variable('DistRank', array_find(&#xd;&#xa;&#x9; array_foreach(&#xd;&#xa;&#x9;array_sort( &#xd;&#xa;&#x9;&#x9;array_agg( array( distance( @map_extent_center , $geometry ),$id ) ,filter:=if( attribute( 'invisible' ),false,true) and within( $geometry , @Extent ))&#xd;&#xa;&#x9;),&#xd;&#xa;&#x9;@element[1])&#xd;&#xa;&#x9;,$id),&#xd;&#xa;@DistRank&lt;@Number)&#xd;&#xa;END&#xd;&#xa;)))))" description="Photo" key="{3fc15377-6b1f-4d2c-8891-b1b289b6d9a7}">
<settings calloutType="simple">
<text-style fontSizeUnit="MapUnit" previewBkgrdColor="255,255,255,255" fontLetterSpacing="0" isExpression="1" fontUnderline="0" namedStyle="Regular" multilineHeight="1" fontSize="10" fieldName=" coalesce( &quot;label&quot; , &quot;filename&quot; ) " fontItalic="0" textOpacity="1" blendMode="0" fontKerning="1" useSubstitutions="0" fontFamily="Arial" capitalization="0" textOrientation="horizontal" fontWeight="50" fontStrikeout="0" fontSizeMapUnitScale="3x:0,0,0,0,0,0" fontWordSpacing="0" allowHtml="0" textColor="0,0,0,255" legendString="Aa">
<families/>
Expand Down Expand Up @@ -802,7 +802,7 @@
<Option type="Map" name="properties">
<Option type="Map" name="Size">
<Option type="bool" value="true" name="active"/>
<Option type="QString" value="with_variable('SingleByteCaracterWidth',if(@PhotoView_SingleByteCaracterWidth is null, to_real(0.8),to_real(@PhotoView_SingleByteCaracterWidth)),&#xd;&#xa;with_variable('Number',if(@PhotoView_Number is null, to_int(5),to_int(@PhotoView_Number)),&#xd;&#xa;with_variable('PhotoBySideMargin',if(@PhotoView_PhotoBySideMargin is null, to_real(15),to_real(@PhotoView_PhotoBySideMargin)),&#xd;&#xa;-- with_variable('LabelSize',if(@PhotoView_LabelSize is null, to_real(6)*@map_scale/1000,to_real(@PhotoView_LabelSize)*@map_scale/1000),&#xd;&#xa;with_variable('LabelSize',if(@PhotoView_TopMargin is null, to_real(7)*@map_scale/1000,(to_real(@PhotoView_TopMargin)-1)*@map_scale/1000),&#xd;&#xa;with_variable('SideMargin',&#xd;&#xa; @map_extent_width /(1+(@PhotoBySideMargin+1)*@Number),&#xd;&#xa;with_variable('PhotoWidth',@PhotoBySideMargin*@SideMargin,&#xd;&#xa;with_variable('StrLen',&#xd;&#xa; eval( array_to_string(&#xd;&#xa; array_foreach(&#xd;&#xa; array_remove_all( string_to_array( coalesce( &quot;label&quot; , &quot;filename&quot; ) ,''),''),&#xd;&#xa; if(@element ~ '[ -~]',@SingleByteCaracterWidth,1))&#xd;&#xa;,'+'))&#xd;&#xa;,&#xd;&#xa;if(@PhotoWidth>@LabelSize*@StrLen,&#xd;&#xa; @LabelSize,@PhotoWidth/@StrLen)&#xd;&#xa;)))))))" name="expression"/>
<Option type="QString" value="/*&#xd;&#xa;ラベルの高さ&#xd;&#xa;文字数が多い場合、縮小する。&#xd;&#xa;プロポーショナルフォントは半角の幅が不定なので、幅を@SingleByteCaracterWidthで仮定する。&#xd;&#xa;*/&#xd;&#xa;&#xd;&#xa;with_variable('Number', to_int( coalesce(@PhotoView_Number , 5) ) ,&#xd;&#xa;with_variable('TopMargin', to_real(coalesce(@PhotoView_TopMargin ,8.0))*@map_scale/1000,&#xd;&#xa;with_variable('PhotoBySideMargin',to_real(coalesce(@PhotoView_PhotoBySideMargin , 15.0)),&#xd;&#xa;with_variable('SingleByteCaracterWidth',to_real(coalesce(@PhotoView_SingleByteCaracterWidth ,0.800)),&#xd;&#xa;with_variable('LabelSize',(@PhotoView_TopMargin-1)*@map_scale/1000,&#xd;&#xa;with_variable('SideMargin',&#xd;&#xa; @map_extent_width /(1+(@PhotoBySideMargin+1)*@Number),&#xd;&#xa;with_variable('PhotoWidth',@PhotoBySideMargin*@SideMargin,&#xd;&#xa;with_variable('StrLen',&#xd;&#xa; eval( array_to_string(&#xd;&#xa; array_foreach(&#xd;&#xa; array_remove_all( string_to_array( coalesce( &quot;label&quot; , &quot;filename&quot; ) ,''),''),&#xd;&#xa; if(@element ~ '[ -~]',@SingleByteCaracterWidth,1))&#xd;&#xa;,'+'))&#xd;&#xa;,&#xd;&#xa;if(@PhotoWidth>@LabelSize*@StrLen,&#xd;&#xa; @LabelSize,@PhotoWidth/@StrLen)&#xd;&#xa;))))))))" name="expression"/>
<Option type="int" value="3" name="type"/>
</Option>
</Option>
Expand Down

0 comments on commit f2005cf

Please sign in to comment.