| | |
| | | <Layout name="LF" units="mm" printResolution="300" worldFileMap="{4e649c5d-cabe-431f-a385-d69809d87ebf}"> |
| | | <Layout name="LF" units="mm" printResolution="{dpi}" worldFileMap="{4e649c5d-cabe-431f-a385-d69809d87ebf}"> |
| | | <Snapper snapToGuides="1" tolerance="5" snapToItems="1" snapToGrid="0"/> |
| | | <Grid offsetY="0" offsetUnits="mm" offsetX="0" resUnits="mm" resolution="10"/> |
| | | <PageCollection> |
| | |
| | | <customproperties/> |
| | | </LayoutObject> |
| | | </LayoutItem> |
| | | <LayoutItem opacity="1" size="76.0244,9.39831,mm" labelText="中国石油天然气管道工程有限公司" templateUuid="{13528ba9-5ea4-45e3-b56e-a975eb046d54}" referencePoint="0" frameJoinStyle="miter" position="212.337,195.29,mm" halign="4" positionLock="false" blendMode="0" background="false" uuid="{13528ba9-5ea4-45e3-b56e-a975eb046d54}" marginY="0" outlineWidthM="0.3,mm" positionOnPage="212.337,195.29,mm" visibility="1" marginX="0" itemRotation="0" type="65641" id="公司" groupUuid="" zValue="8" htmlState="0" excludeFromExports="0" frame="false" valign="128"> |
| | | <LayoutItem opacity="1" size="76.0244,9.39831,mm" labelText="中国 x x x x x x x 工程有限公司" templateUuid="{13528ba9-5ea4-45e3-b56e-a975eb046d54}" referencePoint="0" frameJoinStyle="miter" position="212.337,195.29,mm" halign="4" positionLock="false" blendMode="0" background="false" uuid="{13528ba9-5ea4-45e3-b56e-a975eb046d54}" marginY="0" outlineWidthM="0.3,mm" positionOnPage="212.337,195.29,mm" visibility="1" marginX="0" itemRotation="0" type="65641" id="公司" groupUuid="" zValue="8" htmlState="0" excludeFromExports="0" frame="false" valign="128"> |
| | | <FrameColor green="0" red="0" alpha="255" blue="0"/> |
| | | <BackgroundColor green="255" red="255" alpha="255" blue="255"/> |
| | | <LayoutObject> |
| | |
| | | <LabelFont description="宋体,14,-1,5,50,0,0,0,0,0,常规" style="常规"/> |
| | | <FontColor green="0" red="0" alpha="255" blue="0"/> |
| | | </LayoutItem> |
| | | <LayoutItem opacity="1" size="11.6809,10.7409,mm" mode="1" pictureRotation="0" northMode="0" templateUuid="{29298722-a58a-42f7-85d1-04564ad9366d}" anchorPoint="0" referencePoint="0" frameJoinStyle="miter" position="200.5,194.948,mm" svgBorderColor="0,0,0,255" northOffset="0" svgFillColor="255,255,255,255" positionLock="true" blendMode="0" background="false" uuid="{29298722-a58a-42f7-85d1-04564ad9366d}" outlineWidthM="0.3,mm" positionOnPage="200.5,194.948,mm" visibility="1" pictureWidth="11.4207" itemRotation="0" type="65640" id="Logo" svgBorderWidth="0.2" mapUuid="" resizeMode="0" groupUuid="" zValue="7" excludeFromExports="0" file="./logo.png" frame="false" pictureHeight="10.7409"> |
| | | <LayoutItem opacity="1" size="11.6809,10.7409,mm" mode="1" pictureRotation="0" northMode="0" templateUuid="{29298722-a58a-42f7-85d1-04564ad9366d}" anchorPoint="0" referencePoint="0" frameJoinStyle="miter" position="200.5,194.948,mm" svgBorderColor="0,0,0,255" northOffset="0" svgFillColor="255,255,255,255" positionLock="true" blendMode="0" background="false" uuid="{29298722-a58a-42f7-85d1-04564ad9366d}" outlineWidthM="0.3,mm" positionOnPage="200.5,194.948,mm" visibility="1" pictureWidth="11.4207" itemRotation="0" type="65640" id="Logo" svgBorderWidth="0.2" mapUuid="" resizeMode="0" groupUuid="" zValue="7" excludeFromExports="0" file="{sourcesPath}\logo.png" frame="false" pictureHeight="10.7409"> |
| | | <FrameColor green="0" red="0" alpha="255" blue="0"/> |
| | | <BackgroundColor green="255" red="255" alpha="255" blue="255"/> |
| | | <LayoutObject> |
| | |
| | | <customproperties/> |
| | | </LayoutObject> |
| | | </LayoutItem> |
| | | <LayoutItem opacity="1" size="129.364,11.1743,mm" labelText="管道基础大数据平台(DW1-1)" templateUuid="{81ccb104-2767-491d-8296-cd4ccbebed3e}" referencePoint="0" frameJoinStyle="miter" position="84.816,2.42978,mm" halign="4" positionLock="true" blendMode="0" background="false" uuid="{81ccb104-2767-491d-8296-cd4ccbebed3e}" marginY="0" outlineWidthM="0.3,mm" positionOnPage="84.816,2.42978,mm" visibility="1" marginX="0" itemRotation="0" type="65641" id="标题" groupUuid="" zValue="4" htmlState="0" excludeFromExports="0" frame="false" valign="128"> |
| | | <LayoutItem opacity="1" size="129.364,11.1743,mm" labelText="{title}" templateUuid="{81ccb104-2767-491d-8296-cd4ccbebed3e}" referencePoint="0" frameJoinStyle="miter" position="84.816,2.42978,mm" halign="4" positionLock="true" blendMode="0" background="false" uuid="{81ccb104-2767-491d-8296-cd4ccbebed3e}" marginY="0" outlineWidthM="0.3,mm" positionOnPage="84.816,2.42978,mm" visibility="1" marginX="0" itemRotation="0" type="65641" id="标题" groupUuid="" zValue="4" htmlState="0" excludeFromExports="0" frame="false" valign="128"> |
| | | <FrameColor green="0" red="0" alpha="255" blue="0"/> |
| | | <BackgroundColor green="255" red="255" alpha="255" blue="255"/> |
| | | <LayoutObject> |
| | |
| | | </custom-order> |
| | | </layer-tree-group> |
| | | </LayoutItem> |
| | | <LayoutItem opacity="1" size="280,174,mm" mapRotation="0" followPreset="false" templateUuid="{4e649c5d-cabe-431f-a385-d69809d87ebf}" mapFlags="0" referencePoint="0" keepLayerSet="false" isTemporal="0" frameJoinStyle="round" position="9,18,mm" drawCanvasItems="false" positionLock="true" blendMode="0" background="true" uuid="{4e649c5d-cabe-431f-a385-d69809d87ebf}" outlineWidthM="4,px" positionOnPage="9,18,mm" labelMargin="0,mm" visibility="1" itemRotation="0" type="65639" id="地图" groupUuid="" followPresetName="" zValue="2" excludeFromExports="0" frame="true"> |
| | | <LayoutItem opacity="1" size="280,174,mm" mapRotation="{rotation}" followPreset="false" templateUuid="{4e649c5d-cabe-431f-a385-d69809d87ebf}" mapFlags="0" referencePoint="0" keepLayerSet="false" isTemporal="0" frameJoinStyle="round" position="9,18,mm" drawCanvasItems="false" positionLock="true" blendMode="0" background="true" uuid="{4e649c5d-cabe-431f-a385-d69809d87ebf}" outlineWidthM="4,px" positionOnPage="9,18,mm" labelMargin="0,mm" visibility="1" itemRotation="0" type="65639" id="地图" groupUuid="" followPresetName="" zValue="2" excludeFromExports="0" frame="true"> |
| | | <FrameColor green="0" red="0" alpha="255" blue="0"/> |
| | | <BackgroundColor green="255" red="255" alpha="255" blue="255"/> |
| | | <LayoutObject> |
| | |
| | | </dataDefinedProperties> |
| | | <customproperties/> |
| | | </LayoutObject> |
| | | <Extent ymax="64.11233836183852475" xmin="59.05829972526095162" ymin="9.57730491702214692" xmax="146.81582480887351494"/> |
| | | <Extent xmin="{xmin}" ymin="{ymin}" ymax="{ymax}" xmax="{xmax}"/> |
| | | <crs> |
| | | <spatialrefsys> |
| | | <wkt>GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],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["unknown"],AREA["World"],BBOX[-90,-180,90,180]],ID["EPSG",4326]]</wkt> |
| | |
| | | </Option> |
| | | <Option type="Map"> |
| | | <Option name="background" type="color" value=""/> |
| | | <Option name="content" type="QString" value="河北省"/> |
| | | <Option name="content" type="QString" value="{province}"/> |
| | | <Option name="foreground" type="color" value=""/> |
| | | <Option name="halign" type="int" value="1"/> |
| | | <Option name="valign" type="int" value="128"/> |
| | |
| | | </Option> |
| | | <Option type="Map"> |
| | | <Option name="background" type="color" value=""/> |
| | | <Option name="content" type="QString" value="1:25万"/> |
| | | <Option name="content" type="QString" value="{scale}"/> |
| | | <Option name="foreground" type="color" value=""/> |
| | | <Option name="halign" type="int" value="1"/> |
| | | <Option name="valign" type="int" value="128"/> |
| | |
| | | </Option> |
| | | <Option type="Map"> |
| | | <Option name="background" type="color" value=""/> |
| | | <Option name="content" type="QString" value="20米"/> |
| | | <Option name="content" type="QString" value="{resolution}"/> |
| | | <Option name="foreground" type="color" value=""/> |
| | | <Option name="halign" type="int" value="0"/> |
| | | <Option name="valign" type="int" value="0"/> |
| | |
| | | </Option> |
| | | <Option type="Map"> |
| | | <Option name="background" type="color" value=""/> |
| | | <Option name="content" type="QString" value="2022.11.06"/> |
| | | <Option name="content" type="QString" value="{date}"/> |
| | | <Option name="foreground" type="color" value=""/> |
| | | <Option name="halign" type="int" value="0"/> |
| | | <Option name="valign" type="int" value="0"/> |
| | |
| | | <property value="0" key="imageCropMarginTop"/> |
| | | <property value="false" key="imageCropToContents"/> |
| | | <property value="true" key="singleFile"/> |
| | | <property key="layers" value="{layers}"/> |
| | | <property key="imgPath" value="{imgPath}"/> |
| | | </customproperties> |
| | | <Atlas coverageLayer="" filterFeatures="0" hideCoverage="0" filenamePattern="'output_'||@atlas_featurenumber" sortFeatures="0" pageNameExpression="" enabled="0"/> |
| | | </Layout> |
| | |
| | | print("argv = ", sys.argv[1:]) |
| | | parser = argparse.ArgumentParser(description='ArgUtils') |
| | | parser.add_argument("-src", type=str, default=get_full_path(), required=False) |
| | | parser.add_argument("-qgz", type=str, default="Test.qgz", required=False) |
| | | parser.add_argument("-qpt", type=str, default="Test.qpt", required=False) |
| | | parser.add_argument("-qgz", type=str, default="LF.qgz", required=False) |
| | | parser.add_argument("-qpt", type=str, default="LF.qpt", required=False) |
| | | |
| | | return parser.parse_args() |
| | | |
| | |
| | | xml = xml |
| | | .Replace("{dpi}", args.dpi.ToString()) |
| | | .Replace("{title}", args.title) |
| | | .Replace("{sourcesPath}", SourcesPath) |
| | | .Replace("{rotation}", args.rotation.ToString()) |
| | | .Replace("{xmin}", args.xmin.ToString()) |
| | | .Replace("{ymin}", args.ymin.ToString()) |
| | |
| | | .Replace("{resolution}", args.resolution) |
| | | .Replace("{date}", args.date) |
| | | .Replace("{layers}", args.layers) |
| | | .Replace("{sourcesPath}", SourcesPath) |
| | | .Replace("{imgPath}", imgPath); |
| | | |
| | | File.WriteAllText(qptFile, xml); |
| | |
| | | * 分页查询 |
| | | * |
| | | * @param {colName} {colBak} |
| | | * @param limit 记录表 |
| | | * @param limit 记录数 |
| | | * @param offset 偏移量 |
| | | * @return 列表 |
| | | */ |