Git ignore fonctione
15
.gitignore
vendored
@ -5,11 +5,14 @@
|
||||
/*
|
||||
!plugins.xml
|
||||
|
||||
#Skip Ignores
|
||||
!CenRa_AUTOMAP/
|
||||
!CenRa_COPIE
|
||||
!CenRa_FLUX
|
||||
!CenRa_METABASE
|
||||
!CenRa_POSTGIS
|
||||
!CenRa_SICEN
|
||||
!CenRa_COPIE/
|
||||
!CenRa_FLUX/
|
||||
!CenRa_METABASE/
|
||||
!CenRa_POSTGIS/
|
||||
!CenRa_SICEN/
|
||||
|
||||
**/__pycache__
|
||||
#ReIgnore
|
||||
**/__pycache__
|
||||
**/test/
|
||||
BIN
CenRa_AUTOMAP/tools/logo_library/CBNA.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/CBNMC.png
Normal file
|
After Width: | Height: | Size: 73 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/DREAL_pref_region_AuRA_web.png
Normal file
|
After Width: | Height: | Size: 165 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/FEADER.png
Normal file
|
After Width: | Height: | Size: 86 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/LES_AGENCES_DELEAU.png
Normal file
|
After Width: | Height: | Size: 114 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/LPO_AuRA.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 5.9 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/OFB.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
CenRa_AUTOMAP/tools/logo_library/REGION_AuRA.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
120
CenRa_AUTOMAP/tools/mises_en_pages/1. Modèle carto standard.qpt
Normal file
@ -0,0 +1,120 @@
|
||||
<Layout worldFileMap="" name="test.qpt" printResolution="300" units="mm">
|
||||
<Snapper snapToGrid="0" snapToItems="1" tolerance="5" snapToGuides="1"/>
|
||||
<Grid resolution="10" offsetUnits="mm" offsetX="0" resUnits="mm" offsetY="0"/>
|
||||
<PageCollection>
|
||||
<symbol name="" clip_to_extent="1" type="fill" force_rhr="0" alpha="1">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer class="SimpleFill" locked="0" enabled="1" pass="0">
|
||||
<Option type="Map">
|
||||
<Option name="border_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="color" value="255,255,255,255" type="QString"/>
|
||||
<Option name="joinstyle" value="miter" type="QString"/>
|
||||
<Option name="offset" value="0,0" type="QString"/>
|
||||
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="offset_unit" value="MM" type="QString"/>
|
||||
<Option name="outline_color" value="35,35,35,255" type="QString"/>
|
||||
<Option name="outline_style" value="no" type="QString"/>
|
||||
<Option name="outline_width" value="0.26" type="QString"/>
|
||||
<Option name="outline_width_unit" value="MM" type="QString"/>
|
||||
<Option name="style" value="solid" type="QString"/>
|
||||
</Option>
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="255,255,255,255"/>
|
||||
<prop k="joinstyle" v="miter"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="no"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
<LayoutItem zValue="0" id="" itemRotation="0" position="0,0,mm" frame="false" templateUuid="{5c80221d-7561-455b-94fd-69a27d877679}" referencePoint="0" opacity="1" frameJoinStyle="miter" uuid="{5c80221d-7561-455b-94fd-69a27d877679}" blendMode="0" size="297,210,mm" groupUuid="" outlineWidthM="0.3,mm" positionOnPage="0,0,mm" type="65638" excludeFromExports="0" positionLock="false" background="true" visibility="1">
|
||||
<FrameColor green="0" blue="0" red="0" alpha="255"/>
|
||||
<BackgroundColor green="255" blue="255" red="255" alpha="255"/>
|
||||
<LayoutObject>
|
||||
<dataDefinedProperties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</dataDefinedProperties>
|
||||
<customproperties>
|
||||
<Option/>
|
||||
</customproperties>
|
||||
</LayoutObject>
|
||||
<symbol name="" clip_to_extent="1" type="fill" force_rhr="0" alpha="1">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer class="SimpleFill" locked="0" enabled="1" pass="0">
|
||||
<Option type="Map">
|
||||
<Option name="border_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="color" value="255,255,255,255" type="QString"/>
|
||||
<Option name="joinstyle" value="miter" type="QString"/>
|
||||
<Option name="offset" value="0,0" type="QString"/>
|
||||
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="offset_unit" value="MM" type="QString"/>
|
||||
<Option name="outline_color" value="35,35,35,255" type="QString"/>
|
||||
<Option name="outline_style" value="no" type="QString"/>
|
||||
<Option name="outline_width" value="0.26" type="QString"/>
|
||||
<Option name="outline_width_unit" value="MM" type="QString"/>
|
||||
<Option name="style" value="solid" type="QString"/>
|
||||
</Option>
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="255,255,255,255"/>
|
||||
<prop k="joinstyle" v="miter"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="no"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
</LayoutItem>
|
||||
<GuideCollection visible="1"/>
|
||||
</PageCollection>
|
||||
<customproperties>
|
||||
<Option type="Map">
|
||||
<Option name="atlasRasterFormat" value="png" type="QString"/>
|
||||
<Option name="imageAntialias" value="true" type="bool"/>
|
||||
<Option name="imageCropMarginBottom" value="0" type="int"/>
|
||||
<Option name="imageCropMarginLeft" value="0" type="int"/>
|
||||
<Option name="imageCropMarginRight" value="0" type="int"/>
|
||||
<Option name="imageCropMarginTop" value="0" type="int"/>
|
||||
<Option name="imageCropToContents" value="false" type="bool"/>
|
||||
<Option name="singleFile" value="true" type="bool"/>
|
||||
</Option>
|
||||
</customproperties>
|
||||
<Atlas coverageLayer="" pageNameExpression="" filterFeatures="0" filenamePattern="'output_'||@atlas_featurenumber" enabled="0" hideCoverage="0" sortFeatures="0"/>
|
||||
</Layout>
|
||||
@ -0,0 +1,120 @@
|
||||
<Layout worldFileMap="" name="test.qpt" printResolution="300" units="mm">
|
||||
<Snapper snapToGrid="0" snapToItems="1" tolerance="5" snapToGuides="1"/>
|
||||
<Grid resolution="10" offsetUnits="mm" offsetX="0" resUnits="mm" offsetY="0"/>
|
||||
<PageCollection>
|
||||
<symbol name="" clip_to_extent="1" type="fill" force_rhr="0" alpha="1">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer class="SimpleFill" locked="0" enabled="1" pass="0">
|
||||
<Option type="Map">
|
||||
<Option name="border_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="color" value="255,255,255,255" type="QString"/>
|
||||
<Option name="joinstyle" value="miter" type="QString"/>
|
||||
<Option name="offset" value="0,0" type="QString"/>
|
||||
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="offset_unit" value="MM" type="QString"/>
|
||||
<Option name="outline_color" value="35,35,35,255" type="QString"/>
|
||||
<Option name="outline_style" value="no" type="QString"/>
|
||||
<Option name="outline_width" value="0.26" type="QString"/>
|
||||
<Option name="outline_width_unit" value="MM" type="QString"/>
|
||||
<Option name="style" value="solid" type="QString"/>
|
||||
</Option>
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="255,255,255,255"/>
|
||||
<prop k="joinstyle" v="miter"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="no"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
<LayoutItem zValue="0" id="" itemRotation="0" position="0,0,mm" frame="false" templateUuid="{5c80221d-7561-455b-94fd-69a27d877679}" referencePoint="0" opacity="1" frameJoinStyle="miter" uuid="{5c80221d-7561-455b-94fd-69a27d877679}" blendMode="0" size="297,210,mm" groupUuid="" outlineWidthM="0.3,mm" positionOnPage="0,0,mm" type="65638" excludeFromExports="0" positionLock="false" background="true" visibility="1">
|
||||
<FrameColor green="0" blue="0" red="0" alpha="255"/>
|
||||
<BackgroundColor green="255" blue="255" red="255" alpha="255"/>
|
||||
<LayoutObject>
|
||||
<dataDefinedProperties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</dataDefinedProperties>
|
||||
<customproperties>
|
||||
<Option/>
|
||||
</customproperties>
|
||||
</LayoutObject>
|
||||
<symbol name="" clip_to_extent="1" type="fill" force_rhr="0" alpha="1">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer class="SimpleFill" locked="0" enabled="1" pass="0">
|
||||
<Option type="Map">
|
||||
<Option name="border_width_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="color" value="255,255,255,255" type="QString"/>
|
||||
<Option name="joinstyle" value="miter" type="QString"/>
|
||||
<Option name="offset" value="0,0" type="QString"/>
|
||||
<Option name="offset_map_unit_scale" value="3x:0,0,0,0,0,0" type="QString"/>
|
||||
<Option name="offset_unit" value="MM" type="QString"/>
|
||||
<Option name="outline_color" value="35,35,35,255" type="QString"/>
|
||||
<Option name="outline_style" value="no" type="QString"/>
|
||||
<Option name="outline_width" value="0.26" type="QString"/>
|
||||
<Option name="outline_width_unit" value="MM" type="QString"/>
|
||||
<Option name="style" value="solid" type="QString"/>
|
||||
</Option>
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="255,255,255,255"/>
|
||||
<prop k="joinstyle" v="miter"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="no"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option name="name" value="" type="QString"/>
|
||||
<Option name="properties"/>
|
||||
<Option name="type" value="collection" type="QString"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
</LayoutItem>
|
||||
<GuideCollection visible="1"/>
|
||||
</PageCollection>
|
||||
<customproperties>
|
||||
<Option type="Map">
|
||||
<Option name="atlasRasterFormat" value="png" type="QString"/>
|
||||
<Option name="imageAntialias" value="true" type="bool"/>
|
||||
<Option name="imageCropMarginBottom" value="0" type="int"/>
|
||||
<Option name="imageCropMarginLeft" value="0" type="int"/>
|
||||
<Option name="imageCropMarginRight" value="0" type="int"/>
|
||||
<Option name="imageCropMarginTop" value="0" type="int"/>
|
||||
<Option name="imageCropToContents" value="false" type="bool"/>
|
||||
<Option name="singleFile" value="true" type="bool"/>
|
||||
</Option>
|
||||
</customproperties>
|
||||
<Atlas coverageLayer="" pageNameExpression="" filterFeatures="0" filenamePattern="'output_'||@atlas_featurenumber" enabled="0" hideCoverage="0" sortFeatures="0"/>
|
||||
</Layout>
|
||||
82
CenRa_AUTOMAP/tools/mises_en_pages/NorthArrow_02.svg
Normal file
@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
version="1.1"
|
||||
id="Capa_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 470 470"
|
||||
style="enable-background:new 0 0 470 470;"
|
||||
xml:space="preserve"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="north-star-svgrepo-com.svg"><metadata
|
||||
id="metadata41"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs39" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
id="namedview37"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.50212766"
|
||||
inkscape:cx="-58.75"
|
||||
inkscape:cy="235"
|
||||
inkscape:window-x="1912"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="Capa_1" /><g
|
||||
id="g3"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,73.669492,121.42372)"><path
|
||||
d="m 464.37,227.737 -137.711,-35.46 55.747,-94.413 c 1.74,-2.946 1.265,-6.697 -1.155,-9.117 -2.42,-2.42 -6.169,-2.894 -9.117,-1.154 L 277.721,143.34 242.263,5.63 C 241.41,2.316 238.422,0 235,0 c -3.422,0 -6.41,2.316 -7.263,5.63 L 192.277,143.341 97.865,87.593 c -2.947,-1.742 -6.697,-1.267 -9.117,1.154 -2.419,2.42 -2.895,6.171 -1.155,9.117 L 143.34,192.277 5.63,227.737 C 2.316,228.59 0,231.578 0,235 c 0,3.422 2.316,6.41 5.63,7.263 l 137.711,35.46 -55.747,94.413 c -1.74,2.946 -1.265,6.697 1.155,9.117 1.445,1.445 3.365,2.196 5.306,2.196 1.308,0 2.625,-0.342 3.811,-1.042 l 94.413,-55.747 35.46,137.71 c 0.854,3.313 3.841,5.63 7.263,5.63 3.422,0 6.41,-2.316 7.263,-5.63 l 35.46,-137.711 94.413,55.748 c 1.187,0.701 2.503,1.042 3.811,1.042 1.94,0 3.86,-0.751 5.306,-2.196 2.419,-2.42 2.895,-6.171 1.155,-9.117 l -55.747,-94.413 137.71,-35.46 c 3.314,-0.853 5.63,-3.841 5.63,-7.263 0,-3.422 -2.319,-6.41 -5.633,-7.263 z m -176.627,60.007 23.796,-6.128 43.142,73.065 -73.065,-43.143 6.127,-23.794 z m 25.697,-22.106 c -0.035,0.009 -0.07,0.019 -0.106,0.027 l -29.473,7.59 -22.344,-22.345 c -2.929,-2.928 -7.678,-2.928 -10.606,0 -2.929,2.93 -2.929,7.678 0,10.607 l 22.344,22.344 -7.59,29.478 c -0.008,0.033 -0.018,0.065 -0.025,0.099 L 235,432.423 204.356,313.413 c -0.004,-0.016 -7.61,-29.552 -7.61,-29.552 l 87.115,-87.116 29.302,7.546 C 313.21,204.303 432.423,235 432.423,235 L 313.44,265.638 Z m -25.697,-83.382 -6.127,-23.795 73.065,-43.143 -43.142,73.064 -23.796,-6.126 z m -22.099,-25.669 c 0.004,0.016 7.61,29.552 7.61,29.552 L 235,224.393 l -38.254,-38.254 7.59,-29.478 c 0.008,-0.033 0.018,-0.065 0.025,-0.099 L 235,37.577 l 30.644,119.01 z m -83.387,25.669 -23.796,6.128 -43.142,-73.065 73.065,43.143 -6.127,23.794 z m 3.882,14.489 L 224.393,235 186.139,273.255 37.577,235 186.139,196.745 Z m -3.882,90.999 6.127,23.795 -73.065,43.143 43.142,-73.064 23.796,6.126 z"
|
||||
id="path5"
|
||||
inkscape:connector-curvature="0" /></g><g
|
||||
id="g7"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g9"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g11"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g13"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g15"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g17"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g19"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g21"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g23"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g25"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g27"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g29"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g31"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g33"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><g
|
||||
id="g35"
|
||||
transform="matrix(0.70762712,0,0,0.70762712,77.669492,133.42372)" /><path
|
||||
inkscape:connector-curvature="0"
|
||||
class="st0"
|
||||
d="m 230.3366,69.68989 20.38,33.826 c 0.404,0.673 0.717,1.188 0.953,1.59 0.487,0.002 1.12,0.004 1.805,0.004 l 20.004,0 c 0.557,0 1.027,-0.471 1.027,-1.028 l 0,-76.944 c 0,-0.557 -0.472,-1.027 -1.027,-1.027 l -20.004,0 c -0.555,0 -1.025,0.471 -1.025,1.027 l 0,33.553 c 0,2.979 -1.948,3.13 -2.338,3.13 -0.958,0 -1.803,-0.599 -2.518,-1.78 l -20.378,-33.826 c -0.498,-0.825 -0.852,-1.429 -1.104,-1.882 -0.4,-0.02 -0.956,-0.036 -1.655,-0.036 l -20.003,0 c -0.557,0 -1.027,0.47 -1.027,1.027 l 0,76.945 c 0,0.557 0.471,1.027 1.027,1.027 l 20.001,0 c 0.557,0 1.027,-0.47 1.027,-1.027 l 0,-33.229 c 0,-2.979 1.948,-3.129 2.338,-3.129 0.959,-10e-4 1.805,0.599 2.517,1.779 z"
|
||||
id="path9" /></svg>
|
||||
|
After Width: | Height: | Size: 5.6 KiB |
47
CenRa_AUTOMAP/tools/mises_en_pages/NorthArrow_03.svg
Normal file
@ -0,0 +1,47 @@
|
||||
<svg viewBox="0 0 61.06 96.62" xmlns="http://www.w3.org/2000/svg">
|
||||
<g transform="translate(-1.438 30.744)">
|
||||
<g fill="none" stroke="param(outline)">
|
||||
<path d="m61 35c0 16.02-12.984 29-29 29-16.02 0-29-12.984-29-29 0-16.02 12.984-29 29-29 16.02 0 29 12.984 29 29z" stroke-width="3"/>
|
||||
<path d="m55 35c0 12.979-10.521 23.5-23.5 23.5-12.979 0-23.5-10.521-23.5-23.5 0-12.979 10.521-23.5 23.5-23.5 12.979 0 23.5 10.521 23.5 23.5z" stroke-width=".497" transform="matrix(1.01148 0 0 .99988 -.089 .004)"/>
|
||||
<path d="m32 35v-32" stroke-width=".25"/>
|
||||
</g>
|
||||
<path d="m32-9.453l28.938 73.826-29-29-29 29z" fill="param(fill)" stroke="param(outline)" stroke-width="3"/>
|
||||
<path d="m32-9.453l29 73.45-29-29-29 29z" fill="none" stroke="param(outline)" stroke-linecap="square"/>
|
||||
<text fill="param(fill)" font-family="OPEN SANS" font-size="40" letter-spacing="0" line-height="125%" word-spacing="0" x="22.71" y="-10.854">
|
||||
<tspan font-family="Adobe Heiti Std R" font-size="26" x="22.71" y="-10.854">N</tspan>
|
||||
</text>
|
||||
</g>
|
||||
<g fill="none" stroke="param(outline)" stroke-width=".25" transform="translate(0 -3.829)">
|
||||
<path d="m4 92.82l6.74-3.891"/>
|
||||
<path d="m4.603 90.7l10.397-6"/>
|
||||
<path d="m3 95.17l4-2.309"/>
|
||||
<path d="m5.442 88.45l13.856-8"/>
|
||||
<path d="m12 72.26l18.686-10.812"/>
|
||||
<path d="m14.593 65.45l16.09-9.291"/>
|
||||
<path d="m15.343 63.24l15.343-8.858"/>
|
||||
<path d="m16.877 60.58l13.809-7.972"/>
|
||||
<path d="m17.511 58.45l13.174-7.606"/>
|
||||
<path d="m18.412 56.15l12.274-7.087"/>
|
||||
<path d="m19 54.04l11.427-6.597"/>
|
||||
<path d="m20 51.757l10.822-6.311"/>
|
||||
<path d="m20.826 49.45l9.86-5.693"/>
|
||||
<path d="m21.48 47.3l9.206-5.315"/>
|
||||
<path d="m23 44.647l7.686-4.437"/>
|
||||
<path d="m23.744 42.45l6.928-4"/>
|
||||
<path d="m24.549 40.21l6.137-3.543"/>
|
||||
<path d="m25 38.18l5.686-3.283"/>
|
||||
<path d="m26.663 35.446l4.02-2.323"/>
|
||||
<path d="m27.617 33.12l3.069-1.772"/>
|
||||
<path d="m28 31.13l2.686-1.551"/>
|
||||
<path d="m29.15 28.694l1.534-.886"/>
|
||||
<path d="m13 69.909l17.686-10.211"/>
|
||||
<path d="m9.206 79.19l21.48-12.402"/>
|
||||
<path d="m8.36 81.45l22.326-12.89"/>
|
||||
<path d="m7.671 83.62l19.946-11.516"/>
|
||||
<path d="m6.137 86.27l17.02-9.827"/>
|
||||
<path d="m10 76.956l20.686-11.943"/>
|
||||
<path d="m11.279 74.45l19.407-11.205"/>
|
||||
<path d="m14 67.56l16.686-9.634"/>
|
||||
<path d="m30.562 65.744v-43.566" transform="translate(0 3.829)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.2 KiB |
317
CenRa_AUTOMAP/tools/mises_en_pages/canvas.py
Normal file
@ -0,0 +1,317 @@
|
||||
from qgis.core import (
|
||||
QgsLayoutSize,
|
||||
QgsUnitTypes,
|
||||
QgsLayoutPoint,
|
||||
)
|
||||
|
||||
def fletch_canvas(self,values_page):
|
||||
### Modèle carto standard ###
|
||||
if values_page == '1. Modèle carto standard.qpt':
|
||||
if self.radioButton_6.isChecked() and self.radioButton_7.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(50, 50, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(2.5, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(199, 175, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(5, 25, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(200, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(200, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 12, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(46, 16, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 275, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(5, 205, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(55, 5, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(145, 228, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(55, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(145, 215, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(12, 12, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(193, 214, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(205, 125, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(104, 201, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
|
||||
|
||||
if self.radioButton_6.isChecked() and self.radioButton_8.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(100, 100, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(6, 23, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(285, 145, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(6, 23, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(46, 16, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 185, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(5, 168, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(55, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(207, 193, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(55, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(207, 180, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(8.4, 12.5, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(273, 182, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(291.5, 123, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(189, 168.5, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
|
||||
|
||||
if self.radioButton_5.isChecked() and self.radioButton_7.isChecked():
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(285, 260, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(6, 23, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(46, 16, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 395, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(5, 284, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(50, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(207, 310, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(50, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(207, 298, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(8.4, 12.5, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(273, 297, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(291.5, 123, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(189, 284, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
|
||||
|
||||
if self.radioButton_5.isChecked() and self.radioButton_8.isChecked():
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(408.5, 222, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(5, 23.5, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(409, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(409, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(46, 16, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 275, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(5, 249, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(55, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(323, 282, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(55, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(323, 270, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(8.4, 12.5, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(402, 270, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(415, 123, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(313, 247, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
### Modèle carto plein page ###
|
||||
if values_page == '2. Modèle carto plein page.qpt':
|
||||
if self.radioButton_6.isChecked() and self.radioButton_7.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(50, 50, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(2.5, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(210, 297, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(0, 0, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(200, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(200, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(48, 17, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 275, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(133, 215, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(64, 7, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(3, 288, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(65, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(3, 273, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(12, 12, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(196, 283, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(205, 125, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(55, 292, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
if self.radioButton_6.isChecked() and self.radioButton_8.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(100, 100, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(6, 23, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(297, 210, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(0, 0, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(48, 17, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 185, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(231, 135, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(64, 7, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(3, 201, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(65, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(3, 186, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(12, 12, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(283, 196, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(291.5, 123, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(98, 205, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
if self.radioButton_5.isChecked() and self.radioButton_7.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(50, 50, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(2.5, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(297, 420, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(0, 0, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(286, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(48, 17, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 370, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(219, 324, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(64, 7, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(3, 410, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(65, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(3, 395, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(24, 24, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(271, 394, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 3.9, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(291, 125, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(98, 414, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
if self.radioButton_5.isChecked() and self.radioButton_8.isChecked():
|
||||
|
||||
self.template_parameters['position_map_size'] = QgsLayoutSize(100, 100, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['position_map_position'] = QgsLayoutPoint(6, 23, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['map_size'] = QgsLayoutSize(420, 297, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['map_position'] = QgsLayoutPoint(0, 0, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['title_size'] = QgsLayoutSize(411, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['title_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['subtitle_size'] = QgsLayoutSize(411, 8, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['subtitle_position'] = QgsLayoutPoint(5, 10, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_size'] = QgsLayoutSize(48, 17, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_position'] = QgsLayoutPoint(5, 2, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['logo_credit_size'] = QgsLayoutSize(50, 20, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['logo_credit_position'] = QgsLayoutPoint(5, 247, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['legend_size'] = QgsLayoutSize(405, 203, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['legend_position'] = QgsLayoutPoint(341, 196, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebarnumeric_size'] = QgsLayoutSize(64, 7, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebarnumeric_position'] = QgsLayoutPoint(3, 287, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['scalebar_size'] = QgsLayoutSize(65, 15, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['scalebar_position'] = QgsLayoutPoint(3, 272, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['north_size'] = QgsLayoutSize(24, 24, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['north_position'] = QgsLayoutPoint(394, 271, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text_size'] = QgsLayoutSize(100, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text_position'] = QgsLayoutPoint(414, 123, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
self.template_parameters['credit_text2_size'] = QgsLayoutSize(100, 4, QgsUnitTypes.LayoutMillimeters)
|
||||
self.template_parameters['credit_text2_position'] = QgsLayoutPoint(185, 292, QgsUnitTypes.LayoutMillimeters)
|
||||
|
||||
# Retour des info #
|
||||
return self.template_parameters
|
||||
226
CenRa_COPIE/Makefile
Normal file
@ -0,0 +1,226 @@
|
||||
#/***************************************************************************
|
||||
# Copie
|
||||
#
|
||||
# Permet la copie d'une table dans une base PostGis
|
||||
# -------------------
|
||||
# begin : 2015-04-13
|
||||
# git sha : $Format:%H$
|
||||
# copyright : (C) 2015 by Guillaume COSTES - CEN Rhône-Alpes
|
||||
# email : guillaume.costes@espaces-naturels.fr
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#/***************************************************************************
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU General Public License as published by *
|
||||
# * the Free Software Foundation; either version 2 of the License, or *
|
||||
# * (at your option) any later version. *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
|
||||
#################################################
|
||||
# Edit the following to match your sources lists
|
||||
#################################################
|
||||
|
||||
|
||||
#Add iso code for any locales you want to support here (space separated)
|
||||
# default is no locales
|
||||
# LOCALES = af
|
||||
LOCALES =
|
||||
|
||||
# If locales are enabled, set the name of the lrelease binary on your system. If
|
||||
# you have trouble compiling the translations, you may have to specify the full path to
|
||||
# lrelease
|
||||
#LRELEASE = lrelease
|
||||
#LRELEASE = lrelease-qt4
|
||||
|
||||
|
||||
# translation
|
||||
SOURCES = \
|
||||
__init__.py \
|
||||
copie.py \
|
||||
copie_dialog.py
|
||||
|
||||
PLUGINNAME = Copie
|
||||
|
||||
PY_FILES = \
|
||||
copie.py \
|
||||
copie_dialog.py \
|
||||
__init__.py
|
||||
|
||||
UI_FILES = copie_dialog_base.ui
|
||||
|
||||
EXTRAS = icon.png metadata.txt
|
||||
|
||||
COMPILED_RESOURCE_FILES = resources_rc.py
|
||||
|
||||
PEP8EXCLUDE=pydev,resources_rc.py,conf.py,third_party,ui
|
||||
|
||||
|
||||
#################################################
|
||||
# Normally you would not need to edit below here
|
||||
#################################################
|
||||
|
||||
HELP = help/build/html
|
||||
|
||||
PLUGIN_UPLOAD = $(c)/plugin_upload.py
|
||||
|
||||
RESOURCE_SRC=$(shell grep '^ *<file' resources.qrc | sed 's@</file>@@g;s/.*>//g' | tr '\n' ' ')
|
||||
|
||||
QGISDIR=.qgis2
|
||||
|
||||
default: compile
|
||||
|
||||
compile: $(COMPILED_RESOURCE_FILES)
|
||||
|
||||
%_rc.py : %.qrc $(RESOURCES_SRC)
|
||||
pyrcc4 -o $*_rc.py $<
|
||||
|
||||
%.qm : %.ts
|
||||
$(LRELEASE) $<
|
||||
|
||||
test: compile transcompile
|
||||
@echo
|
||||
@echo "----------------------"
|
||||
@echo "Regression Test Suite"
|
||||
@echo "----------------------"
|
||||
|
||||
@# Preceding dash means that make will continue in case of errors
|
||||
@-export PYTHONPATH=`pwd`:$(PYTHONPATH); \
|
||||
export QGIS_DEBUG=0; \
|
||||
export QGIS_LOG_FILE=/dev/null; \
|
||||
nosetests -v --with-id --with-coverage --cover-package=. \
|
||||
3>&1 1>&2 2>&3 3>&- || true
|
||||
@echo "----------------------"
|
||||
@echo "If you get a 'no module named qgis.core error, try sourcing"
|
||||
@echo "the helper script we have provided first then run make test."
|
||||
@echo "e.g. source run-env-linux.sh <path to qgis install>; make test"
|
||||
@echo "----------------------"
|
||||
|
||||
deploy: compile doc transcompile
|
||||
@echo
|
||||
@echo "------------------------------------------"
|
||||
@echo "Deploying plugin to your .qgis2 directory."
|
||||
@echo "------------------------------------------"
|
||||
# The deploy target only works on unix like operating system where
|
||||
# the Python plugin directory is located at:
|
||||
# $HOME/$(QGISDIR)/python/plugins
|
||||
mkdir -p $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(PY_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(UI_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(COMPILED_RESOURCE_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(EXTRAS) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr i18n $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr $(HELP) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)/help
|
||||
|
||||
# The dclean target removes compiled python files from plugin directory
|
||||
# also deletes any .git entry
|
||||
dclean:
|
||||
@echo
|
||||
@echo "-----------------------------------"
|
||||
@echo "Removing any compiled python files."
|
||||
@echo "-----------------------------------"
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname "*.pyc" -delete
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname ".git" -prune -exec rm -Rf {} \;
|
||||
|
||||
|
||||
derase:
|
||||
@echo
|
||||
@echo "-------------------------"
|
||||
@echo "Removing deployed plugin."
|
||||
@echo "-------------------------"
|
||||
rm -Rf $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
|
||||
zip: deploy dclean
|
||||
@echo
|
||||
@echo "---------------------------"
|
||||
@echo "Creating plugin zip bundle."
|
||||
@echo "---------------------------"
|
||||
# The zip target deploys the plugin and creates a zip file with the deployed
|
||||
# content. You can then upload the zip file on http://plugins.qgis.org
|
||||
rm -f $(PLUGINNAME).zip
|
||||
cd $(HOME)/$(QGISDIR)/python/plugins; zip -9r $(CURDIR)/$(PLUGINNAME).zip $(PLUGINNAME)
|
||||
|
||||
package: compile
|
||||
# Create a zip package of the plugin named $(PLUGINNAME).zip.
|
||||
# This requires use of git (your plugin development directory must be a
|
||||
# git repository).
|
||||
# To use, pass a valid commit or tag as follows:
|
||||
# make package VERSION=Version_0.3.2
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Exporting plugin to zip package. "
|
||||
@echo "------------------------------------"
|
||||
rm -f $(PLUGINNAME).zip
|
||||
git archive --prefix=$(PLUGINNAME)/ -o $(PLUGINNAME).zip $(VERSION)
|
||||
echo "Created package: $(PLUGINNAME).zip"
|
||||
|
||||
upload: zip
|
||||
@echo
|
||||
@echo "-------------------------------------"
|
||||
@echo "Uploading plugin to QGIS Plugin repo."
|
||||
@echo "-------------------------------------"
|
||||
$(PLUGIN_UPLOAD) $(PLUGINNAME).zip
|
||||
|
||||
transup:
|
||||
@echo
|
||||
@echo "------------------------------------------------"
|
||||
@echo "Updating translation files with any new strings."
|
||||
@echo "------------------------------------------------"
|
||||
@chmod +x scripts/update-strings.sh
|
||||
@scripts/update-strings.sh $(LOCALES)
|
||||
|
||||
transcompile:
|
||||
@echo
|
||||
@echo "----------------------------------------"
|
||||
@echo "Compiled translation files to .qm files."
|
||||
@echo "----------------------------------------"
|
||||
@chmod +x scripts/compile-strings.sh
|
||||
@scripts/compile-strings.sh $(LRELEASE) $(LOCALES)
|
||||
|
||||
transclean:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Removing compiled translation files."
|
||||
@echo "------------------------------------"
|
||||
rm -f i18n/*.qm
|
||||
|
||||
clean:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Removing uic and rcc generated files"
|
||||
@echo "------------------------------------"
|
||||
rm $(COMPILED_UI_FILES) $(COMPILED_RESOURCE_FILES)
|
||||
|
||||
doc:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Building documentation using sphinx."
|
||||
@echo "------------------------------------"
|
||||
cd help; make html
|
||||
|
||||
pylint:
|
||||
@echo
|
||||
@echo "-----------------"
|
||||
@echo "Pylint violations"
|
||||
@echo "-----------------"
|
||||
@pylint --reports=n --rcfile=pylintrc . || true
|
||||
@echo
|
||||
@echo "----------------------"
|
||||
@echo "If you get a 'no module named qgis.core' error, try sourcing"
|
||||
@echo "the helper script we have provided first then run make pylint."
|
||||
@echo "e.g. source run-env-linux.sh <path to qgis install>; make pylint"
|
||||
@echo "----------------------"
|
||||
|
||||
|
||||
# Run pep8 style checking
|
||||
#http://pypi.python.org/pypi/pep8
|
||||
pep8:
|
||||
@echo
|
||||
@echo "-----------"
|
||||
@echo "PEP8 issues"
|
||||
@echo "-----------"
|
||||
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128 --exclude $(PEP8EXCLUDE) . || true
|
||||
@echo "-----------"
|
||||
@echo "Ignored in PEP8 check:"
|
||||
@echo $(PEP8EXCLUDE)
|
||||
41
CenRa_COPIE/README.html
Normal file
@ -0,0 +1,41 @@
|
||||
<html>
|
||||
<body>
|
||||
<h3>Plugin Builder Results</h3>
|
||||
|
||||
Congratulations! You just built a plugin for QGIS!<br/><br />
|
||||
|
||||
<div id='help' style='font-size:.9em;'>
|
||||
Your plugin <b>Copie</b> was created in:<br>
|
||||
<b>C:\Users\gcostes\.qgis2\python\plugins\Copie</b>
|
||||
<p>
|
||||
Your QGIS plugin directory is located at:<br>
|
||||
<b>C:/Users/gcostes/.qgis2/python/plugins</b>
|
||||
<p>
|
||||
<h3>What's Next</h3>
|
||||
<ol>
|
||||
<li>In your plugin directory, compile the resources file using pyrcc4 (simply run <b>make</b> if you have automake or use <b>pb_tool</b>)
|
||||
<li>Test the generated sources using <b>make test</b> (or run tests from your IDE)
|
||||
<li>Copy the entire directory containing your new plugin to the QGIS plugin directory (see Notes below)
|
||||
<li>Test the plugin by enabling it in the QGIS plugin manager
|
||||
<li>Customize it by editing the implementation file <b>copie.py</b>
|
||||
<li>Create your own custom icon, replacing the default <b>icon.png</b>
|
||||
<li>Modify your user interface by opening <b>copie_dialog_base.ui</b> in Qt Designer
|
||||
</ol>
|
||||
Notes:
|
||||
<ul>
|
||||
<li>You can use the <b>Makefile</b> to compile and deploy when you
|
||||
make changes. This requires GNU make (gmake). The Makefile is ready to use, however you
|
||||
will have to edit it to add addional Python source files, dialogs, and translations.
|
||||
<li>You can also use <b>pb_tool</b> to compile and deploy your plugin. Tweak the <i>pb_tool.cfg</i> file included with your plugin as you add files. Install <b>pb_tool</b> using
|
||||
<i>pip</i> or <i>easy_install</i>. See <a href="http://loc8.cc/pb_tool">http://loc8.cc/pb_tool</a> for more information.
|
||||
</ul>
|
||||
</div>
|
||||
<div style='font-size:.9em;'>
|
||||
<p>
|
||||
For information on writing PyQGIS code, see <a href="http://loc8.cc/pyqgis_resources">http://loc8.cc/pyqgis_resources</a> for a list of resources.
|
||||
</p>
|
||||
</div>
|
||||
<img src="http://geoapt.com/geoapt_logo_p.png" alt='GeoApt LLC' title='GeoApt LLC' align='absmiddle'>
|
||||
©2011-2015 GeoApt LLC - geoapt.com
|
||||
</body>
|
||||
</html>
|
||||
33
CenRa_COPIE/README.txt
Normal file
@ -0,0 +1,33 @@
|
||||
Plugin Builder Results
|
||||
|
||||
Your plugin Copie was created in:
|
||||
C:\Users\gcostes\.qgis2\python\plugins\Copie
|
||||
|
||||
Your QGIS plugin directory is located at:
|
||||
C:/Users/gcostes/.qgis2/python/plugins
|
||||
|
||||
What's Next:
|
||||
|
||||
* Copy the entire directory containing your new plugin to the QGIS plugin
|
||||
directory
|
||||
|
||||
* Compile the resources file using pyrcc4
|
||||
|
||||
* Run the tests (``make test``)
|
||||
|
||||
* Test the plugin by enabling it in the QGIS plugin manager
|
||||
|
||||
* Customize it by editing the implementation file: ``copie.py``
|
||||
|
||||
* Create your own custom icon, replacing the default icon.png
|
||||
|
||||
* Modify your user interface by opening Copie.ui in Qt Designer
|
||||
|
||||
* You can use the Makefile to compile your Ui and resource files when
|
||||
you make changes. This requires GNU make (gmake)
|
||||
|
||||
For more information, see the PyQGIS Developer Cookbook at:
|
||||
http://www.qgis.org/pyqgis-cookbook/index.html
|
||||
|
||||
(C) 2011-2014 GeoApt LLC - geoapt.com
|
||||
Git revision : $Format:%H$
|
||||
360
CenRa_COPIE/copie.py.bak
Normal file
@ -0,0 +1,360 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
Copie
|
||||
A QGIS plugin
|
||||
Permet la copie d'une table dans une base PostGis
|
||||
-------------------
|
||||
begin : 2015-04-13
|
||||
git sha : $Format:%H$
|
||||
copyright : (C) 2015 by Guillaume COSTES - CEN Rhône-Alpes
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
"""
|
||||
#from PyQt4.QtCore import *
|
||||
#from PyQt4.QtGui import *
|
||||
from qgis.core import *
|
||||
from qgis.gui import *
|
||||
# Initialize Qt resources from file resources.py
|
||||
import resources_rc
|
||||
# Import the code for the dialog
|
||||
from copie_dialog import CopieDialog
|
||||
import os.path
|
||||
|
||||
|
||||
class Copie:
|
||||
"""QGIS Plugin Implementation."""
|
||||
|
||||
def __init__(self, iface):
|
||||
"""Constructor.
|
||||
|
||||
:param iface: An interface instance that will be passed to this class
|
||||
which provides the hook by which you can manipulate the QGIS
|
||||
application at run time.
|
||||
:type iface: QgsInterface
|
||||
"""
|
||||
# Save reference to the QGIS interface
|
||||
self.iface = iface
|
||||
# initialize plugin directory
|
||||
self.plugin_dir = os.path.dirname(__file__)
|
||||
# initialize locale
|
||||
locale = QSettings().value('locale/userLocale')[0:2]
|
||||
locale_path = os.path.join(
|
||||
self.plugin_dir,
|
||||
'i18n',
|
||||
'Copie_{}.qm'.format(locale))
|
||||
|
||||
if os.path.exists(locale_path):
|
||||
self.translator = QTranslator()
|
||||
self.translator.load(locale_path)
|
||||
|
||||
if qVersion() > '4.3.3':
|
||||
QCoreApplication.installTranslator(self.translator)
|
||||
|
||||
# Create the dialog (after translation) and keep reference
|
||||
self.dlg = CopieDialog()
|
||||
|
||||
# Declare instance attributes
|
||||
self.actions = []
|
||||
self.menu = self.tr(u'&Copie')
|
||||
# TODO: We are going to let the user set this up in a future iteration
|
||||
self.toolbar = self.iface.addToolBar(u'Copie')
|
||||
self.toolbar.setObjectName(u'Copie')
|
||||
|
||||
# noinspection PyMethodMayBeStatic
|
||||
def tr(self, message):
|
||||
"""Get the translation for a string using Qt translation API.
|
||||
|
||||
We implement this ourselves since we do not inherit QObject.
|
||||
|
||||
:param message: String for translation.
|
||||
:type message: str, QString
|
||||
|
||||
:returns: Translated version of message.
|
||||
:rtype: QString
|
||||
"""
|
||||
# noinspection PyTypeChecker,PyArgumentList,PyCallByClass
|
||||
return QCoreApplication.translate('Copie', message)
|
||||
|
||||
|
||||
def add_action(
|
||||
self,
|
||||
icon_path,
|
||||
text,
|
||||
callback,
|
||||
enabled_flag=True,
|
||||
add_to_menu=True,
|
||||
add_to_toolbar=True,
|
||||
status_tip=None,
|
||||
whats_this=None,
|
||||
parent=None):
|
||||
"""Add a toolbar icon to the toolbar.
|
||||
|
||||
:param icon_path: Path to the icon for this action. Can be a resource
|
||||
path (e.g. ':/plugins/foo/bar.png') or a normal file system path.
|
||||
:type icon_path: str
|
||||
|
||||
:param text: Text that should be shown in menu items for this action.
|
||||
:type text: str
|
||||
|
||||
:param callback: Function to be called when the action is triggered.
|
||||
:type callback: function
|
||||
|
||||
:param enabled_flag: A flag indicating if the action should be enabled
|
||||
by default. Defaults to True.
|
||||
:type enabled_flag: bool
|
||||
|
||||
:param add_to_menu: Flag indicating whether the action should also
|
||||
be added to the menu. Defaults to True.
|
||||
:type add_to_menu: bool
|
||||
|
||||
:param add_to_toolbar: Flag indicating whether the action should also
|
||||
be added to the toolbar. Defaults to True.
|
||||
:type add_to_toolbar: bool
|
||||
|
||||
:param status_tip: Optional text to show in a popup when mouse pointer
|
||||
hovers over the action.
|
||||
:type status_tip: str
|
||||
|
||||
:param parent: Parent widget for the new action. Defaults None.
|
||||
:type parent: QWidget
|
||||
|
||||
:param whats_this: Optional text to show in the status bar when the
|
||||
mouse pointer hovers over the action.
|
||||
|
||||
:returns: The action that was created. Note that the action is also
|
||||
added to self.actions list.
|
||||
:rtype: QAction
|
||||
"""
|
||||
|
||||
icon = QIcon(icon_path)
|
||||
action = QAction(icon, text, parent)
|
||||
action.triggered.connect(callback)
|
||||
action.setEnabled(enabled_flag)
|
||||
|
||||
if status_tip is not None:
|
||||
action.setStatusTip(status_tip)
|
||||
|
||||
if whats_this is not None:
|
||||
action.setWhatsThis(whats_this)
|
||||
|
||||
if add_to_toolbar:
|
||||
self.toolbar.addAction(action)
|
||||
|
||||
if add_to_menu:
|
||||
self.iface.addPluginToMenu(
|
||||
self.menu,
|
||||
action)
|
||||
|
||||
self.actions.append(action)
|
||||
|
||||
return action
|
||||
|
||||
def initGui(self):
|
||||
"""Create the menu entries and toolbar icons inside the QGIS GUI."""
|
||||
|
||||
icon_path = ':/plugins/Copie/table_copie.png'
|
||||
self.add_action(
|
||||
icon_path,
|
||||
text=self.tr(u'Copie'),
|
||||
callback=self.run,
|
||||
parent=self.iface.mainWindow())
|
||||
|
||||
|
||||
def unload(self):
|
||||
"""Removes the plugin menu item and icon from QGIS GUI."""
|
||||
for action in self.actions:
|
||||
self.iface.removePluginMenu(
|
||||
self.tr(u'&Copie'),
|
||||
action)
|
||||
self.iface.removeToolBarIcon(action)
|
||||
# remove the toolbar
|
||||
del self.toolbar
|
||||
|
||||
|
||||
def run(self):
|
||||
"""Run method that performs all the real work"""
|
||||
layer = self.iface.activeLayer()
|
||||
|
||||
if layer == None :
|
||||
self.iface.messageBar().pushMessage(u"Vous devez sélectionner une table !", level=QgsMessageBar.WARNING, duration=5)
|
||||
|
||||
else :
|
||||
# Récupération des sources de la couche active
|
||||
list_sources = layer.source().split(" ")
|
||||
# dbname
|
||||
source_db = [s for s in list_sources if "dbname" in s][0].split("'")[1]
|
||||
# schema
|
||||
source_schema = [s for s in list_sources if "table" in s][0].split('"')[1]
|
||||
# tablename
|
||||
source_tablename = [s for s in list_sources if "table" in s][0].split('"')[3]
|
||||
|
||||
if source_db != 'sig4269':
|
||||
self.iface.messageBar().pushMessage(u"Un référentiel ne peut être copié, utilisez les filtres !", level=QgsMessageBar.CRITICAL, duration=10)
|
||||
|
||||
else :
|
||||
import psycopg2
|
||||
|
||||
config = "//100.100.100.100/bd_sig/z_QGIS/config.txt" # Chemin du fichier config
|
||||
# Fonction de lecture des lignes du fichier config
|
||||
def readline(n):
|
||||
with open(config, "r") as f:
|
||||
for lineno, line in enumerate(f):
|
||||
if lineno == n:
|
||||
return line.strip() # Permet d'enlever les retours chariots
|
||||
|
||||
host = readline(10)
|
||||
port = readline(12)
|
||||
dbname = readline(14)
|
||||
user = readline(16)
|
||||
password = readline(18)
|
||||
|
||||
con = psycopg2.connect("dbname="+ dbname + " user=" + user + " host=" + host + " password=" + password)
|
||||
cur = con.cursor()
|
||||
# Creation de la liste des schemas de la base de donnees
|
||||
SQL = """WITH list_schema AS (
|
||||
SELECT catalog_name, schema_name
|
||||
FROM information_schema.schemata
|
||||
WHERE schema_name <> 'information_schema'
|
||||
AND schema_name !~ E'^pg_'
|
||||
ORDER BY schema_name
|
||||
)
|
||||
|
||||
SELECT string_agg(schema_name,',')
|
||||
FROM list_schema
|
||||
GROUP BY catalog_name"""
|
||||
|
||||
cur.execute(SQL)
|
||||
|
||||
list_brut = str(cur.next())
|
||||
|
||||
list = list_brut [3:-3]
|
||||
listItems = list.split(",")
|
||||
|
||||
con.close()
|
||||
|
||||
self.dlg.schema.clear()
|
||||
self.dlg.schema.addItems(listItems)
|
||||
self.dlg.schema.setCurrentIndex(-1) # Pour ne pas commencer la liste au premier schema
|
||||
|
||||
|
||||
self.dlg.table_source.setText(source_schema + "." + source_tablename) # Affiche le nom de la table source
|
||||
# show the dialog
|
||||
self.dlg.show()
|
||||
# Run the dialog event loop
|
||||
result = self.dlg.exec_()
|
||||
# See if OK was pressed
|
||||
if result:
|
||||
#******************************debut script*********************************
|
||||
### config.txt
|
||||
config = "//100.100.100.100/bd_sig/z_QGIS/config.txt" # Chemin du fichier config
|
||||
|
||||
# Fonction de lecture des lignes du fichier config
|
||||
def readline(n):
|
||||
with open(config, "r") as f:
|
||||
for lineno, line in enumerate(f):
|
||||
if lineno == n:
|
||||
return line.strip() # Permet d'enlever les retours chariots
|
||||
|
||||
# Recuperation des donnees
|
||||
host = readline(10)
|
||||
port = readline(12)
|
||||
dbname = readline(14)
|
||||
user = readline(16)
|
||||
password = readline(18)
|
||||
|
||||
con = psycopg2.connect("dbname="+ dbname + " user=" + user + " host=" + host + " password=" + password)
|
||||
cur = con.cursor()
|
||||
|
||||
# Récupération de la couche active
|
||||
layer = self.iface.activeLayer()
|
||||
|
||||
# Récupération des sources de la couche active
|
||||
list_sources = layer.source().split(" ")
|
||||
# dbname
|
||||
source_db = [s for s in list_sources if "dbname" in s][0].split("'")[1]
|
||||
# schema
|
||||
source_schema = [s for s in list_sources if "table" in s][0].split('"')[1]
|
||||
# tablename
|
||||
source_tablename = [s for s in list_sources if "table" in s][0].split('"')[3]
|
||||
|
||||
if self.dlg.schema.currentIndex() == -1 :
|
||||
QMessageBox.warning(None, "Oups :", "Veuillez choisir un dossier de destination.")
|
||||
return
|
||||
|
||||
schema = self.dlg.schema.currentText()
|
||||
|
||||
if self.dlg.table_destination.text() == '' :
|
||||
QMessageBox.warning(None, "Oups :", "Veuillez choisir un nom de destination.")
|
||||
return
|
||||
|
||||
if self.dlg.annee.text() == 'aaaa' or self.dlg.annee.text() == '':
|
||||
tablename = schema + "_" + self.dlg.table_destination.text().lower()
|
||||
else :
|
||||
tablename = schema + "_" + self.dlg.table_destination.text().lower() + "_" + self.dlg.annee.text()
|
||||
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
|
||||
geom = readline(6)
|
||||
|
||||
if self.dlg.table_vide.isChecked() == 1 :
|
||||
SQL_table = "CREATE TABLE " + schema + "." + tablename + " AS SELECT * FROM " + source_schema + "." + source_tablename + " LIMIT 0;"
|
||||
else :
|
||||
SQL_table = "CREATE TABLE " + schema + "." + tablename + " AS SELECT * FROM " + source_schema + "." + source_tablename
|
||||
|
||||
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_sequence_01 = "CREATE SEQUENCE " + schema + "." + tablename + "_gid_seq" + " INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1;"
|
||||
SQL_sequence_02 = "ALTER TABLE " + schema + "." + tablename + " ALTER COLUMN gid SET DEFAULT nextval(\'" + schema + "." + tablename + "_gid_seq\'::regclass);"
|
||||
SQL_sequence_03 = "SELECT setval(\'" + schema + "." + tablename + "_gid_seq\'::regclass, (SELECT max(gid) AS max_gid FROM " + schema + "." + tablename + "));"
|
||||
SQL_sequence_04 = "ALTER SEQUENCE " + schema + "." + tablename + "_gid_seq" + " OWNED BY " + schema + "." + tablename + ".gid;"
|
||||
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_length_m = "CREATE TRIGGER length_m" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_m();"
|
||||
SQL_trigger_length_km = "CREATE TRIGGER length_km" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_km();"
|
||||
SQL_trigger_coordonnees = "CREATE TRIGGER coordonnees" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.coordonnees();"
|
||||
|
||||
cur.execute(SQL_table)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_sequence_01)
|
||||
cur.execute(SQL_sequence_02)
|
||||
cur.execute(SQL_sequence_03)
|
||||
cur.execute(SQL_sequence_04)
|
||||
|
||||
if layer.wkbType() == QGis.WKBPoint :
|
||||
cur.execute(SQL_trigger_coordonnees)
|
||||
|
||||
if layer.wkbType() == QGis.WKBMultiLineString :
|
||||
cur.execute(SQL_trigger_length_m)
|
||||
cur.execute(SQL_trigger_length_km)
|
||||
|
||||
if layer.wkbType() == QGis.WKBMultiPolygon :
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
|
||||
con.commit()
|
||||
|
||||
### Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
con.commit()
|
||||
con.close()
|
||||
|
||||
self.iface.messageBar().pushMessage("Table \"" + source_schema + "." + source_tablename + u"\" copiée dans \"" + schema + "." + tablename + "\"." , level=QgsMessageBar.INFO, duration=10)
|
||||
pass
|
||||
41
CenRa_COPIE/copie_dialog.py.bak
Normal file
@ -0,0 +1,41 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
CopieDialog
|
||||
A QGIS plugin
|
||||
Permet la copie d'une table dans une base PostGis
|
||||
-------------------
|
||||
begin : 2015-04-13
|
||||
git sha : $Format:%H$
|
||||
copyright : (C) 2015 by Guillaume COSTES - CEN Rhône-Alpes
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
from PyQt4 import QtGui, uic
|
||||
|
||||
FORM_CLASS, _ = uic.loadUiType(os.path.join(
|
||||
os.path.dirname(__file__), 'copie_dialog_base.ui'))
|
||||
|
||||
|
||||
class CopieDialog(QtGui.QDialog, FORM_CLASS):
|
||||
def __init__(self, parent=None):
|
||||
"""Constructor."""
|
||||
super(CopieDialog, self).__init__(parent)
|
||||
# Set up the user interface from Designer.
|
||||
# After setupUI you can access any designer object by doing
|
||||
# self.<objectname>, and you can use autoconnect slots - see
|
||||
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
|
||||
# #widgets-and-dialogs-with-auto-connect
|
||||
self.setupUi(self)
|
||||
106
CenRa_COPIE/copie_dialog_base.py.bak
Normal file
@ -0,0 +1,106 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'copie_dialog_base.ui'
|
||||
#
|
||||
# Created: Tue Apr 14 11:48:04 2015
|
||||
# by: PyQt4 UI code generator 4.10.2
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
try:
|
||||
_fromUtf8 = QtCore.QString.fromUtf8
|
||||
except AttributeError:
|
||||
def _fromUtf8(s):
|
||||
return s
|
||||
|
||||
try:
|
||||
_encoding = QtGui.QApplication.UnicodeUTF8
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig, _encoding)
|
||||
except AttributeError:
|
||||
def _translate(context, text, disambig):
|
||||
return QtGui.QApplication.translate(context, text, disambig)
|
||||
|
||||
class Ui_CopieDialogBase(object):
|
||||
def setupUi(self, CopieDialogBase):
|
||||
CopieDialogBase.setObjectName(_fromUtf8("CopieDialogBase"))
|
||||
CopieDialogBase.resize(386, 290)
|
||||
self.button_box = QtGui.QDialogButtonBox(CopieDialogBase)
|
||||
self.button_box.setGeometry(QtCore.QRect(100, 250, 161, 32))
|
||||
self.button_box.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
||||
self.button_box.setObjectName(_fromUtf8("button_box"))
|
||||
self.schema_label = QtGui.QLabel(CopieDialogBase)
|
||||
self.schema_label.setGeometry(QtCore.QRect(20, 100, 121, 29))
|
||||
self.schema_label.setMaximumSize(QtCore.QSize(10000, 16777215))
|
||||
self.schema_label.setObjectName(_fromUtf8("schema_label"))
|
||||
self.label_nom_table = QtGui.QLabel(CopieDialogBase)
|
||||
self.label_nom_table.setGeometry(QtCore.QRect(20, 150, 131, 29))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
self.label_nom_table.setFont(font)
|
||||
self.label_nom_table.setObjectName(_fromUtf8("label_nom_table"))
|
||||
self.schema = QtGui.QComboBox(CopieDialogBase)
|
||||
self.schema.setGeometry(QtCore.QRect(20, 130, 351, 20))
|
||||
self.schema.setObjectName(_fromUtf8("schema"))
|
||||
self.table_destination = QtGui.QLineEdit(CopieDialogBase)
|
||||
self.table_destination.setGeometry(QtCore.QRect(20, 180, 291, 20))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
self.table_destination.setFont(font)
|
||||
self.table_destination.setObjectName(_fromUtf8("table_destination"))
|
||||
self.annee = QtGui.QLineEdit(CopieDialogBase)
|
||||
self.annee.setGeometry(QtCore.QRect(320, 180, 50, 20))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
self.annee.setFont(font)
|
||||
self.annee.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.annee.setObjectName(_fromUtf8("annee"))
|
||||
self.table_vide = QtGui.QCheckBox(CopieDialogBase)
|
||||
self.table_vide.setGeometry(QtCore.QRect(60, 220, 271, 20))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
self.table_vide.setFont(font)
|
||||
self.table_vide.setObjectName(_fromUtf8("table_vide"))
|
||||
self.table_source = QtGui.QLineEdit(CopieDialogBase)
|
||||
self.table_source.setEnabled(False)
|
||||
self.table_source.setGeometry(QtCore.QRect(20, 60, 351, 20))
|
||||
font = QtGui.QFont()
|
||||
font.setBold(False)
|
||||
font.setWeight(50)
|
||||
self.table_source.setFont(font)
|
||||
self.table_source.setObjectName(_fromUtf8("table_source"))
|
||||
self.Titre = QtGui.QLabel(CopieDialogBase)
|
||||
self.Titre.setGeometry(QtCore.QRect(0, 0, 381, 31))
|
||||
font = QtGui.QFont()
|
||||
font.setPointSize(14)
|
||||
font.setBold(True)
|
||||
font.setWeight(75)
|
||||
self.Titre.setFont(font)
|
||||
self.Titre.setAlignment(QtCore.Qt.AlignCenter)
|
||||
self.Titre.setObjectName(_fromUtf8("Titre"))
|
||||
self.table_source_label = QtGui.QLabel(CopieDialogBase)
|
||||
self.table_source_label.setGeometry(QtCore.QRect(20, 30, 75, 29))
|
||||
self.table_source_label.setMaximumSize(QtCore.QSize(75, 16777215))
|
||||
self.table_source_label.setObjectName(_fromUtf8("table_source_label"))
|
||||
|
||||
self.retranslateUi(CopieDialogBase)
|
||||
QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("accepted()")), CopieDialogBase.accept)
|
||||
QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("rejected()")), CopieDialogBase.reject)
|
||||
QtCore.QMetaObject.connectSlotsByName(CopieDialogBase)
|
||||
|
||||
def retranslateUi(self, CopieDialogBase):
|
||||
CopieDialogBase.setWindowTitle(_translate("CopieDialogBase", "Copie", None))
|
||||
self.schema_label.setText(_translate("CopieDialogBase", "Dossier de destination ", None))
|
||||
self.label_nom_table.setText(_translate("CopieDialogBase", "Nom de la nouvelle table", None))
|
||||
self.annee.setText(_translate("CopieDialogBase", "aaaa", None))
|
||||
self.table_vide.setText(_translate("CopieDialogBase", "Cocher cette case pour vider la table de destination", None))
|
||||
self.Titre.setText(_translate("CopieDialogBase", "Copie d\'une table", None))
|
||||
self.table_source_label.setText(_translate("CopieDialogBase", "Table source ", None))
|
||||
|
||||
46
CenRa_COPIE/forms/about_form.py
Normal file
@ -0,0 +1,46 @@
|
||||
import os.path
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtGui import QPixmap
|
||||
from qgis.PyQt.QtWidgets import QDialog
|
||||
|
||||
from ..tools.resources import devlog
|
||||
|
||||
ABOUT_FORM_CLASS, _ = uic.loadUiType(
|
||||
os.path.join(
|
||||
str(Path(__file__).resolve().parent.parent),
|
||||
'forms',
|
||||
'copie_about_form.ui'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class CopieAboutDialog(QDialog, ABOUT_FORM_CLASS):
|
||||
|
||||
""" About - Let the user display the about dialog. """
|
||||
|
||||
def __init__(self, iface, parent=None):
|
||||
super().__init__(parent)
|
||||
self.iface = iface
|
||||
self.setupUi(self)
|
||||
|
||||
self.viewer.setHtml(devlog('CenRa_COPIE'))
|
||||
|
||||
self.rejected.connect(self.onReject)
|
||||
self.buttonBox.rejected.connect(self.onReject)
|
||||
self.buttonBox.accepted.connect(self.onAccept)
|
||||
|
||||
def onAccept(self):
|
||||
"""
|
||||
Save options when pressing OK button
|
||||
"""
|
||||
self.accept()
|
||||
|
||||
def onReject(self):
|
||||
"""
|
||||
Run some actions when
|
||||
the user closes the dialog
|
||||
"""
|
||||
self.close()
|
||||
96
CenRa_COPIE/forms/copie_about_form.ui
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_Metabase_editorwidget_base</class>
|
||||
<widget class="QDialog" name="CenRa_Metabase_editorwidget_base">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>471</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>COPIE</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
<normaloff>../../CenRa_Metabase/tools/ui/icon.svg</normaloff>../../CenRa_Metabase/tools/ui/icon.svg</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>453</width>
|
||||
<height>547</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>451</width>
|
||||
<height>541</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>DevLog</string>
|
||||
</property>
|
||||
<widget class="QWebView" name="viewer" native="true">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>431</width>
|
||||
<height>511</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">QtWebKitWidgets/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
130
CenRa_COPIE/help/Makefile
Normal file
@ -0,0 +1,130 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
|
||||
clean:
|
||||
-rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/template_class.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/template_class.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/template_class"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/template_class"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
make -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
155
CenRa_COPIE/help/make.bat
Normal file
@ -0,0 +1,155 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\template_class.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\template_class.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
||||
216
CenRa_COPIE/help/source/conf.py
Normal file
@ -0,0 +1,216 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copie documentation build configuration file, created by
|
||||
# sphinx-quickstart on Sun Feb 12 17:11:03 2012.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys, os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
extensions = ['sphinx.ext.todo', 'sphinx.ext.pngmath', 'sphinx.ext.viewcode']
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'Copie'
|
||||
copyright = u'2013, Guillaume COSTES - CEN Rhône-Alpes'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.1'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.1'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = []
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_TemplateModuleNames = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'default'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'TemplateClassdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
||||
# The paper size ('letter' or 'a4').
|
||||
#latex_paper_size = 'letter'
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#latex_font_size = '10pt'
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'Copie.tex', u'Copie Documentation',
|
||||
u'Guillaume COSTES - CEN Rhône-Alpes', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#latex_preamble = ''
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output --------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'TemplateClass', u'Copie Documentation',
|
||||
[u'Guillaume COSTES - CEN Rhône-Alpes'], 1)
|
||||
]
|
||||
20
CenRa_COPIE/help/source/index.rst
Normal file
@ -0,0 +1,20 @@
|
||||
.. Copie documentation master file, created by
|
||||
sphinx-quickstart on Sun Feb 12 17:11:03 2012.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to Copie's documentation!
|
||||
============================================
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
||||
11
CenRa_COPIE/i18n/af.ts
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS><TS version="2.0" language="af" sourcelanguage="en">
|
||||
<context>
|
||||
<name>@default</name>
|
||||
<message>
|
||||
<location filename="test_translations.py" line="48"/>
|
||||
<source>Good morning</source>
|
||||
<translation>Goeie more</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
74
CenRa_COPIE/pb_tool.cfg
Normal file
@ -0,0 +1,74 @@
|
||||
#/***************************************************************************
|
||||
# Copie
|
||||
#
|
||||
# Configuration file for plugin builder tool (pb_tool)
|
||||
# -------------------
|
||||
# begin : 2015-04-13
|
||||
# copyright : (C) 2015 by Guillaume COSTES - CEN Rhône-Alpes
|
||||
# email : guillaume.costes@espaces-naturels.fr
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#/***************************************************************************
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU General Public License as published by *
|
||||
# * the Free Software Foundation; either version 2 of the License, or *
|
||||
# * (at your option) any later version. *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#
|
||||
# You can install pb_tool using:
|
||||
# pip install http://geoapt.net/files/pb_tool.zip
|
||||
#
|
||||
# Consider doing your development (and install of pb_tool) in a virtualenv.
|
||||
#
|
||||
# For details on setting up and using pb_tool, see:
|
||||
# http://spatialgalaxy.net/qgis-plugin-development-with-pb_tool
|
||||
#
|
||||
# Issues and pull requests here:
|
||||
# https://github.com/g-sherman/plugin_build_tool:
|
||||
#
|
||||
# Sane defaults for your plugin generated by the Plugin Builder are
|
||||
# already set below.
|
||||
#
|
||||
# As you add Python source files and UI files to your plugin, add
|
||||
# them to the appropriate [files] section below.
|
||||
|
||||
[plugin]
|
||||
# Name of the plugin. This is the name of the directory that will
|
||||
# be created in .qgis2/python/plugins
|
||||
name: Copie
|
||||
|
||||
[files]
|
||||
# Python files that should be deployed with the plugin
|
||||
python_files: __init__.py copie.py copie_dialog.py
|
||||
|
||||
# The main dialog file that is loaded (not compiled)
|
||||
main_dialog: copie_dialog_base.ui
|
||||
|
||||
# Other ui files for dialogs you create (these will be compiled)
|
||||
compiled_ui_files:
|
||||
|
||||
# Resource file(s) that will be compiled
|
||||
resource_files: resources.qrc
|
||||
|
||||
# Other files required for the plugin
|
||||
extras: icon.png metadata.txt
|
||||
|
||||
# Other directories to be deployed with the plugin.
|
||||
# These must be subdirectories under the plugin directory
|
||||
extra_dirs:
|
||||
|
||||
# ISO code(s) for any locales (translations), separated by spaces.
|
||||
# Corresponding .ts files must exist in the i18n directory
|
||||
locales:
|
||||
|
||||
[help]
|
||||
# the built help directory that should be deployed with the plugin
|
||||
dir: help/build/html
|
||||
# the name of the directory to target in the deployed plugin
|
||||
target: help
|
||||
|
||||
|
||||
|
||||
107
CenRa_COPIE/plugin_upload.py.bak
Normal file
@ -0,0 +1,107 @@
|
||||
#!/usr/bin/env python
|
||||
# coding=utf-8
|
||||
"""This script uploads a plugin package on the server.
|
||||
Authors: A. Pasotti, V. Picavet
|
||||
git sha : $TemplateVCSFormat
|
||||
"""
|
||||
|
||||
import sys
|
||||
import getpass
|
||||
import xmlrpclib
|
||||
from optparse import OptionParser
|
||||
|
||||
# Configuration
|
||||
PROTOCOL = 'http'
|
||||
SERVER = 'plugins.qgis.org'
|
||||
PORT = '80'
|
||||
ENDPOINT = '/plugins/RPC2/'
|
||||
VERBOSE = False
|
||||
|
||||
|
||||
def main(parameters, arguments):
|
||||
"""Main entry point.
|
||||
|
||||
:param parameters: Command line parameters.
|
||||
:param arguments: Command line arguments.
|
||||
"""
|
||||
address = "%s://%s:%s@%s:%s%s" % (
|
||||
PROTOCOL,
|
||||
parameters.username,
|
||||
parameters.password,
|
||||
parameters.server,
|
||||
parameters.port,
|
||||
ENDPOINT)
|
||||
print "Connecting to: %s" % hide_password(address)
|
||||
|
||||
server = xmlrpclib.ServerProxy(address, verbose=VERBOSE)
|
||||
|
||||
try:
|
||||
plugin_id, version_id = server.plugin.upload(
|
||||
xmlrpclib.Binary(open(arguments[0]).read()))
|
||||
print "Plugin ID: %s" % plugin_id
|
||||
print "Version ID: %s" % version_id
|
||||
except xmlrpclib.ProtocolError, err:
|
||||
print "A protocol error occurred"
|
||||
print "URL: %s" % hide_password(err.url, 0)
|
||||
print "HTTP/HTTPS headers: %s" % err.headers
|
||||
print "Error code: %d" % err.errcode
|
||||
print "Error message: %s" % err.errmsg
|
||||
except xmlrpclib.Fault, err:
|
||||
print "A fault occurred"
|
||||
print "Fault code: %d" % err.faultCode
|
||||
print "Fault string: %s" % err.faultString
|
||||
|
||||
|
||||
def hide_password(url, start=6):
|
||||
"""Returns the http url with password part replaced with '*'.
|
||||
|
||||
:param url: URL to upload the plugin to.
|
||||
:type url: str
|
||||
|
||||
:param start: Position of start of password.
|
||||
:type start: int
|
||||
"""
|
||||
start_position = url.find(':', start) + 1
|
||||
end_position = url.find('@')
|
||||
return "%s%s%s" % (
|
||||
url[:start_position],
|
||||
'*' * (end_position - start_position),
|
||||
url[end_position:])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = OptionParser(usage="%prog [options] plugin.zip")
|
||||
parser.add_option(
|
||||
"-w", "--password", dest="password",
|
||||
help="Password for plugin site", metavar="******")
|
||||
parser.add_option(
|
||||
"-u", "--username", dest="username",
|
||||
help="Username of plugin site", metavar="user")
|
||||
parser.add_option(
|
||||
"-p", "--port", dest="port",
|
||||
help="Server port to connect to", metavar="80")
|
||||
parser.add_option(
|
||||
"-s", "--server", dest="server",
|
||||
help="Specify server name", metavar="plugins.qgis.org")
|
||||
options, args = parser.parse_args()
|
||||
if len(args) != 1:
|
||||
print "Please specify zip file.\n"
|
||||
parser.print_help()
|
||||
sys.exit(1)
|
||||
if not options.server:
|
||||
options.server = SERVER
|
||||
if not options.port:
|
||||
options.port = PORT
|
||||
if not options.username:
|
||||
# interactive mode
|
||||
username = getpass.getuser()
|
||||
print "Please enter user name [%s] :" % username,
|
||||
res = raw_input()
|
||||
if res != "":
|
||||
options.username = res
|
||||
else:
|
||||
options.username = username
|
||||
if not options.password:
|
||||
# interactive mode
|
||||
options.password = getpass.getpass()
|
||||
main(options, args)
|
||||
281
CenRa_COPIE/pylintrc
Normal file
@ -0,0 +1,281 @@
|
||||
[MASTER]
|
||||
|
||||
# Specify a configuration file.
|
||||
#rcfile=
|
||||
|
||||
# Python code to execute, usually for sys.path manipulation such as
|
||||
# pygtk.require().
|
||||
#init-hook=
|
||||
|
||||
# Profiled execution.
|
||||
profile=no
|
||||
|
||||
# Add files or directories to the blacklist. They should be base names, not
|
||||
# paths.
|
||||
ignore=CVS
|
||||
|
||||
# Pickle collected data for later comparisons.
|
||||
persistent=yes
|
||||
|
||||
# List of plugins (as comma separated values of python modules names) to load,
|
||||
# usually to register additional checkers.
|
||||
load-plugins=
|
||||
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
# either give multiple identifier separated by comma (,) or put this option
|
||||
# multiple time. See also the "--disable" option for examples.
|
||||
#enable=
|
||||
|
||||
# Disable the message, report, category or checker with the given id(s). You
|
||||
# can either give multiple identifiers separated by comma (,) or put this
|
||||
# option multiple times (only on the command line, not in the configuration
|
||||
# file where it should appear only once).You can also use "--disable=all" to
|
||||
# disable everything first and then reenable specific checks. For example, if
|
||||
# you want to run only the similarities checker, you can use "--disable=all
|
||||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||
# --disable=W"
|
||||
# see http://stackoverflow.com/questions/21487025/pylint-locally-defined-disables-still-give-warnings-how-to-suppress-them
|
||||
disable=locally-disabled,C0103
|
||||
|
||||
|
||||
[REPORTS]
|
||||
|
||||
# Set the output format. Available formats are text, parseable, colorized, msvs
|
||||
# (visual studio) and html. You can also give a reporter class, eg
|
||||
# mypackage.mymodule.MyReporterClass.
|
||||
output-format=text
|
||||
|
||||
# Put messages in a separate file for each module / package specified on the
|
||||
# command line instead of printing them on stdout. Reports (if any) will be
|
||||
# written in a file name "pylint_global.[txt|html]".
|
||||
files-output=no
|
||||
|
||||
# Tells whether to display a full report or only the messages
|
||||
reports=yes
|
||||
|
||||
# Python expression which should return a note less than 10 (10 is the highest
|
||||
# note). You have access to the variables errors warning, statement which
|
||||
# respectively contain the number of errors / warnings messages and the total
|
||||
# number of statements analyzed. This is used by the global evaluation report
|
||||
# (RP0004).
|
||||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||
|
||||
# Add a comment according to your evaluation note. This is used by the global
|
||||
# evaluation report (RP0004).
|
||||
comment=no
|
||||
|
||||
# Template used to display messages. This is a python new-style format string
|
||||
# used to format the message information. See doc for all details
|
||||
#msg-template=
|
||||
|
||||
|
||||
[BASIC]
|
||||
|
||||
# Required attributes for module, separated by a comma
|
||||
required-attributes=
|
||||
|
||||
# List of builtins function names that should not be used, separated by a comma
|
||||
bad-functions=map,filter,apply,input
|
||||
|
||||
# Regular expression which should only match correct module names
|
||||
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||
|
||||
# Regular expression which should only match correct module level names
|
||||
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
||||
|
||||
# Regular expression which should only match correct class names
|
||||
class-rgx=[A-Z_][a-zA-Z0-9]+$
|
||||
|
||||
# Regular expression which should only match correct function names
|
||||
function-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct method names
|
||||
method-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct instance attribute names
|
||||
attr-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct argument names
|
||||
argument-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct variable names
|
||||
variable-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct attribute names in class
|
||||
# bodies
|
||||
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
|
||||
|
||||
# Regular expression which should only match correct list comprehension /
|
||||
# generator expression variable names
|
||||
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
||||
|
||||
# Good variable names which should always be accepted, separated by a comma
|
||||
good-names=i,j,k,ex,Run,_
|
||||
|
||||
# Bad variable names which should always be refused, separated by a comma
|
||||
bad-names=foo,bar,baz,toto,tutu,tata
|
||||
|
||||
# Regular expression which should only match function or class names that do
|
||||
# not require a docstring.
|
||||
no-docstring-rgx=__.*__
|
||||
|
||||
# Minimum line length for functions/classes that require docstrings, shorter
|
||||
# ones are exempt.
|
||||
docstring-min-length=-1
|
||||
|
||||
|
||||
[MISCELLANEOUS]
|
||||
|
||||
# List of note tags to take in consideration, separated by a comma.
|
||||
notes=FIXME,XXX,TODO
|
||||
|
||||
|
||||
[TYPECHECK]
|
||||
|
||||
# Tells whether missing members accessed in mixin class should be ignored. A
|
||||
# mixin class is detected if its name ends with "mixin" (case insensitive).
|
||||
ignore-mixin-members=yes
|
||||
|
||||
# List of classes names for which member attributes should not be checked
|
||||
# (useful for classes with attributes dynamically set).
|
||||
ignored-classes=SQLObject
|
||||
|
||||
# When zope mode is activated, add a predefined set of Zope acquired attributes
|
||||
# to generated-members.
|
||||
zope=no
|
||||
|
||||
# List of members which are set dynamically and missed by pylint inference
|
||||
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
||||
# expressions are accepted.
|
||||
generated-members=REQUEST,acl_users,aq_parent
|
||||
|
||||
|
||||
[VARIABLES]
|
||||
|
||||
# Tells whether we should check for unused import in __init__ files.
|
||||
init-import=no
|
||||
|
||||
# A regular expression matching the beginning of the name of dummy variables
|
||||
# (i.e. not used).
|
||||
dummy-variables-rgx=_$|dummy
|
||||
|
||||
# List of additional names supposed to be defined in builtins. Remember that
|
||||
# you should avoid to define new builtins when possible.
|
||||
additional-builtins=
|
||||
|
||||
|
||||
[FORMAT]
|
||||
|
||||
# Maximum number of characters on a single line.
|
||||
max-line-length=80
|
||||
|
||||
# Regexp for a line that is allowed to be longer than the limit.
|
||||
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||
|
||||
# Allow the body of an if to be on the same line as the test if there is no
|
||||
# else.
|
||||
single-line-if-stmt=no
|
||||
|
||||
# List of optional constructs for which whitespace checking is disabled
|
||||
no-space-check=trailing-comma,dict-separator
|
||||
|
||||
# Maximum number of lines in a module
|
||||
max-module-lines=1000
|
||||
|
||||
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
|
||||
# tab).
|
||||
indent-string=' '
|
||||
|
||||
|
||||
[SIMILARITIES]
|
||||
|
||||
# Minimum lines number of a similarity.
|
||||
min-similarity-lines=4
|
||||
|
||||
# Ignore comments when computing similarities.
|
||||
ignore-comments=yes
|
||||
|
||||
# Ignore docstrings when computing similarities.
|
||||
ignore-docstrings=yes
|
||||
|
||||
# Ignore imports when computing similarities.
|
||||
ignore-imports=no
|
||||
|
||||
|
||||
[IMPORTS]
|
||||
|
||||
# Deprecated modules which should not be used, separated by a comma
|
||||
deprecated-modules=regsub,TERMIOS,Bastion,rexec
|
||||
|
||||
# Create a graph of every (i.e. internal and external) dependencies in the
|
||||
# given file (report RP0402 must not be disabled)
|
||||
import-graph=
|
||||
|
||||
# Create a graph of external dependencies in the given file (report RP0402 must
|
||||
# not be disabled)
|
||||
ext-import-graph=
|
||||
|
||||
# Create a graph of internal dependencies in the given file (report RP0402 must
|
||||
# not be disabled)
|
||||
int-import-graph=
|
||||
|
||||
|
||||
[DESIGN]
|
||||
|
||||
# Maximum number of arguments for function / method
|
||||
max-args=5
|
||||
|
||||
# Argument names that match this expression will be ignored. Default to name
|
||||
# with leading underscore
|
||||
ignored-argument-names=_.*
|
||||
|
||||
# Maximum number of locals for function / method body
|
||||
max-locals=15
|
||||
|
||||
# Maximum number of return / yield for function / method body
|
||||
max-returns=6
|
||||
|
||||
# Maximum number of branch for function / method body
|
||||
max-branches=12
|
||||
|
||||
# Maximum number of statements in function / method body
|
||||
max-statements=50
|
||||
|
||||
# Maximum number of parents for a class (see R0901).
|
||||
max-parents=7
|
||||
|
||||
# Maximum number of attributes for a class (see R0902).
|
||||
max-attributes=7
|
||||
|
||||
# Minimum number of public methods for a class (see R0903).
|
||||
min-public-methods=2
|
||||
|
||||
# Maximum number of public methods for a class (see R0904).
|
||||
max-public-methods=20
|
||||
|
||||
|
||||
[CLASSES]
|
||||
|
||||
# List of interface methods to ignore, separated by a comma. This is used for
|
||||
# instance to not check methods defines in Zope's Interface base class.
|
||||
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
|
||||
|
||||
# List of method names used to declare (i.e. assign) instance attributes.
|
||||
defining-attr-methods=__init__,__new__,setUp
|
||||
|
||||
# List of valid names for the first argument in a class method.
|
||||
valid-classmethod-first-arg=cls
|
||||
|
||||
# List of valid names for the first argument in a metaclass class method.
|
||||
valid-metaclass-classmethod-first-arg=mcs
|
||||
|
||||
|
||||
[EXCEPTIONS]
|
||||
|
||||
# Exceptions that will emit a warning when being caught. Defaults to
|
||||
# "Exception"
|
||||
overgeneral-exceptions=Exception
|
||||
441
CenRa_COPIE/resources_rc.py
Normal file
@ -0,0 +1,441 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Resource object code
|
||||
#
|
||||
# Created by: The Resource Compiler for PyQt5 (Qt v5.15.2)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt5 import QtCore
|
||||
|
||||
qt_resource_data = b"\
|
||||
\x00\x00\x13\x71\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x32\x00\x00\x00\x3d\x08\x06\x00\x00\x00\xef\x69\x3a\x64\
|
||||
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x2e\x23\x00\x00\x2e\x23\
|
||||
\x01\x78\xa5\x3f\x76\x00\x00\x00\x20\x63\x48\x52\x4d\x00\x00\x7a\
|
||||
\x25\x00\x00\x80\x83\x00\x00\xf9\xff\x00\x00\x80\xe9\x00\x00\x75\
|
||||
\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x6f\x92\x5f\xc5\
|
||||
\x46\x00\x00\x12\xf7\x49\x44\x41\x54\x78\xda\xbc\x9a\x79\x78\x5d\
|
||||
\x75\x99\xc7\x3f\xbf\xb3\xde\x2d\x37\x49\x93\xb4\x69\x93\x74\x23\
|
||||
\x5d\xd2\x9d\x96\x16\x0a\x94\x82\x0a\xb2\x29\xa8\xa0\x28\xe0\x02\
|
||||
\x8f\x32\xe3\xe8\x30\x8a\x0b\x33\xe3\xf3\x80\x88\x0c\x33\x32\xa2\
|
||||
\xc8\x8c\x3e\x08\x8e\x0f\x08\x82\x6c\xa3\xc8\xbe\x43\x0b\xa4\x14\
|
||||
\xda\xa4\x4d\x4a\x93\xb4\x49\x9b\x7d\xbd\xb9\xb9\xb9\xdb\x59\xe7\
|
||||
\x8f\x7b\xee\xed\xbd\x69\x9a\x05\x75\xde\xe7\x39\xcf\x73\x97\x73\
|
||||
\xce\xef\x7c\x7f\xef\xf6\x7d\xdf\xf7\x88\x3b\x9e\x39\x93\xac\x38\
|
||||
\xae\x8d\x5f\x0d\x73\xfe\xda\x1b\x79\xb6\xf1\x36\x92\xe6\x18\xb2\
|
||||
\xa4\xaa\x40\x0d\x50\x0b\x2c\x06\x96\x00\xf3\x81\x72\x60\x0e\x10\
|
||||
\x02\xfc\x80\x0f\x50\xc8\x13\x17\x57\xd8\xb6\x61\x5d\x71\xda\xdd\
|
||||
\x6e\x2c\x35\x94\x7c\x6a\xcf\x0f\xa2\x9a\x12\x8c\x01\x11\xef\xe8\
|
||||
\x07\xba\x80\x3e\xe0\xa8\xf7\x79\x04\x30\x01\x6c\xc7\xc4\x76\x4d\
|
||||
\xce\x5f\x73\x23\x8b\xca\x36\x31\x9e\x1a\x60\x34\x7e\x14\xc3\x4c\
|
||||
\x20\x84\xc8\x5f\xaa\x70\xe1\xac\xc8\x42\x41\x96\xb5\x6d\x46\x32\
|
||||
\x7e\x99\x2c\xe9\x67\x28\xb2\xbe\x5c\x12\x52\x11\xb3\x14\x81\xc0\
|
||||
\x76\x4d\xc6\x92\x03\xcc\x2f\xa9\x43\x91\x7d\xb8\x38\x08\xa4\xc9\
|
||||
\x4e\x37\x80\xa8\xeb\x3a\x47\x6c\xc7\x3c\x68\xbb\x56\x83\xe3\x98\
|
||||
\x7b\xc1\xdd\x6b\x3b\xe6\xa0\xeb\xba\x53\xae\xa5\x4c\x5c\xd8\x71\
|
||||
\xac\x6a\xd3\x49\xdf\x79\xc9\xc6\xdb\x3e\x35\x30\xd6\x22\x1f\xea\
|
||||
\xdf\x41\xe7\xc8\x5e\x12\xc6\x28\xaa\xec\x43\x96\xd4\xd9\xa1\x71\
|
||||
\x21\x96\xea\xa3\x56\x3f\x13\x5d\x09\x92\xb6\xe2\x4c\xd8\x4c\x1c\
|
||||
\xd7\xc6\xb2\xd3\x9a\x8b\x53\xe1\x53\xc3\x15\x73\x82\x0b\x4f\x29\
|
||||
\x2f\x5a\x7a\x65\x59\x68\x11\x41\xbd\xbc\xaf\xb2\x78\xe5\x6e\x45\
|
||||
\xd6\x9f\x75\x5d\xf7\x61\xd7\xb5\x47\xa6\x07\x22\xa4\x45\xa6\x93\
|
||||
\xfa\xf3\x33\x8d\x3f\x5e\x53\x1e\x5a\xc2\x49\x73\xcf\xe0\xb4\xda\
|
||||
\x2f\x73\x96\x12\xa0\xa5\xef\x35\xf6\x1e\x79\x9c\x68\xb2\x1f\x5d\
|
||||
\x09\x22\x84\x34\x63\x2c\x86\x95\x44\x57\x82\x68\x4a\x80\x94\x19\
|
||||
\x03\x21\x93\x35\x1d\xd3\x4e\x11\xd0\x4a\x58\x5c\xbe\x99\xda\x79\
|
||||
\xdb\xa8\x2e\x5d\x4f\x69\x68\x21\x8a\xa4\x67\x2f\xaf\x04\x2e\x06\
|
||||
\x2e\xd6\xd4\xd0\x75\x89\xf4\xd0\x55\x86\x95\xdc\x27\x26\x18\x53\
|
||||
\xfe\x37\x0d\xb8\x17\xc4\x1a\xcb\x4e\xd1\x15\x69\xe4\xc8\xf0\x6e\
|
||||
\x74\xa5\x88\xc5\x15\x9b\x39\x75\xe9\xd5\xac\xab\xf9\x04\xef\xb4\
|
||||
\xdd\xcf\x9e\x23\x8f\x83\x00\x45\xf2\x65\xb6\x7c\x5a\x13\x03\x21\
|
||||
\x64\x24\x0f\x80\xe3\xda\x18\x56\x82\x62\x7f\x25\xab\xab\x2f\x60\
|
||||
\x4d\xd5\x85\x54\x84\x97\x4d\x7b\x1f\xbf\x56\xb2\x6e\xd9\x82\x73\
|
||||
\x1f\xed\x18\x78\x73\x9b\x65\xa5\x07\xf3\x37\x33\x1f\xc8\xa5\xc0\
|
||||
\xc7\xf0\x16\x55\x65\x19\x55\xf6\xe1\xba\x0e\x2d\x7d\xaf\x73\xa8\
|
||||
\x7f\x27\x6b\xab\x2f\xe2\xec\xba\x6f\xb2\xbc\xf2\x6c\x9e\x6e\xf8\
|
||||
\x21\x63\xc9\x7e\x34\x25\x30\xed\x03\xe8\x6a\x51\x4e\x83\x86\x15\
|
||||
\xc7\xaf\x95\x70\xda\x49\x5f\xe4\x94\xa5\x57\x50\xec\x5f\x70\xdc\
|
||||
\xf9\xa6\x95\x60\x68\xbc\x9d\x48\xbc\x93\xb1\x64\x2f\xe3\xe9\x11\
|
||||
\x1c\xc7\x04\x21\x08\x68\x73\x56\x58\x76\xf2\xfa\xb4\x11\xfd\xc1\
|
||||
\x89\x80\x5c\x3d\xe9\x6e\x0a\x09\x5d\x09\xe2\xba\x0e\xef\x1f\x7d\
|
||||
\x9c\xce\xc8\x5e\x2e\xdb\x7c\x27\x57\x9e\x7e\x0f\x8f\xed\xfa\x16\
|
||||
\x83\xb1\xc3\x68\x4a\xf0\xc4\x9a\x11\x10\xd2\xcb\x71\x5c\x9b\x84\
|
||||
\x11\xa1\x7a\xce\x06\xce\x5d\xf3\x5d\xaa\x4a\xd7\x15\x9c\x96\xb6\
|
||||
\xc6\xe9\x18\xac\xa7\xad\xff\x0d\x7a\x22\x4d\x8c\xa5\xfa\x30\xac\
|
||||
\x04\xae\xeb\xe4\xe9\xd5\xc5\x05\x64\x49\xbd\x5c\x12\xf2\x6d\x40\
|
||||
\x22\xb7\x8c\x17\x7e\x2b\x80\xfd\xc0\xdc\xe9\x8c\x24\xb3\xa3\x61\
|
||||
\x3e\x7f\xda\x2f\x09\xe8\xa5\x3c\xb8\xf3\x3a\x46\x93\xdd\xa8\xb2\
|
||||
\x6f\x12\x3f\x77\x71\x6c\x93\x2b\xb6\xfe\x37\x65\xa1\x45\xec\x6e\
|
||||
\x7f\x98\xad\xb5\xd7\x14\x68\x31\x9e\x1e\xa2\xb1\xf3\x4f\xec\xeb\
|
||||
\x7c\x9a\xe1\xf1\x76\x1c\xd7\x41\x91\x35\x64\xa1\x7a\x21\x56\x9c\
|
||||
\x20\x84\xb8\x67\x01\x3b\xb2\x3f\x64\x75\x73\x92\x97\x17\xa6\x0d\
|
||||
\x41\x9a\x12\x24\x65\x8c\xf1\xd8\xae\x6f\x21\x09\x95\x4f\x9d\x72\
|
||||
\x3b\xaa\xec\xc3\x71\xad\xe3\xcf\x76\x6d\x7c\x5a\x31\x25\xc1\x6a\
|
||||
\x02\x5a\x29\xdb\x57\x7e\x23\x07\xc2\x75\x6d\xde\xef\xf8\x03\xf7\
|
||||
\xef\xf8\x0a\x2f\x37\xff\x9c\x48\xbc\x13\x4d\x09\xe0\x53\x8b\x50\
|
||||
\x24\xdd\x33\x45\x31\x85\xdb\x89\x8d\x9e\xf7\x41\x5e\x40\x5f\x90\
|
||||
\x07\x6a\x5a\x30\xaa\x12\x64\x34\xd9\xcb\x33\x0d\x3f\x64\x5e\xf1\
|
||||
\x4a\xb6\x2d\xff\x1a\x86\x95\x3c\xde\xd6\xed\x34\xa5\xc1\x6a\x8a\
|
||||
\x7c\x15\x08\xcf\xd1\x01\x22\xf1\x4e\x1e\xdd\x75\x3d\xcf\x36\xde\
|
||||
\xc6\x58\xb2\x1f\xbf\x1a\x46\x91\xf5\xa9\x1e\x7c\x32\xa9\xcd\xff\
|
||||
\x92\x7d\xf8\xd0\x6c\x93\x83\xae\x86\x68\xed\x7b\x9d\x0f\x7a\x5e\
|
||||
\x64\xf3\x49\x57\x52\x55\xba\x06\xd3\x4e\xe5\x69\xc3\x41\x12\x12\
|
||||
\x9b\x16\x5f\x5e\x90\x00\x3b\x06\xeb\x79\xe8\xed\xeb\x68\xed\xdf\
|
||||
\x81\x4f\x0d\x79\x00\x3e\x94\x84\x26\x03\xa2\x7f\x98\xac\x2d\x84\
|
||||
\x42\xfd\xa1\xdf\x21\x90\x38\x75\xe9\x17\x71\x72\x8e\x09\x86\x1d\
|
||||
\xe7\xcc\xe5\x5f\x65\x55\xd5\x05\xb9\xdf\x3e\xe8\x79\x91\xc7\x77\
|
||||
\xdf\x40\x2c\x35\x80\x4f\x0d\xcf\x56\x03\xc7\x29\x7c\x32\x20\xee\
|
||||
\x87\xb9\x93\x2a\xfb\xe8\x8d\x36\xd3\x39\xfc\x3e\xcb\xe7\x9f\x43\
|
||||
\x45\xd1\x62\x6c\xc7\x20\x6d\xc5\x59\x5e\x79\x0e\x67\x2c\xff\x6a\
|
||||
\xee\xdc\x43\xfd\x6f\xf2\xd4\xde\x9b\xb0\x1c\x03\x55\x0e\x7c\xd8\
|
||||
\x25\xf3\xa5\x73\x32\x20\xe9\x0f\x73\x27\x21\x04\xb6\x63\xd2\xd2\
|
||||
\xf7\x2a\xb2\xa4\x72\xd2\xdc\x33\x49\x59\xe3\x84\x7d\x73\x39\x77\
|
||||
\xf5\x77\x73\x26\x35\x30\xd6\xc2\x9f\x1b\x6e\xc6\x71\xac\x29\x93\
|
||||
\xa8\x8b\x8b\xe3\xda\xd8\x8e\x81\x65\xa7\x31\xed\x54\xee\xb0\xec\
|
||||
\x34\xb6\x63\xe6\x85\x63\xf6\x14\x64\x76\xcf\xae\xd3\x92\x90\x67\
|
||||
\xcf\xa3\x32\x31\x9d\xae\x48\x23\x00\x8b\xcb\xb7\xf0\x66\xcb\x3d\
|
||||
\x9c\xbe\xec\x5a\x8a\x03\x0b\xbc\x04\x98\xe0\xd9\x86\x5b\x89\xa7\
|
||||
\x23\xe8\x4a\xa8\x00\x84\x8b\x8b\x6d\x1b\xd8\x8e\x89\x10\x02\x45\
|
||||
\xf6\xe1\x53\x42\xe8\x6a\x11\xba\x12\x40\x95\xfd\x48\x92\x82\x65\
|
||||
\xa7\x31\xec\x24\x69\x33\x46\xd2\x1c\xc3\xb4\x53\xdd\x02\xf1\x76\
|
||||
\xbe\x69\x2a\x0b\xcb\x36\x21\x20\x19\x4d\xf6\x11\x4d\xf6\x60\x3b\
|
||||
\x26\x8a\xa4\xcf\x18\x94\x2c\xa9\x44\x93\xbd\x24\xd2\x11\xe6\x84\
|
||||
\x16\xb3\xa2\xf2\x6c\xd6\xd5\x7c\x32\xf7\xff\x5b\xad\xf7\xd2\x39\
|
||||
\xb2\x17\xbf\x56\x9c\x03\x61\x3b\x26\x96\x9d\x46\x55\xfc\xcc\x0d\
|
||||
\xd7\x52\x53\xb6\x89\xf9\x25\x75\x94\x05\x17\x53\xe4\x9f\x8b\x24\
|
||||
\x54\x5c\xd7\xc2\x71\x2d\x32\xac\x57\x20\x49\x2a\x92\x90\x48\x5b\
|
||||
\xe3\x1c\xec\x79\xf9\xa9\xde\xd1\x7d\x23\xb2\xa4\x1d\x03\xf2\xd1\
|
||||
\x55\xff\x04\x60\xe8\x4a\x90\xd1\x44\x0f\x1d\x43\xf5\xb4\xf4\xbf\
|
||||
\xce\x70\xac\x03\x21\x04\xaa\xec\x9f\xc6\xe9\x25\xd2\x66\x8c\xd1\
|
||||
\x44\x27\x73\x8b\x57\xf2\xb1\x55\x37\xe4\x22\x51\x5f\xf4\x00\xbb\
|
||||
\xdb\x1f\x41\x57\x43\x80\xf0\x00\xa4\x28\x0e\xcc\x67\x55\xd5\xc7\
|
||||
\x59\xb5\xe0\x7c\x4a\x83\x55\x24\x8d\x51\x06\xc7\x0e\xd3\xda\xff\
|
||||
\x06\x23\xf1\x23\x8c\xa7\x86\x48\x5b\xe3\x98\x76\x0a\xc7\xb1\x90\
|
||||
\x25\x15\x55\xf6\x27\xfc\x5a\xf1\xc1\x92\x40\xf5\x70\x40\x0d\xdd\
|
||||
\x1d\xd2\xcb\x0a\x82\x85\xf2\x70\xfd\x37\xc0\x75\x8d\x22\x7f\x85\
|
||||
\xbb\xa0\x64\x9d\xa8\x9d\xb7\x8d\xb5\xd5\x17\x33\x18\x6b\xe3\xfd\
|
||||
\x23\x4f\x70\x64\xf8\x5d\x24\xe4\x13\x86\x49\x21\xc0\xb2\x2d\xc6\
|
||||
\x53\xc3\x2c\x28\xd5\x28\x0f\xd7\xe6\x0c\xe7\xad\xd6\x7b\x31\xec\
|
||||
\x44\x26\x89\x5a\x31\xc2\xfa\x5c\xb6\xac\xb8\x8e\xf5\x8b\x3e\x8d\
|
||||
\x65\xa7\x38\xd0\xf3\x12\x2f\x35\xdd\x41\xff\xd8\x41\x52\xc6\x78\
|
||||
\xa6\x56\x11\x12\x92\x90\x11\x48\xd9\xe2\xc9\x00\x7e\xe1\xb8\xce\
|
||||
\x7d\x96\x9d\xea\xb0\x1d\x33\xe9\xd3\xc2\x48\xc8\x85\xec\xd7\xb0\
|
||||
\x12\x00\xc6\x60\xec\xb0\xd3\x37\x7a\x50\x7e\xbf\xe3\x51\xca\x42\
|
||||
\x8b\xa8\xab\xfa\x38\xe7\xae\xbe\x81\x91\xf8\x51\x76\xb4\xdc\x43\
|
||||
\x5f\xf4\x20\xba\x12\x3a\xae\x32\xf3\x92\x06\xb6\x5b\x10\x0d\xe9\
|
||||
\x1a\x69\xa4\xad\x7f\x07\xb2\xa4\x62\xd9\x29\x4e\xae\xf9\x14\xdb\
|
||||
\x57\x7e\x1d\x04\xec\x6c\xf9\x35\xfb\xba\x9e\x26\x9e\x1e\x46\x96\
|
||||
\x54\x64\x49\x43\x57\x83\x93\xed\x53\x1a\xf8\x12\xf0\x88\x84\x8b\
|
||||
\xf0\x4c\x59\x53\x7c\xa8\xaa\x83\x10\xc7\xfc\x4d\xf1\xa8\xb5\x29\
|
||||
\x09\xd9\xcd\xd6\x00\xd1\x64\x2f\x6f\x1c\xfc\x15\x7b\x3a\x1e\x67\
|
||||
\xcb\xd2\x2f\xf0\xd9\x2d\x77\xf1\x5e\xfb\x23\xbc\x73\xf8\x01\x32\
|
||||
\x41\x41\x9b\x36\x7c\x36\x1c\x7d\x92\x84\x31\x4a\x59\x70\x11\xe7\
|
||||
\xad\xbd\x91\x15\xf3\xcf\x66\x77\xfb\x23\xec\x6c\xbd\x8f\xf1\xd4\
|
||||
\x20\xaa\x1c\xf0\x72\xc9\x94\xf2\x33\xe0\x91\x9c\x3f\x2a\x36\x12\
|
||||
\x26\x8e\x23\xd1\xd6\x5c\x8d\x6d\x4b\x08\xef\x39\x94\xbc\x32\xd3\
|
||||
\x3d\xe6\xc0\x1a\x7e\x49\x27\x6d\xc5\x79\xb9\xf9\x67\xb4\x0e\xbc\
|
||||
\xc9\xc5\xeb\x6f\x62\x7e\xe9\x1a\x9e\x6e\xb8\x19\xd3\x4a\xa1\xc8\
|
||||
\x79\x61\x54\x90\xab\x35\x00\x62\xc9\x01\x9a\x7b\x5e\xa0\xaa\x74\
|
||||
\x2d\x9f\x39\xe5\x0e\x02\x7a\x29\x7f\xa8\xbf\x9e\xd6\xbe\xd7\x51\
|
||||
\x95\x00\x3e\xb5\x78\x26\x79\xa4\x17\xf8\xcf\x5c\xce\x52\x4d\x86\
|
||||
\x87\xc2\xec\xab\x5f\x45\x7f\x67\x0d\x23\x83\x61\x1c\x47\xe4\xaa\
|
||||
\xcd\xfc\x3c\xe2\x4c\x8c\xea\xb2\xa4\xe0\xd7\x8a\xe9\x1a\x69\xe0\
|
||||
\xfe\x9d\xd7\x10\xf2\x95\xf1\xb9\x2d\x77\xa3\xab\x21\x2c\x27\x9d\
|
||||
\xcb\xa4\x92\x50\xf0\xe7\xed\xee\x81\xde\xe7\x09\xfb\xe6\x71\xd5\
|
||||
\xe9\xf7\xe2\x02\xbf\x7d\xe3\x8b\xb4\xf6\xbf\x89\x4f\x2b\xf6\xa2\
|
||||
\xe1\x8c\x92\xe1\x53\xc0\x20\x80\xa2\xd8\x0c\xf5\x95\xf3\xf4\xef\
|
||||
\x2e\xa2\xe9\xdd\x75\x8c\x0e\x17\xa1\x6a\x16\xba\xcf\x44\xd3\x33\
|
||||
\x47\x3e\x10\xeb\x84\x85\x91\x12\x22\x65\xc6\x78\xf8\x9d\x6f\xa0\
|
||||
\xc8\x1a\x97\x6d\xfe\x29\x8a\x50\xb1\x5d\x0b\xd7\x75\xd0\xd5\x20\
|
||||
\x61\x2f\x6f\xd8\x8e\xc9\x68\xa2\x9b\xcf\x9d\x7a\x17\x49\x23\xca\
|
||||
\xc3\xef\xfc\x3d\x91\x44\xe7\x4c\xcc\x68\xa2\xbc\x0c\x20\x09\x17\
|
||||
\xc3\x50\x79\xf1\x89\xb3\x88\xc7\x02\xe8\xfe\x34\xb2\x62\x1f\x77\
|
||||
\x72\x3e\x90\xf4\x94\x8c\x57\xf6\x63\xda\x49\x9e\xd8\xfd\x1d\xe6\
|
||||
\x86\x97\x71\xfe\xba\x7f\xc1\xb6\x0d\x2c\xc7\x60\x4e\x70\x11\xc5\
|
||||
\xfe\xf9\x00\x58\x76\x8a\xcd\x4b\xae\x24\xa0\xcf\xe1\x89\xdd\xdf\
|
||||
\xf1\xaa\xc8\xd0\x6c\x29\x49\x0a\xd8\x07\xa0\x6a\x16\xad\xfb\x97\
|
||||
\x10\x19\x0a\xa3\x6a\x56\xb6\x24\x3f\xe9\x44\x40\x52\xd3\xd3\x14\
|
||||
\x17\x55\x0e\x30\x12\xef\xe4\xd9\xc6\x5b\x59\x5d\x7d\x21\x1b\x16\
|
||||
\x5d\x4a\xd2\x18\xa5\x32\xbc\x22\x57\xca\xea\x6a\x11\xa5\xc1\x1a\
|
||||
\x9e\x6f\xbc\x9d\xbe\xe8\xc1\xa9\xab\xc7\x13\x4b\x1f\xd0\x29\x84\
|
||||
\x4b\x32\xa9\xb1\x7f\xf7\x0a\x24\x39\x67\xf9\xff\x0a\xd4\x67\xfa\
|
||||
\x0b\xc7\xc8\x6e\xbe\x46\x92\x33\xa3\xef\x45\x34\x77\xbf\x40\xfb\
|
||||
\xe0\xdb\x9c\x53\x77\x3d\x25\x81\x2a\xe6\x84\x16\x17\x9c\x75\xa8\
|
||||
\x7f\x07\x4d\xdd\xcf\xe0\xd3\x66\xda\x0a\xcb\x94\xb1\x8e\x6b\x65\
|
||||
\x39\x56\x87\x65\xa7\xe3\x42\x8e\x73\xb0\x71\x11\xc3\xfd\xa5\x28\
|
||||
\x19\x73\x0a\x7a\xe1\xb8\x0c\xb8\x16\xf8\xee\x44\x20\x66\x7e\xfd\
|
||||
\x3b\x1d\x7d\xcf\xe4\x82\x7b\xf1\xa9\x61\xce\x58\x76\x2d\x45\xbe\
|
||||
\xb9\x05\x75\x48\xfd\xa1\xfb\x71\x0a\xea\xb6\xc9\x25\xdb\x4d\x49\
|
||||
\x5b\x31\x1c\xc7\x26\xa8\xcd\xa1\x6a\xce\x3a\x96\x94\x6f\xee\xac\
|
||||
\x2a\x5d\xed\x2e\x2c\x5b\x8b\x6c\x2d\xc2\x76\x72\xda\x58\xef\x75\
|
||||
\x3d\xb3\xf2\xed\xec\x77\xc5\xb0\xe2\x78\x8e\x3e\x26\x09\xd9\xe3\
|
||||
\x34\xf2\x34\xf4\xdd\x9f\x69\x17\x0d\xed\xe2\x94\x25\x9f\xc7\xb4\
|
||||
\x8f\xed\x41\xf7\xc8\x5e\x3a\x23\x0d\x68\x53\x50\x1b\xd3\x4e\xe1\
|
||||
\xb8\x16\x45\xbe\x0a\x6a\x2a\xb7\x53\x53\xba\x9e\xb9\xc5\xcb\x71\
|
||||
\x1d\x1b\xdb\xb5\xb0\xed\x54\x87\x84\x4b\x28\x24\xd3\xb2\xab\x07\
|
||||
\xcb\xee\x83\x4c\x26\xdf\x36\xa1\x92\x2d\x05\x2e\x07\x7e\xaa\x6c\
|
||||
\x5c\x74\x19\x42\x08\xdb\x76\xac\x58\x24\xd1\xc5\x60\xec\x10\xf1\
|
||||
\xf4\x30\x02\x09\x55\xf6\x79\x25\xaa\x3b\x69\x2b\x74\x7f\xd7\xd3\
|
||||
\x2c\x2a\xdf\x82\x2c\x15\xe7\xfe\x6b\xed\x7f\x03\xcb\x4e\xa3\xa8\
|
||||
\xda\x71\x00\x2c\x3b\x8d\xe3\x5a\x54\x95\xae\x65\xfd\xc2\x4b\xa9\
|
||||
\x2a\x5d\x4f\xca\x1c\xa3\x7d\xf0\x1d\x76\xb6\xdc\xc7\xf0\x78\x3b\
|
||||
\xf1\xf4\x30\x7e\xb5\xb8\x29\xec\x2f\xc3\x34\x65\x5e\xdd\xb9\x05\
|
||||
\xbf\x4f\xc9\x3e\xc3\xb6\x49\xf6\xe5\x62\xe0\x4e\xa5\x38\x30\x1f\
|
||||
\xd7\x75\xf0\xa9\xc5\x63\x75\x55\xe7\x21\x0b\x95\x58\xb2\x9f\x03\
|
||||
\x7d\x2f\x73\x78\xe0\x2d\x0c\x6b\x1c\x4d\x09\x64\x4c\x2a\x5f\x2b\
|
||||
\x92\x8f\x23\xc3\xef\x91\x32\xa3\x5e\x82\xcb\x98\x55\x77\xa4\x11\
|
||||
\x59\x52\x26\x30\x18\x87\xb4\x15\x67\x6e\x78\x19\xdb\x96\x5f\x47\
|
||||
\x4d\xd9\xc9\x1c\x1e\xd8\xc9\xb3\x8d\xb7\xd2\x33\xba\x1f\xcb\x36\
|
||||
\x90\x25\xc5\xa3\x2b\xaa\x95\xb2\xc6\x5b\x53\xe3\xa3\x18\x69\x95\
|
||||
\x81\xa1\x0d\x48\x19\xc6\x51\x06\x6c\x9a\x04\xc8\x46\xa0\x5a\x79\
|
||||
\xe5\xc0\x2f\xb2\xcb\xf5\x29\x92\x4e\x69\xa0\x9a\xc5\x15\xa7\xb2\
|
||||
\x65\xc9\x95\x6c\x3d\xe9\xcb\xbc\xd7\xf1\x30\x4d\xdd\xcf\x21\x72\
|
||||
\xc4\x31\xa3\x1d\x49\x52\x18\x4b\xf5\xd3\x3b\xda\xc4\x92\x8a\xd3\
|
||||
\x33\xa1\xcf\x1c\x63\x2c\x35\x80\x24\x94\x9c\xee\x6c\xc7\xc0\x75\
|
||||
\x6d\xb6\xd6\x7e\x99\x6d\xcb\xaf\xa3\x2b\xd2\xc0\x23\xf5\xdf\xa4\
|
||||
\x77\xb4\x09\x59\xd2\x50\x64\x7d\x62\xb1\xd5\x2b\x09\xf9\x90\xac\
|
||||
\x08\xc6\x86\x4b\xc1\x55\xb2\xd9\x7b\xbd\xd7\x3e\x9d\x28\xc5\xc0\
|
||||
\x06\x45\x57\x72\x64\xad\x1b\x5c\x22\x89\x2e\x06\x0e\xb7\xb1\xe7\
|
||||
\xc8\x63\xac\xa8\x3c\x87\xad\xcb\xae\x61\x75\xd5\x85\xbc\xb0\xff\
|
||||
\x76\x46\xc6\x3b\x3d\x4a\xee\x35\xbc\x6d\x93\x9e\x48\x73\x01\x10\
|
||||
\xd3\x4a\xe4\x5a\x39\x96\x9d\x42\x95\x7d\x5c\xb0\xfe\x07\xd4\x2d\
|
||||
\x38\x8f\x57\x9b\x7f\x4e\xfd\xe1\x07\x00\x26\x24\xc8\x02\xd3\x6d\
|
||||
\x02\xa2\xaa\x6a\xd2\xd1\x52\x4d\x7c\xdc\x8f\xcf\x9f\x06\xd8\x3a\
|
||||
\x85\xdb\xae\x96\x0a\x6b\x60\x81\x2c\xa9\xf8\xd4\x30\x92\xa4\xd2\
|
||||
\xd4\xfd\x3c\x0f\xec\xbc\x96\xd1\x44\x17\x57\x9d\xfe\x1b\x96\x57\
|
||||
\x6e\x27\x65\x8e\xe5\x16\x16\x42\x62\x30\xd6\x5a\x50\x9b\xe0\x81\
|
||||
\xb0\x9d\x34\xaa\xe2\xe3\xd3\x9b\x7f\x42\xdd\x82\xf3\x78\x7c\xf7\
|
||||
\x0d\xec\x6c\xbd\x17\x45\xd2\xa7\xab\x71\x76\x01\x58\xa6\x42\x62\
|
||||
\xdc\x8f\x24\xe5\x22\xd6\x69\x53\x5c\xb3\x22\x1f\xc8\xbe\x63\x34\
|
||||
\xc5\x45\x20\xd0\xd5\x22\x1c\xc7\xe2\x99\xc6\x5b\xd9\xd9\xfa\x6b\
|
||||
\x2e\xd9\x78\x1b\x1b\x17\x7d\x86\x94\x11\xcb\x9c\x23\x64\xa2\x89\
|
||||
\x5e\x1c\x37\x43\x19\x14\x59\x47\x16\x6a\xa6\x4f\x0b\x7c\xe2\xe4\
|
||||
\x5b\x58\x5c\x7e\x2a\x4f\xbc\xfb\x1d\x0e\x74\xbf\x88\x5f\x2b\x99\
|
||||
\x49\x17\x7f\x87\x24\xb9\x24\x93\x3a\xed\x07\x6b\x50\x54\x0b\x6f\
|
||||
\xa0\xb4\x69\x8a\x6b\x16\xe6\x7b\xe5\x7e\xe0\x0a\xe0\x2e\xaf\x61\
|
||||
\x07\xb8\x48\x92\x82\x5f\x0a\xf3\xee\xe1\x87\x30\xac\x04\x17\x6d\
|
||||
\xb8\x09\x17\x97\x3d\x47\x9e\x40\x95\x7d\xa4\xed\x04\xb6\x6d\x20\
|
||||
\x29\x7e\x6f\x7e\xa2\x61\x58\xe3\x7c\x64\xd5\xb7\x58\x36\xef\x6c\
|
||||
\x5e\x69\xbe\x93\xe6\x9e\x17\xbc\x52\x77\x5a\x39\x0a\xec\x12\xc2\
|
||||
\x25\x11\xf3\xe3\x38\x22\x3f\x7f\xcc\x9f\xe2\xba\x0a\x65\x82\xa1\
|
||||
\x3e\xee\xd9\xe8\x83\x5e\x34\xc8\x19\x8d\x5f\x2b\xa1\xe1\xe8\x1f\
|
||||
\x09\x6a\xa5\x5c\xb8\xfe\x26\x12\xe9\x08\x07\x7a\x5f\xc2\xb4\x92\
|
||||
\x18\x76\x12\x55\xf1\xa3\xc8\x3e\x24\x21\xa8\x9a\xb3\x81\xad\xcb\
|
||||
\xae\xa1\x7d\xf0\x6d\x76\x1d\x7e\x10\x9f\x3a\xe3\x61\xd7\x8b\x40\
|
||||
\x54\xd5\x4c\x3a\x5a\x6a\x88\xc7\x02\x59\xff\x38\x7d\x9a\xeb\x4a\
|
||||
\x25\x5b\x11\xd8\x8a\xc0\x3d\x56\xf9\x7d\x00\x5c\x32\xb1\xdd\x02\
|
||||
\xe0\xd3\xc2\xbc\x7d\xe8\x7e\x9a\xbb\x9f\xe3\x92\x4d\xff\x46\x45\
|
||||
\x51\x2d\x71\x63\xd8\xf3\x9b\x4c\x24\xf3\x6b\xa5\x6c\x5b\xfe\x35\
|
||||
\x04\x82\xd7\x0e\xdc\x0d\x2e\xb3\x19\x0a\xfd\x41\x08\x48\x25\x75\
|
||||
\x8e\xb6\x55\x65\xcd\xea\x44\xf9\x23\x5f\x34\x69\xe5\xde\x11\x56\
|
||||
\x34\x8c\xa0\xa5\x6d\x2c\x35\xb7\x60\x17\xf0\x59\xa0\x63\x62\x22\
|
||||
\x54\x64\x9d\x17\xf7\xff\x84\xa4\x31\xc6\xc5\x1b\x6e\xc6\xb1\x2d\
|
||||
\x62\xc9\x81\x8c\x4a\x1d\x87\x75\x35\x17\xb3\xac\x72\x3b\x4d\xdd\
|
||||
\xcf\xd2\x3b\xda\x84\xaa\xf8\x67\x0a\xe2\x7d\xe0\x35\x59\x76\x88\
|
||||
\x8d\x86\x18\x19\x2c\x46\xce\x10\xc5\xf9\xc0\xe6\xe9\x48\xa0\x54\
|
||||
\x36\x90\xa2\xa2\x37\xc9\xea\xf7\x87\x98\x7f\x34\x8e\x2d\xe7\x34\
|
||||
\xd3\xe6\x11\xb4\x78\x41\x91\x2f\x69\x8c\xa7\x87\x79\xa5\xe9\xa7\
|
||||
\x54\xcf\xd9\xc0\xa6\xc5\x97\x33\x12\xef\xf0\x34\x22\xb1\xae\xe6\
|
||||
\x12\x5c\x37\xe3\x43\x42\x52\x66\xc3\x78\xef\x06\x0c\x21\x1c\xf6\
|
||||
\xef\x5e\x41\x3a\xa5\x65\x6b\xf2\x33\x3d\x67\x9f\x52\x24\x5b\x16\
|
||||
\x58\xaa\x84\x9e\xb4\xa9\x6d\x8e\x50\xd1\x9f\xcc\xd7\xcc\x1b\xc0\
|
||||
\xf5\xc7\x99\x98\x1a\xe4\x83\xbe\x97\xe9\x18\xac\xe7\xcc\x15\x7f\
|
||||
\x87\x2f\x57\x6f\x08\x24\x49\xa1\x2f\xda\x4c\x5f\xf4\x00\xaa\xe4\
|
||||
\x9b\x29\x88\xf7\x80\xdf\x4f\x12\xad\x00\x3e\x3e\x93\x1b\xe4\x9e\
|
||||
\xd8\x91\x04\x8e\x24\xa8\x6a\x8f\xa1\x27\xed\x7c\xcd\xdc\xe7\x45\
|
||||
\xb2\x82\xcb\x5c\xd7\xe5\xad\xb6\xff\xc1\xaf\x15\x53\x5b\xb9\xdd\
|
||||
\x9b\x25\x65\xe4\xc8\xd0\x6e\x2f\x31\xce\xa8\x49\x6d\x03\xdf\x03\
|
||||
\x52\x8a\x6a\xd1\xd5\x3e\x9f\x64\xdc\x97\xd5\x46\x18\x38\x77\x56\
|
||||
\x40\xb2\x60\x82\x63\x16\x75\x7b\x87\xd1\xd2\x4e\x3e\x98\x1b\x81\
|
||||
\xe7\x0b\xb8\x96\xe2\xe7\xe8\xd0\x7b\x1c\x1e\x78\x1b\x4d\x09\x16\
|
||||
\x50\xf6\xee\x48\xe3\x6c\x1c\xfc\x76\xe0\x15\x21\x5c\x6c\x4b\xa2\
|
||||
\xb1\xbe\x0e\xc7\x25\x4b\x4b\x3e\x02\x2c\x9c\x0d\x90\xab\xb2\x09\
|
||||
\xc7\x56\x04\xa1\xa8\x99\x01\x63\x38\x38\x19\x30\x49\x6f\xc6\xb8\
|
||||
\xa7\x60\x26\x8f\x45\x63\xe7\xff\x1e\x57\x7c\xa5\xcc\xd8\x4c\xe7\
|
||||
\x46\x8f\x01\xb7\x64\x1b\x0c\xfb\xdf\x5b\xc1\x40\x77\x39\xaa\x9a\
|
||||
\xab\xc9\xaf\x98\x69\x65\x96\x5d\xed\x0b\x5e\x0c\xbf\x62\x22\x18\
|
||||
\xe5\x18\x98\x41\xe0\x33\x40\x63\x2e\xe6\xc9\x7e\x3a\x86\x76\x11\
|
||||
\x89\x77\x16\xc4\xb6\xb9\xe1\x65\xb8\xae\x35\xdd\xe2\x8f\x02\x5f\
|
||||
\x01\x0c\x55\xb3\x18\x1b\x0d\xb1\xeb\xd5\x93\x91\xe4\x1c\x88\xa5\
|
||||
\xc0\x85\x33\x1d\xe5\x4b\xde\xd6\xcd\xf1\x8a\x94\x07\x3d\x7b\xcd\
|
||||
\x80\x19\x35\x59\x55\x08\xa6\xdd\xbb\xf9\x2b\xd9\x31\x76\x3c\x1d\
|
||||
\xa1\xad\xff\x8d\x82\xbb\x2e\x28\x59\x3d\x55\x75\x98\x06\x7e\x08\
|
||||
\x5c\x09\x8c\x4b\xb2\x43\x3c\x16\xe0\xa5\x27\xb7\x61\x9a\x32\x92\
|
||||
\x94\xf3\xb5\x6b\x81\x99\x66\xd2\x51\xc9\x1b\x82\x2e\xcd\x33\xb5\
|
||||
\x7f\x07\xfe\x39\x1f\xcc\x04\xcd\x74\x03\x9f\xf4\x4c\x22\x2a\x49\
|
||||
\x32\x87\xfa\x77\x14\xdc\xb5\xb2\x64\x15\x3e\xad\xa8\x60\x82\xe5\
|
||||
\x35\x38\x9e\x04\xb6\x03\x37\x67\x27\x4e\x3e\x9f\xc1\xde\xb7\x56\
|
||||
\xd3\xd5\x5e\x99\xad\xcb\xb3\x33\xcd\x6b\x67\x11\xba\x07\x25\x60\
|
||||
\xb9\x57\xb4\xe4\xcb\x6d\xc0\x3f\x64\xc1\x84\x47\x4d\xea\x1a\x32\
|
||||
\x60\xbc\x00\x10\x07\x6e\x02\x4e\x53\x24\xfd\x96\xfe\xb1\x83\xef\
|
||||
\x0e\x8f\x77\x44\x1d\xd7\x76\x1c\xc7\x22\xec\xaf\xa4\x34\xb8\x30\
|
||||
\xe1\x38\x66\x9f\x17\xc2\x7f\x04\x9c\x05\x7c\xda\xeb\x80\x20\x49\
|
||||
\x0e\x81\x60\x8a\x86\xfa\x3a\xf6\xbf\xb7\x0c\x5f\x20\x95\xbf\xfe\
|
||||
\xf7\x80\x79\xb3\x99\x5e\x29\xc0\xaa\x13\x78\xe6\x9d\xde\x2b\x47\
|
||||
\xbf\xb7\x14\x41\x38\x62\xb0\xb2\x71\x84\xb6\xba\x12\x52\x41\x05\
|
||||
\xc9\x76\x01\x3e\x10\x42\xba\x29\x6d\x27\x6f\xe9\x1b\x6d\xaa\xd5\
|
||||
\x15\xff\x3c\xd3\x4a\x15\xdb\x8e\x95\xd2\x95\xe0\x90\x8b\xdb\xe3\
|
||||
\xbd\xca\x74\x2c\xba\x48\x0e\xba\xdf\x60\x2c\x52\xc4\x9b\xcf\x6d\
|
||||
\xa1\x65\xdf\xd2\x5c\x57\xdf\x93\x33\x80\xeb\x66\xd9\x3e\x3a\xa4\
|
||||
\x00\x6b\x4f\xd4\x63\xf0\x7a\x47\xe3\xc0\x53\x96\x22\x51\x34\x6a\
|
||||
\xb0\xe1\x9d\x01\x0e\xd7\x95\xd0\x53\x13\x42\xb6\x9d\x4c\x1e\x74\
|
||||
\x84\x2d\x10\x07\x81\x83\xc7\x66\x51\x6e\xde\xe8\xc1\x45\x51\x6d\
|
||||
\x14\xd5\x22\x3a\x52\xc4\x3b\xaf\x6c\xa4\xaf\xb3\x82\x9e\xa3\xf3\
|
||||
\xd0\x7d\x46\xbe\x5f\x94\x01\xbf\xf4\xde\xfd\x9a\x8d\x34\x2b\xc0\
|
||||
\x54\x6f\xb3\x04\x80\xdf\x79\xa1\xf7\x4f\x8e\x24\x10\x2e\x2c\xf9\
|
||||
\x20\x4a\x78\x24\x4d\xb4\x4c\x27\x5a\xac\x62\xaa\x02\x34\x1d\x21\
|
||||
\x1d\xdf\x7d\xd1\x74\x13\xd3\x50\x38\xb0\xb7\x96\x81\x9e\x32\x86\
|
||||
\xfb\x4b\xe9\x6a\x9f\x8f\xaa\x99\x59\x66\x9b\x23\x0c\x5e\xf2\x5d\
|
||||
\x3b\x4b\x10\x29\xa0\x49\x01\xaa\xa7\x39\x31\x0c\x3c\x04\xfc\x23\
|
||||
\xf0\x1b\xd7\x33\x81\x79\x3d\x09\xca\xfb\x92\xb8\x02\x62\x01\x17\
|
||||
\x3b\xbc\x07\x7b\xf3\x2a\x64\x5f\x08\x27\x15\x45\x51\x1c\xfc\x81\
|
||||
\x14\x6d\x4d\xab\xd9\xf3\xf6\x6a\x06\xba\xcb\x71\x1c\x81\xa2\xd8\
|
||||
\xf8\x0b\xfd\x01\xcf\x1f\x7e\xe5\xb1\xee\xd9\x4a\x1b\x70\x58\x99\
|
||||
\x09\x21\xf3\x3a\x7c\xf7\x01\x6b\xbc\x88\x33\x66\x29\xc7\xdc\xaa\
|
||||
\x78\xdc\x25\xf2\xe4\x5d\x24\x76\xbf\x48\xe5\xb6\x2f\x51\xbc\x72\
|
||||
\x13\xa3\x91\x20\xaf\x3d\xbf\x95\xd6\x86\xb5\x58\xa6\x8c\xaa\x99\
|
||||
\x27\x6a\x31\x7e\xc2\x0b\x2e\xab\x3f\xe4\x98\x7a\x07\x90\x16\xaf\
|
||||
\x7f\xbf\x76\xc0\x7b\xa9\x66\xa6\xb2\xd7\x0b\xd1\x7f\x9c\xd8\x66\
|
||||
\x75\xcc\x14\xba\x64\xd0\x14\xba\x8c\x5f\xec\xde\x48\x72\x34\x8d\
|
||||
\xa6\xdb\x05\x93\x25\xaf\xeb\xb1\xd0\x2b\x96\x2e\x07\x3e\xfa\x17\
|
||||
\xce\xdb\x2f\x05\xfe\xa8\x4c\x35\x4e\x38\x81\x6c\x00\x7e\xef\x01\
|
||||
\xfa\xb3\xb7\x23\x87\x80\x36\x49\xf5\xa1\x2b\x0e\xad\x2d\x83\x44\
|
||||
\xa3\x36\x45\xbe\xdc\xad\x2b\x3d\x3f\x3b\x1b\xa8\xf3\xcc\x59\xe5\
|
||||
\x2f\x97\x0e\xe0\xb5\xec\xc4\xea\xc8\x34\xf5\xf0\x54\x80\x36\x78\
|
||||
\x9f\xff\x03\xf8\xbe\xc0\x25\x6e\xfb\x39\x94\x5c\x8c\x7e\x8c\x2f\
|
||||
\x95\x01\xcf\x79\x75\xf7\x5f\x5b\x1e\x02\xa2\xd9\x4c\xfe\xdb\xbf\
|
||||
\xf0\x66\x0f\x7b\x36\x8e\x2c\x1c\x22\x46\x11\x6d\xe3\x0b\x50\x84\
|
||||
\x95\xef\xc8\x7f\x0b\x10\x11\xe0\x9e\x7c\xf6\x7b\xaf\xb7\xa3\x1f\
|
||||
\xe6\x5d\x90\x6f\x7b\x9c\x29\x9a\x21\x91\x26\xf5\xc3\x75\x8c\x9b\
|
||||
\x7e\xa4\x63\x7e\x71\x08\x78\xfd\x6f\x00\xe4\x0e\xcf\x9a\x72\x40\
|
||||
\x6c\xe0\xfb\xc0\x45\x9e\x09\xc4\xa7\xb8\x38\xe6\x51\x8e\x1b\x80\
|
||||
\x53\xbd\xec\x5f\x40\xa8\x2c\x57\xf6\x06\xc9\x05\x24\xf1\xab\x40\
|
||||
\xf3\x5f\x11\xc4\x6b\xde\xda\xc7\x4a\xf0\xbc\xcf\xcf\x78\xc7\x4a\
|
||||
\xcf\x14\x16\x7a\x39\xc4\xf6\x28\x7c\xa7\xd7\xfb\x6a\x9f\x6a\x04\
|
||||
\x25\x26\xff\xab\x15\x38\xcf\x9b\x36\x5d\xcd\xac\xdf\x0f\x3b\xae\
|
||||
\x2c\xbe\x7a\x62\xc4\x9c\xac\x3b\xf0\x81\x77\xfc\xb5\xa5\x1b\xf8\
|
||||
\x3a\xf0\x5f\xc0\x65\xc0\x05\xc0\x3a\x32\xaf\xa3\xcf\x44\xc6\x81\
|
||||
\x07\x3c\xb2\x3a\x38\xf1\x4f\x85\xff\x7f\x69\xf2\x8e\x1f\x7b\xf4\
|
||||
\x68\xbd\x47\x5c\x17\x93\x79\x39\xb4\xc8\x1b\x78\x1a\x9e\x43\x77\
|
||||
\x7b\xa1\xfe\x35\xe0\xc0\x89\x6e\xfa\x7f\x03\x00\x16\xc1\xec\x18\
|
||||
\x22\x48\x5b\x85\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
\
|
||||
\x00\x00\x03\x8e\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
|
||||
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0d\xd7\x00\x00\x0d\xd7\
|
||||
\x01\x42\x28\x9b\x78\x00\x00\x00\x20\x63\x48\x52\x4d\x00\x00\x7a\
|
||||
\x25\x00\x00\x80\x83\x00\x00\xf9\xff\x00\x00\x80\xe9\x00\x00\x75\
|
||||
\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x6f\x92\x5f\xc5\
|
||||
\x46\x00\x00\x03\x14\x49\x44\x41\x54\x78\xda\xb4\x95\x4d\x68\x94\
|
||||
\x57\x14\x86\x9f\x7b\xbf\xef\x1b\x4d\x93\x89\x13\xa6\x64\x66\x12\
|
||||
\x23\xc9\xd4\x62\x54\x34\x25\x85\xfe\x8c\x94\x42\xbb\x28\x52\xa1\
|
||||
\x16\xa4\x52\x4a\x88\x68\xb4\xab\x52\x25\x43\x71\x5b\x37\x86\x36\
|
||||
\xa5\x5d\x95\x82\xd4\x36\xd5\x95\xab\x16\xba\x10\xb4\x52\x08\x95\
|
||||
\x0a\x4a\xb1\x41\xac\x1a\x13\x1d\xcc\x64\x34\xf3\xf3\x25\x33\x75\
|
||||
\x66\xbe\x9f\x7b\xbb\x08\x26\xd4\x9f\x34\x33\x8d\xef\xea\xc0\xe5\
|
||||
\x9e\x73\xcf\xfb\xbe\xe7\x5c\xa1\xb5\xe6\x69\x42\xf2\x94\x61\x3e\
|
||||
\x08\xde\xd8\x33\x98\x71\x5d\x2f\xb2\x12\x49\x2d\xcb\xbc\x7b\xee\
|
||||
\xfb\x2f\xa2\xff\x2a\xe0\xba\x5e\x64\x78\x78\x78\x45\x5e\x9d\x4c\
|
||||
\x26\x23\x8f\x74\x00\x30\x31\x39\xc1\xf1\xe3\xdf\x51\x29\x97\xe7\
|
||||
\x0f\x4d\x8b\x03\x1f\xee\x27\xde\x15\x67\x64\x64\x84\xb1\xb1\xb1\
|
||||
\x25\x13\x6f\xdc\xb4\x89\x7d\x7b\xf7\x2e\xad\x81\xe7\x7a\x8b\xad\
|
||||
\x9a\x8b\xf5\x3d\xdf\xff\x6f\xbe\x0d\xe3\xc9\x1a\x00\xc4\xbb\xe2\
|
||||
\x0c\x0d\x1d\x7d\xec\xe5\x87\x5f\x56\xb3\xc8\x96\x65\xaa\x64\x32\
|
||||
\x29\x57\x48\x64\xf5\x48\x01\xd7\xf5\xe4\xa9\xe1\xc3\x2b\x22\xf2\
|
||||
\x7b\xc9\x21\xf9\x58\x8a\x00\x0e\x7d\x76\x8c\xa9\x7b\x39\x00\xda\
|
||||
\x5b\xc3\x7c\xf9\xc9\x7e\x00\xce\x5f\xfe\x8b\xaf\x4e\xfc\xb8\x64\
|
||||
\xe2\x83\x7d\x3b\x49\xf4\x74\x3f\x59\x03\x60\x21\xe1\xc3\x48\xf4\
|
||||
\x74\x93\xe8\x39\x5c\xbf\x06\xf5\xc0\x55\x2e\xb7\xca\xb7\xa8\xde\
|
||||
\xaf\x12\x14\x41\xa2\xa1\x28\xab\xcc\x55\x00\x1c\xf9\xf4\xc8\xff\
|
||||
\xa3\xc8\x0a\x55\x88\x6d\xd5\x3c\xd7\x1c\x45\x36\x48\x3c\xe5\x51\
|
||||
\x29\xba\xbc\xb3\x79\xc7\xbc\xad\xc5\xbc\xdd\xc5\x83\x65\xf7\xda\
|
||||
\x07\x1f\xeb\xe5\x8a\x9c\x9d\xcb\x72\xe6\xea\x19\x3a\xd7\x75\x32\
|
||||
\x39\x3b\x49\xa1\x50\xc0\xf7\x7d\x1a\x1a\x1a\x28\xce\x16\xb9\xf8\
|
||||
\x4b\x99\x58\x77\x5e\xd4\x4d\xd1\x95\xd4\x15\xda\xd7\xad\xe5\x66\
|
||||
\x7e\x9c\x72\xbe\xc2\xf6\x8d\xdb\x69\x0a\x34\x31\x7a\x6d\x94\x92\
|
||||
\x2a\x61\xae\xf6\x50\x52\xd5\x4e\xd1\xb1\x9f\x4f\x81\x54\x74\xad\
|
||||
\x6f\x26\x91\xd8\x4a\xc1\xb6\xb9\x7c\x69\x9a\xf3\xa3\x27\xa8\xcc\
|
||||
\x05\xf8\xe8\xfd\x77\x89\x75\xc4\xb8\x70\xf6\x57\xa4\x90\xb5\xbb\
|
||||
\x68\xa2\x14\xc7\x6a\xb2\x08\x36\x07\xc9\x96\xb2\xac\x09\xad\xa1\
|
||||
\xf7\x65\x83\x62\xbe\xc8\xc0\xeb\x03\xdc\xc8\xdc\xe0\x6a\xf6\x3a\
|
||||
\x2d\x6d\x15\x84\x16\x42\x48\xa1\x6b\x9a\xdc\xdd\xaf\xec\x46\x57\
|
||||
\x35\x33\xc5\x19\x84\x14\x98\x86\x89\x72\x14\xfd\xdb\xfa\x19\xbf\
|
||||
\x3b\x4e\x5e\x17\x88\x75\x44\xd9\xf2\x52\x14\x69\xc8\xcf\xb5\xd6\
|
||||
\xb2\x66\x17\x09\xa9\x89\xac\x2f\xb3\xe5\xc5\x0e\xd2\x77\x66\xb8\
|
||||
\x7e\xd1\xe7\x8f\x0b\xdf\xb0\xe3\xed\x17\x08\x04\x03\x64\xe7\x72\
|
||||
\x84\xc3\x61\x94\x52\x83\xa9\xdb\xa9\x67\xea\x72\x91\xe3\x39\x9c\
|
||||
\xfe\xf3\x34\xbd\x9d\xbd\xb4\xb5\xb4\x71\xf2\xb7\x93\x18\x86\x41\
|
||||
\xce\xcd\x11\x89\x45\x98\xba\x93\xc1\xb6\x73\x67\xab\x4e\x55\xd6\
|
||||
\xb5\xdc\x1c\xcf\xc1\xd7\x3e\xa9\x5c\x0a\x21\x04\x7d\xdb\xfa\xd8\
|
||||
\x10\xd9\x80\x16\x1a\x29\x25\x99\xe9\x3c\xf9\xbf\xf3\x3b\x3d\xe5\
|
||||
\xbd\xb5\xd0\xc1\x9b\x7b\x06\x33\xce\x32\xbf\x4c\xc3\x54\x74\xbf\
|
||||
\xaa\x78\xb6\xb5\x85\xc9\x6b\x59\x94\xaf\x59\x1b\x0f\xd1\xd6\x1e\
|
||||
\xa5\x54\x2c\x71\xe9\xf7\xdb\xf7\xbd\x48\xa6\x31\xe4\x85\x16\x07\
|
||||
\x6d\x39\xe8\x3f\xda\xbf\x10\xab\x80\xda\xd7\x1a\x6d\xfd\x3a\x1c\
|
||||
\x0e\x07\x02\x81\x00\x00\xb6\x6d\x93\x9e\x4a\x9f\x13\x86\xd8\x65\
|
||||
\x5a\x66\xc1\xa9\x3a\xf5\xef\x22\x21\xc4\xb7\xe9\xe9\xf4\x4d\xbb\
|
||||
\x60\x0f\x98\x96\xf9\xbc\x52\xaa\x58\x29\x57\x7e\xf2\x3c\xef\x87\
|
||||
\xc6\x60\xe3\xac\x40\x00\xf0\xcf\x00\xe0\xe8\x5f\x8e\x9d\x28\xd2\
|
||||
\xfe\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
"
|
||||
|
||||
qt_resource_name = b"\
|
||||
\x00\x07\
|
||||
\x07\x3b\xe0\xb3\
|
||||
\x00\x70\
|
||||
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
|
||||
\x00\x05\
|
||||
\x00\x4a\x66\xf5\
|
||||
\x00\x43\
|
||||
\x00\x6f\x00\x70\x00\x69\x00\x65\
|
||||
\x00\x09\
|
||||
\x05\x84\x84\xc7\
|
||||
\x00\x63\
|
||||
\x00\x65\x00\x6e\x00\x72\x00\x61\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
\x00\x0f\
|
||||
\x04\xa3\x0a\x67\
|
||||
\x00\x74\
|
||||
\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x5f\x00\x63\x00\x6f\x00\x70\x00\x69\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
"
|
||||
|
||||
qt_resource_struct_v1 = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x02\x00\x00\x00\x03\
|
||||
\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x13\x75\
|
||||
\x00\x00\x00\x24\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
"
|
||||
|
||||
qt_resource_struct_v2 = b"\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x02\x00\x00\x00\x03\
|
||||
\x00\x00\x00\x00\x00\x00\x00\x00\
|
||||
\x00\x00\x00\x3c\x00\x00\x00\x00\x00\x01\x00\x00\x13\x75\
|
||||
\x00\x00\x01\x8d\xac\xb3\xc8\x10\
|
||||
\x00\x00\x00\x24\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
\x00\x00\x01\x8d\xac\xb4\x4d\x47\
|
||||
"
|
||||
|
||||
qt_version = [int(v) for v in QtCore.qVersion().split('.')]
|
||||
if qt_version < [5, 8, 0]:
|
||||
rcc_version = 1
|
||||
qt_resource_struct = qt_resource_struct_v1
|
||||
else:
|
||||
rcc_version = 2
|
||||
qt_resource_struct = qt_resource_struct_v2
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
||||
102
CenRa_COPIE/resources_rc.py.bak
Normal file
@ -0,0 +1,102 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Resource object code
|
||||
#
|
||||
# Created: mar. 14. avr. 11:48:28 2015
|
||||
# by: The Resource Compiler for PyQt (Qt v4.8.5)
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore
|
||||
|
||||
qt_resource_data = "\
|
||||
\x00\x00\x03\x8e\
|
||||
\x89\
|
||||
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\
|
||||
\x00\x00\x18\x00\x00\x00\x18\x08\x06\x00\x00\x00\xe0\x77\x3d\xf8\
|
||||
\x00\x00\x00\x09\x70\x48\x59\x73\x00\x00\x0d\xd7\x00\x00\x0d\xd7\
|
||||
\x01\x42\x28\x9b\x78\x00\x00\x00\x20\x63\x48\x52\x4d\x00\x00\x7a\
|
||||
\x25\x00\x00\x80\x83\x00\x00\xf9\xff\x00\x00\x80\xe9\x00\x00\x75\
|
||||
\x30\x00\x00\xea\x60\x00\x00\x3a\x98\x00\x00\x17\x6f\x92\x5f\xc5\
|
||||
\x46\x00\x00\x03\x14\x49\x44\x41\x54\x78\xda\xb4\x95\x4d\x68\x94\
|
||||
\x57\x14\x86\x9f\x7b\xbf\xef\x1b\x4d\x93\x89\x13\xa6\x64\x66\x12\
|
||||
\x23\xc9\xd4\x62\x54\x34\x25\x85\xfe\x8c\x94\x42\xbb\x28\x52\xa1\
|
||||
\x16\xa4\x52\x4a\x88\x68\xb4\xab\x52\x25\x43\x71\x5b\x37\x86\x36\
|
||||
\xa5\x5d\x95\x82\xd4\x36\xd5\x95\xab\x16\xba\x10\xb4\x52\x08\x95\
|
||||
\x0a\x4a\xb1\x41\xac\x1a\x13\x1d\xcc\x64\x34\xf3\xf3\x25\x33\x75\
|
||||
\x66\xbe\x9f\x7b\xbb\x08\x26\xd4\x9f\x34\x33\x8d\xef\xea\xc0\xe5\
|
||||
\x9e\x73\xcf\xfb\xbe\xe7\x5c\xa1\xb5\xe6\x69\x42\xf2\x94\x61\x3e\
|
||||
\x08\xde\xd8\x33\x98\x71\x5d\x2f\xb2\x12\x49\x2d\xcb\xbc\x7b\xee\
|
||||
\xfb\x2f\xa2\xff\x2a\xe0\xba\x5e\x64\x78\x78\x78\x45\x5e\x9d\x4c\
|
||||
\x26\x23\x8f\x74\x00\x30\x31\x39\xc1\xf1\xe3\xdf\x51\x29\x97\xe7\
|
||||
\x0f\x4d\x8b\x03\x1f\xee\x27\xde\x15\x67\x64\x64\x84\xb1\xb1\xb1\
|
||||
\x25\x13\x6f\xdc\xb4\x89\x7d\x7b\xf7\x2e\xad\x81\xe7\x7a\x8b\xad\
|
||||
\x9a\x8b\xf5\x3d\xdf\xff\x6f\xbe\x0d\xe3\xc9\x1a\x00\xc4\xbb\xe2\
|
||||
\x0c\x0d\x1d\x7d\xec\xe5\x87\x5f\x56\xb3\xc8\x96\x65\xaa\x64\x32\
|
||||
\x29\x57\x48\x64\xf5\x48\x01\xd7\xf5\xe4\xa9\xe1\xc3\x2b\x22\xf2\
|
||||
\x7b\xc9\x21\xf9\x58\x8a\x00\x0e\x7d\x76\x8c\xa9\x7b\x39\x00\xda\
|
||||
\x5b\xc3\x7c\xf9\xc9\x7e\x00\xce\x5f\xfe\x8b\xaf\x4e\xfc\xb8\x64\
|
||||
\xe2\x83\x7d\x3b\x49\xf4\x74\x3f\x59\x03\x60\x21\xe1\xc3\x48\xf4\
|
||||
\x74\x93\xe8\x39\x5c\xbf\x06\xf5\xc0\x55\x2e\xb7\xca\xb7\xa8\xde\
|
||||
\xaf\x12\x14\x41\xa2\xa1\x28\xab\xcc\x55\x00\x1c\xf9\xf4\xc8\xff\
|
||||
\xa3\xc8\x0a\x55\x88\x6d\xd5\x3c\xd7\x1c\x45\x36\x48\x3c\xe5\x51\
|
||||
\x29\xba\xbc\xb3\x79\xc7\xbc\xad\xc5\xbc\xdd\xc5\x83\x65\xf7\xda\
|
||||
\x07\x1f\xeb\xe5\x8a\x9c\x9d\xcb\x72\xe6\xea\x19\x3a\xd7\x75\x32\
|
||||
\x39\x3b\x49\xa1\x50\xc0\xf7\x7d\x1a\x1a\x1a\x28\xce\x16\xb9\xf8\
|
||||
\x4b\x99\x58\x77\x5e\xd4\x4d\xd1\x95\xd4\x15\xda\xd7\xad\xe5\x66\
|
||||
\x7e\x9c\x72\xbe\xc2\xf6\x8d\xdb\x69\x0a\x34\x31\x7a\x6d\x94\x92\
|
||||
\x2a\x61\xae\xf6\x50\x52\xd5\x4e\xd1\xb1\x9f\x4f\x81\x54\x74\xad\
|
||||
\x6f\x26\x91\xd8\x4a\xc1\xb6\xb9\x7c\x69\x9a\xf3\xa3\x27\xa8\xcc\
|
||||
\x05\xf8\xe8\xfd\x77\x89\x75\xc4\xb8\x70\xf6\x57\xa4\x90\xb5\xbb\
|
||||
\x68\xa2\x14\xc7\x6a\xb2\x08\x36\x07\xc9\x96\xb2\xac\x09\xad\xa1\
|
||||
\xf7\x65\x83\x62\xbe\xc8\xc0\xeb\x03\xdc\xc8\xdc\xe0\x6a\xf6\x3a\
|
||||
\x2d\x6d\x15\x84\x16\x42\x48\xa1\x6b\x9a\xdc\xdd\xaf\xec\x46\x57\
|
||||
\x35\x33\xc5\x19\x84\x14\x98\x86\x89\x72\x14\xfd\xdb\xfa\x19\xbf\
|
||||
\x3b\x4e\x5e\x17\x88\x75\x44\xd9\xf2\x52\x14\x69\xc8\xcf\xb5\xd6\
|
||||
\xb2\x66\x17\x09\xa9\x89\xac\x2f\xb3\xe5\xc5\x0e\xd2\x77\x66\xb8\
|
||||
\x7e\xd1\xe7\x8f\x0b\xdf\xb0\xe3\xed\x17\x08\x04\x03\x64\xe7\x72\
|
||||
\x84\xc3\x61\x94\x52\x83\xa9\xdb\xa9\x67\xea\x72\x91\xe3\x39\x9c\
|
||||
\xfe\xf3\x34\xbd\x9d\xbd\xb4\xb5\xb4\x71\xf2\xb7\x93\x18\x86\x41\
|
||||
\xce\xcd\x11\x89\x45\x98\xba\x93\xc1\xb6\x73\x67\xab\x4e\x55\xd6\
|
||||
\xb5\xdc\x1c\xcf\xc1\xd7\x3e\xa9\x5c\x0a\x21\x04\x7d\xdb\xfa\xd8\
|
||||
\x10\xd9\x80\x16\x1a\x29\x25\x99\xe9\x3c\xf9\xbf\xf3\x3b\x3d\xe5\
|
||||
\xbd\xb5\xd0\xc1\x9b\x7b\x06\x33\xce\x32\xbf\x4c\xc3\x54\x74\xbf\
|
||||
\xaa\x78\xb6\xb5\x85\xc9\x6b\x59\x94\xaf\x59\x1b\x0f\xd1\xd6\x1e\
|
||||
\xa5\x54\x2c\x71\xe9\xf7\xdb\xf7\xbd\x48\xa6\x31\xe4\x85\x16\x07\
|
||||
\x6d\x39\xe8\x3f\xda\xbf\x10\xab\x80\xda\xd7\x1a\x6d\xfd\x3a\x1c\
|
||||
\x0e\x07\x02\x81\x00\x00\xb6\x6d\x93\x9e\x4a\x9f\x13\x86\xd8\x65\
|
||||
\x5a\x66\xc1\xa9\x3a\xf5\xef\x22\x21\xc4\xb7\xe9\xe9\xf4\x4d\xbb\
|
||||
\x60\x0f\x98\x96\xf9\xbc\x52\xaa\x58\x29\x57\x7e\xf2\x3c\xef\x87\
|
||||
\xc6\x60\xe3\xac\x40\x00\xf0\xcf\x00\xe0\xe8\x5f\x8e\x9d\x28\xd2\
|
||||
\xfe\x00\x00\x00\x00\x49\x45\x4e\x44\xae\x42\x60\x82\
|
||||
"
|
||||
|
||||
qt_resource_name = "\
|
||||
\x00\x07\
|
||||
\x07\x3b\xe0\xb3\
|
||||
\x00\x70\
|
||||
\x00\x6c\x00\x75\x00\x67\x00\x69\x00\x6e\x00\x73\
|
||||
\x00\x05\
|
||||
\x00\x4a\x66\xf5\
|
||||
\x00\x43\
|
||||
\x00\x6f\x00\x70\x00\x69\x00\x65\
|
||||
\x00\x0f\
|
||||
\x04\xa3\x0a\x67\
|
||||
\x00\x74\
|
||||
\x00\x61\x00\x62\x00\x6c\x00\x65\x00\x5f\x00\x63\x00\x6f\x00\x70\x00\x69\x00\x65\x00\x2e\x00\x70\x00\x6e\x00\x67\
|
||||
"
|
||||
|
||||
qt_resource_struct = "\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x01\
|
||||
\x00\x00\x00\x00\x00\x02\x00\x00\x00\x01\x00\x00\x00\x02\
|
||||
\x00\x00\x00\x14\x00\x02\x00\x00\x00\x01\x00\x00\x00\x03\
|
||||
\x00\x00\x00\x24\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\
|
||||
"
|
||||
|
||||
def qInitResources():
|
||||
QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
def qCleanupResources():
|
||||
QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data)
|
||||
|
||||
qInitResources()
|
||||
6
CenRa_COPIE/resources_rc.qrc
Normal file
@ -0,0 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/plugins/Copie" >
|
||||
<file>table_copie.png</file>
|
||||
<file>cenra.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
12
CenRa_COPIE/scripts/compile-strings.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
LRELEASE=$1
|
||||
LOCALES=$2
|
||||
|
||||
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
echo "Processing: ${LOCALE}.ts"
|
||||
# Note we don't use pylupdate with qt .pro file approach as it is flakey
|
||||
# about what is made available.
|
||||
$LRELEASE i18n/${LOCALE}.ts
|
||||
done
|
||||
28
CenRa_COPIE/scripts/run-env-linux.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
QGIS_PREFIX_PATH=/usr/local/qgis-2.0
|
||||
if [ -n "$1" ]; then
|
||||
QGIS_PREFIX_PATH=$1
|
||||
fi
|
||||
|
||||
echo ${QGIS_PREFIX_PATH}
|
||||
|
||||
|
||||
export QGIS_PREFIX_PATH=${QGIS_PREFIX_PATH}
|
||||
export QGIS_PATH=${QGIS_PREFIX_PATH}
|
||||
export LD_LIBRARY_PATH=${QGIS_PREFIX_PATH}/lib
|
||||
export PYTHONPATH=${QGIS_PREFIX_PATH}/share/qgis/python:${QGIS_PREFIX_PATH}/share/qgis/python/plugins:${PYTHONPATH}
|
||||
|
||||
echo "QGIS PATH: $QGIS_PREFIX_PATH"
|
||||
export QGIS_DEBUG=0
|
||||
export QGIS_LOG_FILE=/tmp/inasafe/realtime/logs/qgis.log
|
||||
|
||||
export PATH=${QGIS_PREFIX_PATH}/bin:$PATH
|
||||
|
||||
echo "This script is intended to be sourced to set up your shell to"
|
||||
echo "use a QGIS 2.0 built in $QGIS_PREFIX_PATH"
|
||||
echo
|
||||
echo "To use it do:"
|
||||
echo "source $BASH_SOURCE /your/optional/install/path"
|
||||
echo
|
||||
echo "Then use the make file supplied here e.g. make guitest"
|
||||
56
CenRa_COPIE/scripts/update-strings.sh
Normal file
@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
LOCALES=$*
|
||||
|
||||
# Get newest .py files so we don't update strings unnecessarily
|
||||
|
||||
CHANGED_FILES=0
|
||||
PYTHON_FILES=`find . -regex ".*\(ui\|py\)$" -type f`
|
||||
for PYTHON_FILE in $PYTHON_FILES
|
||||
do
|
||||
CHANGED=$(stat -c %Y $PYTHON_FILE)
|
||||
if [ ${CHANGED} -gt ${CHANGED_FILES} ]
|
||||
then
|
||||
CHANGED_FILES=${CHANGED}
|
||||
fi
|
||||
done
|
||||
|
||||
# Qt translation stuff
|
||||
# for .ts file
|
||||
UPDATE=false
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
TRANSLATION_FILE="i18n/$LOCALE.ts"
|
||||
if [ ! -f ${TRANSLATION_FILE} ]
|
||||
then
|
||||
# Force translation string collection as we have a new language file
|
||||
touch ${TRANSLATION_FILE}
|
||||
UPDATE=true
|
||||
break
|
||||
fi
|
||||
|
||||
MODIFICATION_TIME=$(stat -c %Y ${TRANSLATION_FILE})
|
||||
if [ ${CHANGED_FILES} -gt ${MODIFICATION_TIME} ]
|
||||
then
|
||||
# Force translation string collection as a .py file has been updated
|
||||
UPDATE=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${UPDATE} == true ]
|
||||
# retrieve all python files
|
||||
then
|
||||
print ${PYTHON_FILES}
|
||||
# update .ts
|
||||
echo "Please provide translations by editing the translation files below:"
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
echo "i18n/"${LOCALE}".ts"
|
||||
# Note we don't use pylupdate with qt .pro file approach as it is flakey
|
||||
# about what is made available.
|
||||
pylupdate4 -noobsolete ${PYTHON_FILES} -ts i18n/${LOCALE}.ts
|
||||
done
|
||||
else
|
||||
echo "No need to edit any translation files (.ts) because no python files"
|
||||
echo "has been updated since the last update translation. "
|
||||
fi
|
||||
BIN
CenRa_COPIE/table_copie.png
Normal file
|
After Width: | Height: | Size: 910 B |
2
CenRa_FLUX/.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
674
CenRa_FLUX/LICENSE
Normal file
@ -0,0 +1,674 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
244
CenRa_FLUX/Makefile
Normal file
@ -0,0 +1,244 @@
|
||||
#/***************************************************************************
|
||||
# FluxCEN
|
||||
#
|
||||
# Flux IGN etc etc
|
||||
# -------------------
|
||||
# begin : 2022-04-04
|
||||
# git sha : $Format:%H$
|
||||
# copyright : (C) 2022 by Romain Montillet
|
||||
# email : r.montillet@cen-na.org
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#/***************************************************************************
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU General Public License as published by *
|
||||
# * the Free Software Foundation; either version 2 of the License, or *
|
||||
# * (at your option) any later version. *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
|
||||
#################################################
|
||||
# Edit the following to match your sources lists
|
||||
#################################################
|
||||
|
||||
|
||||
#Add iso code for any locales you want to support here (space separated)
|
||||
# default is no locales
|
||||
# LOCALES = af
|
||||
LOCALES =
|
||||
|
||||
# If locales are enabled, set the name of the lrelease binary on your system. If
|
||||
# you have trouble compiling the translations, you may have to specify the full path to
|
||||
# lrelease
|
||||
#LRELEASE = lrelease
|
||||
#LRELEASE = lrelease-qt4
|
||||
|
||||
|
||||
# translation
|
||||
SOURCES = \
|
||||
__init__.py \
|
||||
FluxCEN.py FluxCEN_dialog.py
|
||||
|
||||
PLUGINNAME = FluxCEN
|
||||
|
||||
PY_FILES = \
|
||||
__init__.py \
|
||||
FluxCEN.py FluxCEN_dialog.py
|
||||
|
||||
UI_FILES = FluxCEN_dialog_base.ui
|
||||
|
||||
EXTRAS = metadata.txt icon.png
|
||||
|
||||
EXTRA_DIRS =
|
||||
|
||||
COMPILED_RESOURCE_FILES = resources.py
|
||||
|
||||
PEP8EXCLUDE=pydev,resources.py,conf.py,third_party,ui
|
||||
|
||||
# QGISDIR points to the location where your plugin should be installed.
|
||||
# This varies by platform, relative to your HOME directory:
|
||||
# * Linux:
|
||||
# .local/share/QGIS/QGIS3/profiles/default/python/plugins/
|
||||
# * Mac OS X:
|
||||
# Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins
|
||||
# * Windows:
|
||||
# AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins'
|
||||
|
||||
QGISDIR=C:\Users\Romain\AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins
|
||||
|
||||
#################################################
|
||||
# Normally you would not need to edit below here
|
||||
#################################################
|
||||
|
||||
HELP = help/build/html
|
||||
|
||||
PLUGIN_UPLOAD = $(c)/plugin_upload.py
|
||||
|
||||
RESOURCE_SRC=$(shell grep '^ *<file' resources.qrc | sed 's@</file>@@g;s/.*>//g' | tr '\n' ' ')
|
||||
|
||||
.PHONY: default
|
||||
default:
|
||||
@echo While you can use make to build and deploy your plugin, pb_tool
|
||||
@echo is a much better solution.
|
||||
@echo A Python script, pb_tool provides platform independent management of
|
||||
@echo your plugins and runs anywhere.
|
||||
@echo You can install pb_tool using: pip install pb_tool
|
||||
@echo See https://g-sherman.github.io/plugin_build_tool/ for info.
|
||||
|
||||
compile: $(COMPILED_RESOURCE_FILES)
|
||||
|
||||
%.py : %.qrc $(RESOURCES_SRC)
|
||||
pyrcc5 -o $*.py $<
|
||||
|
||||
%.qm : %.ts
|
||||
$(LRELEASE) $<
|
||||
|
||||
test: compile transcompile
|
||||
@echo
|
||||
@echo "----------------------"
|
||||
@echo "Regression Test Suite"
|
||||
@echo "----------------------"
|
||||
|
||||
@# Preceding dash means that make will continue in case of errors
|
||||
@-export PYTHONPATH=`pwd`:$(PYTHONPATH); \
|
||||
export QGIS_DEBUG=0; \
|
||||
export QGIS_LOG_FILE=/dev/null; \
|
||||
nosetests -v --with-id --with-coverage --cover-package=. \
|
||||
3>&1 1>&2 2>&3 3>&- || true
|
||||
@echo "----------------------"
|
||||
@echo "If you get a 'no module named qgis.core error, try sourcing"
|
||||
@echo "the helper script we have provided first then run make test."
|
||||
@echo "e.g. source run-env-linux.sh <path to qgis install>; make test"
|
||||
@echo "----------------------"
|
||||
|
||||
deploy: compile doc transcompile
|
||||
@echo
|
||||
@echo "------------------------------------------"
|
||||
@echo "Deploying plugin to your .qgis2 directory."
|
||||
@echo "------------------------------------------"
|
||||
# The deploy target only works on unix like operating system where
|
||||
# the Python plugin directory is located at:
|
||||
# $HOME/$(QGISDIR)/python/plugins
|
||||
mkdir -p $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(PY_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(UI_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(COMPILED_RESOURCE_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(EXTRAS) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr i18n $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr $(HELP) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)/help
|
||||
# Copy extra directories if any
|
||||
(foreach EXTRA_DIR,(EXTRA_DIRS), cp -R (EXTRA_DIR) (HOME)/(QGISDIR)/python/plugins/(PLUGINNAME)/;)
|
||||
|
||||
|
||||
# The dclean target removes compiled python files from plugin directory
|
||||
# also deletes any .git entry
|
||||
dclean:
|
||||
@echo
|
||||
@echo "-----------------------------------"
|
||||
@echo "Removing any compiled python files."
|
||||
@echo "-----------------------------------"
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname "*.pyc" -delete
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname ".git" -prune -exec rm -Rf {} \;
|
||||
|
||||
|
||||
derase:
|
||||
@echo
|
||||
@echo "-------------------------"
|
||||
@echo "Removing deployed plugin."
|
||||
@echo "-------------------------"
|
||||
rm -Rf $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
|
||||
zip: deploy dclean
|
||||
@echo
|
||||
@echo "---------------------------"
|
||||
@echo "Creating plugin zip bundle."
|
||||
@echo "---------------------------"
|
||||
# The zip target deploys the plugin and creates a zip file with the deployed
|
||||
# content. You can then upload the zip file on http://plugins.qgis.org
|
||||
rm -f $(PLUGINNAME).zip
|
||||
cd $(HOME)/$(QGISDIR)/python/plugins; zip -9r $(CURDIR)/$(PLUGINNAME).zip $(PLUGINNAME)
|
||||
|
||||
package: compile
|
||||
# Create a zip package of the plugin named $(PLUGINNAME).zip.
|
||||
# This requires use of git (your plugin development directory must be a
|
||||
# git repository).
|
||||
# To use, pass a valid commit or tag as follows:
|
||||
# make package VERSION=Version_0.3.2
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Exporting plugin to zip package. "
|
||||
@echo "------------------------------------"
|
||||
rm -f $(PLUGINNAME).zip
|
||||
git archive --prefix=$(PLUGINNAME)/ -o $(PLUGINNAME).zip $(VERSION)
|
||||
echo "Created package: $(PLUGINNAME).zip"
|
||||
|
||||
upload: zip
|
||||
@echo
|
||||
@echo "-------------------------------------"
|
||||
@echo "Uploading plugin to QGIS Plugin repo."
|
||||
@echo "-------------------------------------"
|
||||
$(PLUGIN_UPLOAD) $(PLUGINNAME).zip
|
||||
|
||||
transup:
|
||||
@echo
|
||||
@echo "------------------------------------------------"
|
||||
@echo "Updating translation files with any new strings."
|
||||
@echo "------------------------------------------------"
|
||||
@chmod +x scripts/update-strings.sh
|
||||
@scripts/update-strings.sh $(LOCALES)
|
||||
|
||||
transcompile:
|
||||
@echo
|
||||
@echo "----------------------------------------"
|
||||
@echo "Compiled translation files to .qm files."
|
||||
@echo "----------------------------------------"
|
||||
@chmod +x scripts/compile-strings.sh
|
||||
@scripts/compile-strings.sh $(LRELEASE) $(LOCALES)
|
||||
|
||||
transclean:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Removing compiled translation files."
|
||||
@echo "------------------------------------"
|
||||
rm -f i18n/*.qm
|
||||
|
||||
clean:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Removing uic and rcc generated files"
|
||||
@echo "------------------------------------"
|
||||
rm $(COMPILED_UI_FILES) $(COMPILED_RESOURCE_FILES)
|
||||
|
||||
doc:
|
||||
@echo
|
||||
@echo "------------------------------------"
|
||||
@echo "Building documentation using sphinx."
|
||||
@echo "------------------------------------"
|
||||
cd help; make html
|
||||
|
||||
pylint:
|
||||
@echo
|
||||
@echo "-----------------"
|
||||
@echo "Pylint violations"
|
||||
@echo "-----------------"
|
||||
@pylint --reports=n --rcfile=pylintrc . || true
|
||||
@echo
|
||||
@echo "----------------------"
|
||||
@echo "If you get a 'no module named qgis.core' error, try sourcing"
|
||||
@echo "the helper script we have provided first then run make pylint."
|
||||
@echo "e.g. source run-env-linux.sh <path to qgis install>; make pylint"
|
||||
@echo "----------------------"
|
||||
|
||||
|
||||
# Run pep8 style checking
|
||||
#http://pypi.python.org/pypi/pep8
|
||||
pep8:
|
||||
@echo
|
||||
@echo "-----------"
|
||||
@echo "PEP8 issues"
|
||||
@echo "-----------"
|
||||
@pep8 --repeat --ignore=E203,E121,E122,E123,E124,E125,E126,E127,E128 --exclude $(PEP8EXCLUDE) . || true
|
||||
@echo "-----------"
|
||||
@echo "Ignored in PEP8 check:"
|
||||
@echo $(PEP8EXCLUDE)
|
||||
42
CenRa_FLUX/README.html
Normal file
@ -0,0 +1,42 @@
|
||||
<html>
|
||||
<body>
|
||||
<h3>Plugin Builder Results</h3>
|
||||
|
||||
Congratulations! You just built a plugin for QGIS!<br/><br />
|
||||
|
||||
<div id='help' style='font-size:.9em;'>
|
||||
Your plugin <b>FluxCEN</b> was created in:<br>
|
||||
<b>C:\Users\Romain\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\fluxcen</b>
|
||||
<p>
|
||||
Your QGIS plugin directory is located at:<br>
|
||||
<b>C:/Users/Romain/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins</b>
|
||||
<p>
|
||||
<h3>What's Next</h3>
|
||||
<ol>
|
||||
<li>If resources.py is not present in your plugin directory, compile the resources file using pyrcc5 (simply use <b>pb_tool</b> or <b>make</b> if you have automake)
|
||||
<li>Optionally, test the generated sources using <b>make test</b> (or run tests from your IDE)
|
||||
<li>Copy the entire directory containing your new plugin to the QGIS plugin directory (see Notes below)
|
||||
<li>Test the plugin by enabling it in the QGIS plugin manager
|
||||
<li>Customize it by editing the implementation file <b>FluxCEN.py</b>
|
||||
<li>Create your own custom icon, replacing the default <b>icon.png</b>
|
||||
<li>Modify your user interface by opening <b>FluxCEN_dialog_base.ui</b> in Qt Designer
|
||||
</ol>
|
||||
Notes:
|
||||
<ul>
|
||||
<li>You can use <b>pb_tool</b> to compile, deploy, and manage your plugin. Tweak the <i>pb_tool.cfg</i> file included with your plugin as you add files. Install <b>pb_tool</b> using
|
||||
<i>pip</i> or <i>easy_install</i>. See <b>http://loc8.cc/pb_tool</b> for more information.
|
||||
<li>You can also use the <b>Makefile</b> to compile and deploy when you
|
||||
make changes. This requires GNU make (gmake). The Makefile is ready to use, however you
|
||||
will have to edit it to add addional Python source files, dialogs, and translations.
|
||||
</ul>
|
||||
</div>
|
||||
<div style='font-size:.9em;'>
|
||||
<p>
|
||||
For information on writing PyQGIS code, see <b>http://loc8.cc/pyqgis_resources</b> for a list of resources.
|
||||
</p>
|
||||
</div>
|
||||
<p>
|
||||
©2011-2019 GeoApt LLC - geoapt.com
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
32
CenRa_FLUX/README.txt
Normal file
@ -0,0 +1,32 @@
|
||||
Plugin Builder Results
|
||||
|
||||
Your plugin FluxCEN was created in:
|
||||
C:\Users\Romain\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\fluxcen
|
||||
|
||||
Your QGIS plugin directory is located at:
|
||||
C:/Users/Romain/AppData/Roaming/QGIS/QGIS3/profiles/default/python/plugins
|
||||
|
||||
What's Next:
|
||||
|
||||
* Copy the entire directory containing your new plugin to the QGIS plugin
|
||||
directory
|
||||
|
||||
* Compile the resources file using pyrcc5
|
||||
|
||||
* Run the tests (``make test``)
|
||||
|
||||
* Test the plugin by enabling it in the QGIS plugin manager
|
||||
|
||||
* Customize it by editing the implementation file: ``FluxCEN.py``
|
||||
|
||||
* Create your own custom icon, replacing the default icon.png
|
||||
|
||||
* Modify your user interface by opening FluxCEN_dialog_base.ui in Qt Designer
|
||||
|
||||
* You can use the Makefile to compile your Ui and resource files when
|
||||
you make changes. This requires GNU make (gmake)
|
||||
|
||||
For more information, see the PyQGIS Developer Cookbook at:
|
||||
http://www.qgis.org/pyqgis-cookbook/index.html
|
||||
|
||||
(C) 2011-2018 GeoApt LLC - geoapt.com
|
||||
46
CenRa_FLUX/forms/about_form.py
Normal file
@ -0,0 +1,46 @@
|
||||
import os.path
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtGui import QPixmap
|
||||
from qgis.PyQt.QtWidgets import QDialog
|
||||
|
||||
from ..tools.resources import devlog
|
||||
|
||||
ABOUT_FORM_CLASS, _ = uic.loadUiType(
|
||||
os.path.join(
|
||||
str(Path(__file__).resolve().parent.parent),
|
||||
'forms',
|
||||
'flux_about_form.ui'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class FluxAboutDialog(QDialog, ABOUT_FORM_CLASS):
|
||||
|
||||
""" About - Let the user display the about dialog. """
|
||||
|
||||
def __init__(self, iface, parent=None):
|
||||
super().__init__(parent)
|
||||
self.iface = iface
|
||||
self.setupUi(self)
|
||||
|
||||
self.viewer.setHtml(devlog('CenRa_FLUX'))
|
||||
|
||||
self.rejected.connect(self.onReject)
|
||||
self.buttonBox.rejected.connect(self.onReject)
|
||||
self.buttonBox.accepted.connect(self.onAccept)
|
||||
|
||||
def onAccept(self):
|
||||
"""
|
||||
Save options when pressing OK button
|
||||
"""
|
||||
self.accept()
|
||||
|
||||
def onReject(self):
|
||||
"""
|
||||
Run some actions when
|
||||
the user closes the dialog
|
||||
"""
|
||||
self.close()
|
||||
96
CenRa_FLUX/forms/flux_about_form.ui
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_Metabase_editorwidget_base</class>
|
||||
<widget class="QDialog" name="CenRa_Metabase_editorwidget_base">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>471</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>FLUX</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
<normaloff>../../CenRa_Metabase/tools/ui/icon.svg</normaloff>../../CenRa_Metabase/tools/ui/icon.svg</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>453</width>
|
||||
<height>547</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>451</width>
|
||||
<height>541</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>DevLog</string>
|
||||
</property>
|
||||
<widget class="QWebView" name="viewer" native="true">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>431</width>
|
||||
<height>511</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">QtWebKitWidgets/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
130
CenRa_FLUX/help/Makefile
Normal file
@ -0,0 +1,130 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
|
||||
clean:
|
||||
-rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/template_class.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/template_class.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/template_class"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/template_class"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
make -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
155
CenRa_FLUX/help/make.bat
Normal file
@ -0,0 +1,155 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\template_class.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\template_class.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
||||
216
CenRa_FLUX/help/source/conf.py
Normal file
@ -0,0 +1,216 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# FluxCEN documentation build configuration file, created by
|
||||
# sphinx-quickstart on Sun Feb 12 17:11:03 2012.
|
||||
#
|
||||
# This file is execfile()d with the current directory set to its containing dir.
|
||||
#
|
||||
# Note that not all possible configuration values are present in this
|
||||
# autogenerated file.
|
||||
#
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys, os
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
# -- General configuration -----------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#needs_sphinx = '1.0'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be extensions
|
||||
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||
extensions = ['sphinx.ext.todo', 'sphinx.ext.imgmath', 'sphinx.ext.viewcode']
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
|
||||
# The suffix of source filenames.
|
||||
source_suffix = '.rst'
|
||||
|
||||
# The encoding of source files.
|
||||
#source_encoding = 'utf-8-sig'
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'FluxCEN'
|
||||
copyright = u'2013, Romain Montillet'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.1'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.1'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
#today_fmt = '%B %d, %Y'
|
||||
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
exclude_patterns = []
|
||||
|
||||
# The reST default role (used for this markup: `text`) to use for all documents.
|
||||
#default_role = None
|
||||
|
||||
# If true, '()' will be appended to :func: etc. cross-reference text.
|
||||
#add_function_parentheses = True
|
||||
|
||||
# If true, the current module name will be prepended to all description
|
||||
# unit titles (such as .. function::).
|
||||
#add_TemplateModuleNames = True
|
||||
|
||||
# If true, sectionauthor and moduleauthor directives will be shown in the
|
||||
# output. They are ignored by default.
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
|
||||
|
||||
# -- Options for HTML output ---------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
html_theme = 'default'
|
||||
|
||||
# Theme options are theme-specific and customize the look and feel of a theme
|
||||
# further. For a list of options available for each theme, see the
|
||||
# documentation.
|
||||
#html_theme_options = {}
|
||||
|
||||
# Add any paths that contain custom themes here, relative to this directory.
|
||||
#html_theme_path = []
|
||||
|
||||
# The name for this set of Sphinx documents. If None, it defaults to
|
||||
# "<project> v<release> documentation".
|
||||
#html_title = None
|
||||
|
||||
# A shorter title for the navigation bar. Default is the same as html_title.
|
||||
#html_short_title = None
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top
|
||||
# of the sidebar.
|
||||
#html_logo = None
|
||||
|
||||
# The name of an image file (within the static path) to use as favicon of the
|
||||
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
||||
# pixels large.
|
||||
#html_favicon = None
|
||||
|
||||
# Add any paths that contain custom static files (such as style sheets) here,
|
||||
# relative to this directory. They are copied after the builtin static files,
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['_static']
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
#html_use_smartypants = True
|
||||
|
||||
# Custom sidebar templates, maps document names to template names.
|
||||
#html_sidebars = {}
|
||||
|
||||
# Additional templates that should be rendered to pages, maps page names to
|
||||
# template names.
|
||||
#html_additional_pages = {}
|
||||
|
||||
# If false, no module index is generated.
|
||||
#html_domain_indices = True
|
||||
|
||||
# If false, no index is generated.
|
||||
#html_use_index = True
|
||||
|
||||
# If true, the index is split into individual pages for each letter.
|
||||
#html_split_index = False
|
||||
|
||||
# If true, links to the reST sources are added to the pages.
|
||||
#html_show_sourcelink = True
|
||||
|
||||
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
||||
#html_show_sphinx = True
|
||||
|
||||
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
||||
#html_show_copyright = True
|
||||
|
||||
# If true, an OpenSearch description file will be output, and all pages will
|
||||
# contain a <link> tag referring to it. The value of this option must be the
|
||||
# base URL from which the finished HTML is served.
|
||||
#html_use_opensearch = ''
|
||||
|
||||
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
||||
#html_file_suffix = None
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'TemplateClassdoc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output --------------------------------------------------
|
||||
|
||||
# The paper size ('letter' or 'a4').
|
||||
#latex_paper_size = 'letter'
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#latex_font_size = '10pt'
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title, author, documentclass [howto/manual]).
|
||||
latex_documents = [
|
||||
('index', 'FluxCEN.tex', u'FluxCEN Documentation',
|
||||
u'Romain Montillet', 'manual'),
|
||||
]
|
||||
|
||||
# The name of an image file (relative to this directory) to place at the top of
|
||||
# the title page.
|
||||
#latex_logo = None
|
||||
|
||||
# For "manual" documents, if this is true, then toplevel headings are parts,
|
||||
# not chapters.
|
||||
#latex_use_parts = False
|
||||
|
||||
# If true, show page references after internal links.
|
||||
#latex_show_pagerefs = False
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#latex_show_urls = False
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#latex_preamble = ''
|
||||
|
||||
# Documents to append as an appendix to all manuals.
|
||||
#latex_appendices = []
|
||||
|
||||
# If false, no module index is generated.
|
||||
#latex_domain_indices = True
|
||||
|
||||
|
||||
# -- Options for manual page output --------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'TemplateClass', u'FluxCEN Documentation',
|
||||
[u'Romain Montillet'], 1)
|
||||
]
|
||||
20
CenRa_FLUX/help/source/index.rst
Normal file
@ -0,0 +1,20 @@
|
||||
.. FluxCEN documentation master file, created by
|
||||
sphinx-quickstart on Sun Feb 12 17:11:03 2012.
|
||||
You can adapt this file completely to your liking, but it should at least
|
||||
contain the root `toctree` directive.
|
||||
|
||||
Welcome to FluxCEN's documentation!
|
||||
============================================
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
|
||||
Indices and tables
|
||||
==================
|
||||
|
||||
* :ref:`genindex`
|
||||
* :ref:`modindex`
|
||||
* :ref:`search`
|
||||
|
||||
11
CenRa_FLUX/i18n/af.ts
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE TS><TS version="2.0" language="af" sourcelanguage="en">
|
||||
<context>
|
||||
<name>@default</name>
|
||||
<message>
|
||||
<location filename="test_translations.py" line="48"/>
|
||||
<source>Good morning</source>
|
||||
<translation>Goeie more</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
57
CenRa_FLUX/missing_metadata.html
Normal file
@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<style>
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.image-container {
|
||||
margin-right: 20px; /* Adjust as needed */
|
||||
height: 300px; /* Set the desired fixed height */
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 24px;
|
||||
color: black;
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
top: 72%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
</style>
|
||||
<title>No Metadata</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<div class="image-container">
|
||||
<img src="https://raw.githubusercontent.com/CEN-Nouvelle-Aquitaine/fluxcen/main/confused_travolta.gif" alt="Another Image">
|
||||
</div>
|
||||
<div class="image-container">
|
||||
<img src="https://raw.githubusercontent.com/CEN-Nouvelle-Aquitaine/fluxcen/main/metadata.png" alt="Metadata Image">
|
||||
</div>
|
||||
</div>
|
||||
<p>Pas de métadonnées encore associées à cette ressource ! Revenez plus tard 😎</p>
|
||||
</body>
|
||||
</html>
|
||||
80
CenRa_FLUX/pb_tool.cfg
Normal file
@ -0,0 +1,80 @@
|
||||
#/***************************************************************************
|
||||
# FluxCEN
|
||||
#
|
||||
# Configuration file for plugin builder tool (pb_tool)
|
||||
# Generated by Plugin Builder: http://g-sherman.github.io/Qgis-Plugin-Builder/
|
||||
# -------------------
|
||||
# begin : 2022-04-04
|
||||
# copyright : (C) 2022 by Romain Montillet
|
||||
# email : r.montillet@cen-na.org
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#/***************************************************************************
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU General Public License as published by *
|
||||
# * the Free Software Foundation; either version 2 of the License, or *
|
||||
# * (at your option) any later version. *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#
|
||||
# You can install pb_tool using:
|
||||
# pip install http://geoapt.net/files/pb_tool.zip
|
||||
#
|
||||
# Consider doing your development (and install of pb_tool) in a virtualenv.
|
||||
#
|
||||
# For details on setting up and using pb_tool, see:
|
||||
# http://g-sherman.github.io/plugin_build_tool/
|
||||
#
|
||||
# Issues and pull requests here:
|
||||
# https://github.com/g-sherman/plugin_build_tool:
|
||||
#
|
||||
# Sane defaults for your plugin generated by the Plugin Builder are
|
||||
# already set below.
|
||||
#
|
||||
# As you add Python source files and UI files to your plugin, add
|
||||
# them to the appropriate [files] section below.
|
||||
|
||||
[plugin]
|
||||
# Name of the plugin. This is the name of the directory that will
|
||||
# be created in .qgis2/python/plugins
|
||||
name: FluxCEN
|
||||
|
||||
# Full path to where you want your plugin directory copied. If empty,
|
||||
# the QGIS default path will be used. Don't include the plugin name in
|
||||
# the path.
|
||||
plugin_path:
|
||||
|
||||
[files]
|
||||
# Python files that should be deployed with the plugin
|
||||
python_files: __init__.py FluxCEN.py FluxCEN_dialog.py
|
||||
|
||||
# The main dialog file that is loaded (not compiled)
|
||||
main_dialog: FluxCEN_dialog_base.ui
|
||||
|
||||
# Other ui files for dialogs you create (these will be compiled)
|
||||
compiled_ui_files:
|
||||
|
||||
# Resource file(s) that will be compiled
|
||||
resource_files: resources.qrc
|
||||
|
||||
# Other files required for the plugin
|
||||
extras: metadata.txt icon.png
|
||||
|
||||
# Other directories to be deployed with the plugin.
|
||||
# These must be subdirectories under the plugin directory
|
||||
extra_dirs:
|
||||
|
||||
# ISO code(s) for any locales (translations), separated by spaces.
|
||||
# Corresponding .ts files must exist in the i18n directory
|
||||
locales:
|
||||
|
||||
[help]
|
||||
# the built help directory that should be deployed with the plugin
|
||||
dir: help/build/html
|
||||
# the name of the directory to target in the deployed plugin
|
||||
target: help
|
||||
|
||||
|
||||
|
||||
281
CenRa_FLUX/pylintrc
Normal file
@ -0,0 +1,281 @@
|
||||
[MASTER]
|
||||
|
||||
# Specify a configuration file.
|
||||
#rcfile=
|
||||
|
||||
# Python code to execute, usually for sys.path manipulation such as
|
||||
# pygtk.require().
|
||||
#init-hook=
|
||||
|
||||
# Profiled execution.
|
||||
profile=no
|
||||
|
||||
# Add files or directories to the blacklist. They should be base names, not
|
||||
# paths.
|
||||
ignore=CVS
|
||||
|
||||
# Pickle collected data for later comparisons.
|
||||
persistent=yes
|
||||
|
||||
# List of plugins (as comma separated values of python modules names) to load,
|
||||
# usually to register additional checkers.
|
||||
load-plugins=
|
||||
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
|
||||
# Enable the message, report, category or checker with the given id(s). You can
|
||||
# either give multiple identifier separated by comma (,) or put this option
|
||||
# multiple time. See also the "--disable" option for examples.
|
||||
#enable=
|
||||
|
||||
# Disable the message, report, category or checker with the given id(s). You
|
||||
# can either give multiple identifiers separated by comma (,) or put this
|
||||
# option multiple times (only on the command line, not in the configuration
|
||||
# file where it should appear only once).You can also use "--disable=all" to
|
||||
# disable everything first and then reenable specific checks. For example, if
|
||||
# you want to run only the similarities checker, you can use "--disable=all
|
||||
# --enable=similarities". If you want to run only the classes checker, but have
|
||||
# no Warning level messages displayed, use"--disable=all --enable=classes
|
||||
# --disable=W"
|
||||
# see http://stackoverflow.com/questions/21487025/pylint-locally-defined-disables-still-give-warnings-how-to-suppress-them
|
||||
disable=locally-disabled,C0103
|
||||
|
||||
|
||||
[REPORTS]
|
||||
|
||||
# Set the output format. Available formats are text, parseable, colorized, msvs
|
||||
# (visual studio) and html. You can also give a reporter class, eg
|
||||
# mypackage.mymodule.MyReporterClass.
|
||||
output-format=text
|
||||
|
||||
# Put messages in a separate file for each module / package specified on the
|
||||
# command line instead of printing them on stdout. Reports (if any) will be
|
||||
# written in a file name "pylint_global.[txt|html]".
|
||||
files-output=no
|
||||
|
||||
# Tells whether to display a full report or only the messages
|
||||
reports=yes
|
||||
|
||||
# Python expression which should return a note less than 10 (10 is the highest
|
||||
# note). You have access to the variables errors warning, statement which
|
||||
# respectively contain the number of errors / warnings messages and the total
|
||||
# number of statements analyzed. This is used by the global evaluation report
|
||||
# (RP0004).
|
||||
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
|
||||
|
||||
# Add a comment according to your evaluation note. This is used by the global
|
||||
# evaluation report (RP0004).
|
||||
comment=no
|
||||
|
||||
# Template used to display messages. This is a python new-style format string
|
||||
# used to format the message information. See doc for all details
|
||||
#msg-template=
|
||||
|
||||
|
||||
[BASIC]
|
||||
|
||||
# Required attributes for module, separated by a comma
|
||||
required-attributes=
|
||||
|
||||
# List of builtins function names that should not be used, separated by a comma
|
||||
bad-functions=map,filter,apply,input
|
||||
|
||||
# Regular expression which should only match correct module names
|
||||
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
|
||||
|
||||
# Regular expression which should only match correct module level names
|
||||
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
|
||||
|
||||
# Regular expression which should only match correct class names
|
||||
class-rgx=[A-Z_][a-zA-Z0-9]+$
|
||||
|
||||
# Regular expression which should only match correct function names
|
||||
function-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct method names
|
||||
method-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct instance attribute names
|
||||
attr-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct argument names
|
||||
argument-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct variable names
|
||||
variable-rgx=[a-z_][a-z0-9_]{2,30}$
|
||||
|
||||
# Regular expression which should only match correct attribute names in class
|
||||
# bodies
|
||||
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
|
||||
|
||||
# Regular expression which should only match correct list comprehension /
|
||||
# generator expression variable names
|
||||
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
|
||||
|
||||
# Good variable names which should always be accepted, separated by a comma
|
||||
good-names=i,j,k,ex,Run,_
|
||||
|
||||
# Bad variable names which should always be refused, separated by a comma
|
||||
bad-names=foo,bar,baz,toto,tutu,tata
|
||||
|
||||
# Regular expression which should only match function or class names that do
|
||||
# not require a docstring.
|
||||
no-docstring-rgx=__.*__
|
||||
|
||||
# Minimum line length for functions/classes that require docstrings, shorter
|
||||
# ones are exempt.
|
||||
docstring-min-length=-1
|
||||
|
||||
|
||||
[MISCELLANEOUS]
|
||||
|
||||
# List of note tags to take in consideration, separated by a comma.
|
||||
notes=FIXME,XXX,TODO
|
||||
|
||||
|
||||
[TYPECHECK]
|
||||
|
||||
# Tells whether missing members accessed in mixin class should be ignored. A
|
||||
# mixin class is detected if its name ends with "mixin" (case insensitive).
|
||||
ignore-mixin-members=yes
|
||||
|
||||
# List of classes names for which member attributes should not be checked
|
||||
# (useful for classes with attributes dynamically set).
|
||||
ignored-classes=SQLObject
|
||||
|
||||
# When zope mode is activated, add a predefined set of Zope acquired attributes
|
||||
# to generated-members.
|
||||
zope=no
|
||||
|
||||
# List of members which are set dynamically and missed by pylint inference
|
||||
# system, and so shouldn't trigger E0201 when accessed. Python regular
|
||||
# expressions are accepted.
|
||||
generated-members=REQUEST,acl_users,aq_parent
|
||||
|
||||
|
||||
[VARIABLES]
|
||||
|
||||
# Tells whether we should check for unused import in __init__ files.
|
||||
init-import=no
|
||||
|
||||
# A regular expression matching the beginning of the name of dummy variables
|
||||
# (i.e. not used).
|
||||
dummy-variables-rgx=_$|dummy
|
||||
|
||||
# List of additional names supposed to be defined in builtins. Remember that
|
||||
# you should avoid to define new builtins when possible.
|
||||
additional-builtins=
|
||||
|
||||
|
||||
[FORMAT]
|
||||
|
||||
# Maximum number of characters on a single line.
|
||||
max-line-length=80
|
||||
|
||||
# Regexp for a line that is allowed to be longer than the limit.
|
||||
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
|
||||
|
||||
# Allow the body of an if to be on the same line as the test if there is no
|
||||
# else.
|
||||
single-line-if-stmt=no
|
||||
|
||||
# List of optional constructs for which whitespace checking is disabled
|
||||
no-space-check=trailing-comma,dict-separator
|
||||
|
||||
# Maximum number of lines in a module
|
||||
max-module-lines=1000
|
||||
|
||||
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
|
||||
# tab).
|
||||
indent-string=' '
|
||||
|
||||
|
||||
[SIMILARITIES]
|
||||
|
||||
# Minimum lines number of a similarity.
|
||||
min-similarity-lines=4
|
||||
|
||||
# Ignore comments when computing similarities.
|
||||
ignore-comments=yes
|
||||
|
||||
# Ignore docstrings when computing similarities.
|
||||
ignore-docstrings=yes
|
||||
|
||||
# Ignore imports when computing similarities.
|
||||
ignore-imports=no
|
||||
|
||||
|
||||
[IMPORTS]
|
||||
|
||||
# Deprecated modules which should not be used, separated by a comma
|
||||
deprecated-modules=regsub,TERMIOS,Bastion,rexec
|
||||
|
||||
# Create a graph of every (i.e. internal and external) dependencies in the
|
||||
# given file (report RP0402 must not be disabled)
|
||||
import-graph=
|
||||
|
||||
# Create a graph of external dependencies in the given file (report RP0402 must
|
||||
# not be disabled)
|
||||
ext-import-graph=
|
||||
|
||||
# Create a graph of internal dependencies in the given file (report RP0402 must
|
||||
# not be disabled)
|
||||
int-import-graph=
|
||||
|
||||
|
||||
[DESIGN]
|
||||
|
||||
# Maximum number of arguments for function / method
|
||||
max-args=5
|
||||
|
||||
# Argument names that match this expression will be ignored. Default to name
|
||||
# with leading underscore
|
||||
ignored-argument-names=_.*
|
||||
|
||||
# Maximum number of locals for function / method body
|
||||
max-locals=15
|
||||
|
||||
# Maximum number of return / yield for function / method body
|
||||
max-returns=6
|
||||
|
||||
# Maximum number of branch for function / method body
|
||||
max-branches=12
|
||||
|
||||
# Maximum number of statements in function / method body
|
||||
max-statements=50
|
||||
|
||||
# Maximum number of parents for a class (see R0901).
|
||||
max-parents=7
|
||||
|
||||
# Maximum number of attributes for a class (see R0902).
|
||||
max-attributes=7
|
||||
|
||||
# Minimum number of public methods for a class (see R0903).
|
||||
min-public-methods=2
|
||||
|
||||
# Maximum number of public methods for a class (see R0904).
|
||||
max-public-methods=20
|
||||
|
||||
|
||||
[CLASSES]
|
||||
|
||||
# List of interface methods to ignore, separated by a comma. This is used for
|
||||
# instance to not check methods defines in Zope's Interface base class.
|
||||
ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
|
||||
|
||||
# List of method names used to declare (i.e. assign) instance attributes.
|
||||
defining-attr-methods=__init__,__new__,setUp
|
||||
|
||||
# List of valid names for the first argument in a class method.
|
||||
valid-classmethod-first-arg=cls
|
||||
|
||||
# List of valid names for the first argument in a metaclass class method.
|
||||
valid-metaclass-classmethod-first-arg=mcs
|
||||
|
||||
|
||||
[EXCEPTIONS]
|
||||
|
||||
# Exceptions that will emit a warning when being caught. Defaults to
|
||||
# "Exception"
|
||||
overgeneral-exceptions=Exception
|
||||
12
CenRa_FLUX/scripts/compile-strings.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
LRELEASE=$1
|
||||
LOCALES=$2
|
||||
|
||||
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
echo "Processing: ${LOCALE}.ts"
|
||||
# Note we don't use pylupdate with qt .pro file approach as it is flakey
|
||||
# about what is made available.
|
||||
$LRELEASE i18n/${LOCALE}.ts
|
||||
done
|
||||
28
CenRa_FLUX/scripts/run-env-linux.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
QGIS_PREFIX_PATH=/usr/local/qgis-2.0
|
||||
if [ -n "$1" ]; then
|
||||
QGIS_PREFIX_PATH=$1
|
||||
fi
|
||||
|
||||
echo ${QGIS_PREFIX_PATH}
|
||||
|
||||
|
||||
export QGIS_PREFIX_PATH=${QGIS_PREFIX_PATH}
|
||||
export QGIS_PATH=${QGIS_PREFIX_PATH}
|
||||
export LD_LIBRARY_PATH=${QGIS_PREFIX_PATH}/lib
|
||||
export PYTHONPATH=${QGIS_PREFIX_PATH}/share/qgis/python:${QGIS_PREFIX_PATH}/share/qgis/python/plugins:${PYTHONPATH}
|
||||
|
||||
echo "QGIS PATH: $QGIS_PREFIX_PATH"
|
||||
export QGIS_DEBUG=0
|
||||
export QGIS_LOG_FILE=/tmp/inasafe/realtime/logs/qgis.log
|
||||
|
||||
export PATH=${QGIS_PREFIX_PATH}/bin:$PATH
|
||||
|
||||
echo "This script is intended to be sourced to set up your shell to"
|
||||
echo "use a QGIS 2.0 built in $QGIS_PREFIX_PATH"
|
||||
echo
|
||||
echo "To use it do:"
|
||||
echo "source $BASH_SOURCE /your/optional/install/path"
|
||||
echo
|
||||
echo "Then use the make file supplied here e.g. make guitest"
|
||||
56
CenRa_FLUX/scripts/update-strings.sh
Normal file
@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
LOCALES=$*
|
||||
|
||||
# Get newest .py files so we don't update strings unnecessarily
|
||||
|
||||
CHANGED_FILES=0
|
||||
PYTHON_FILES=`find . -regex ".*\(ui\|py\)$" -type f`
|
||||
for PYTHON_FILE in $PYTHON_FILES
|
||||
do
|
||||
CHANGED=$(stat -c %Y $PYTHON_FILE)
|
||||
if [ ${CHANGED} -gt ${CHANGED_FILES} ]
|
||||
then
|
||||
CHANGED_FILES=${CHANGED}
|
||||
fi
|
||||
done
|
||||
|
||||
# Qt translation stuff
|
||||
# for .ts file
|
||||
UPDATE=false
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
TRANSLATION_FILE="i18n/$LOCALE.ts"
|
||||
if [ ! -f ${TRANSLATION_FILE} ]
|
||||
then
|
||||
# Force translation string collection as we have a new language file
|
||||
touch ${TRANSLATION_FILE}
|
||||
UPDATE=true
|
||||
break
|
||||
fi
|
||||
|
||||
MODIFICATION_TIME=$(stat -c %Y ${TRANSLATION_FILE})
|
||||
if [ ${CHANGED_FILES} -gt ${MODIFICATION_TIME} ]
|
||||
then
|
||||
# Force translation string collection as a .py file has been updated
|
||||
UPDATE=true
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ${UPDATE} == true ]
|
||||
# retrieve all python files
|
||||
then
|
||||
echo ${PYTHON_FILES}
|
||||
# update .ts
|
||||
echo "Please provide translations by editing the translation files below:"
|
||||
for LOCALE in ${LOCALES}
|
||||
do
|
||||
echo "i18n/"${LOCALE}".ts"
|
||||
# Note we don't use pylupdate with qt .pro file approach as it is flakey
|
||||
# about what is made available.
|
||||
pylupdate4 -noobsolete ${PYTHON_FILES} -ts i18n/${LOCALE}.ts
|
||||
done
|
||||
else
|
||||
echo "No need to edit any translation files (.ts) because no python files"
|
||||
echo "has been updated since the last update translation. "
|
||||
fi
|
||||
321
CenRa_FLUX/styles_couches/RNN.qml
Normal file
846
CenRa_FLUX/styles_couches/RNR.qml
Normal file
1589
CenRa_FLUX/styles_couches/RPG.qml
Normal file
509
CenRa_FLUX/styles_couches/cheflieu.qml
Normal file
537
CenRa_FLUX/styles_couches/emprise_drone.qml
Normal file
1414
CenRa_FLUX/styles_couches/frayeres.qml
Normal file
2490
CenRa_FLUX/styles_couches/habitats_carhab.qml
Normal file
895
CenRa_FLUX/styles_couches/mfu_cenna.qml
Normal file
@ -0,0 +1,895 @@
|
||||
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
|
||||
<qgis simplifyDrawingHints="1" version="3.16.7-Hannover" styleCategories="AllStyleCategories" simplifyLocal="1" labelsEnabled="0" simplifyMaxScale="1" simplifyDrawingTol="1" maxScale="0" minScale="100000000" simplifyAlgorithm="0" readOnly="0" hasScaleBasedVisibilityFlag="0">
|
||||
<flags>
|
||||
<Identifiable>1</Identifiable>
|
||||
<Removable>1</Removable>
|
||||
<Searchable>1</Searchable>
|
||||
</flags>
|
||||
<temporal startField="" endField="last_dateevenement" durationUnit="min" mode="0" accumulate="0" endExpression="" durationField="" fixedDuration="0" enabled="0" startExpression="">
|
||||
<fixedRange>
|
||||
<start></start>
|
||||
<end></end>
|
||||
</fixedRange>
|
||||
</temporal>
|
||||
<renderer-v2 attr="type_mfu" type="categorizedSymbol" forceraster="0" symbollevels="0" enableorderby="0">
|
||||
<categories>
|
||||
<category symbol="0" label="Achat finalisé (Acquisition)" render="true" value="Achat finalisé (Acquisition)"/>
|
||||
<category symbol="1" label="Bail emphytéotique "classique"" render="true" value="Bail emphytéotique "classique""/>
|
||||
<category symbol="2" label="Bail emphytéotique administratif" render="true" value="Bail emphytéotique administratif"/>
|
||||
<category symbol="3" label="Bail civil" render="true" value="Bail civil"/>
|
||||
<category symbol="4" label="Convention d'usage / convention de gestion" render="true" value="Convention d'usage / convention de gestion"/>
|
||||
<category symbol="5" label="Convention de gestion entre le CEN et le Fonds de dotation / la Fondation des CEN" render="true" value="Convention de gestion entre le CEN et le Fonds de dotation / la Fondation des CEN"/>
|
||||
<category symbol="6" label="Convention de gestion sur terrains militaires" render="true" value="Convention de gestion sur terrains militaires"/>
|
||||
<category symbol="7" label="Convention de gestion avec le Conservatoire du littoral" render="true" value="Convention de gestion avec le Conservatoire du littoral"/>
|
||||
<category symbol="8" label="Convention d'occupation précaire" render="true" value="Convention d'occupation précaire"/>
|
||||
<category symbol="9" label="Contrat ORE" render="true" value="Contrat ORE"/>
|
||||
<category symbol="10" label="Prêt à usage / commodat" render="true" value="Prêt à usage / commodat"/>
|
||||
<category symbol="11" label="" render="false" value=""/>
|
||||
</categories>
|
||||
<symbols>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="0">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="50,235,64,179"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.3"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="1">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="248,215,83,179"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.3"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="10">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="180,238,244,179"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="11">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="40,161,78,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="2">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="237,156,50,179"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.3"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="3">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="44,238,138,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="4">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="0,204,255,179"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.3"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="5">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="231,138,232,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="6">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="176,201,163,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="7">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="35,137,225,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="8">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="255,250,177,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="9">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="28,161,99,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
</symbols>
|
||||
<source-symbol>
|
||||
<symbol alpha="1" type="fill" clip_to_extent="1" force_rhr="0" name="0">
|
||||
<layer pass="0" locked="0" class="SimpleFill" enabled="1">
|
||||
<prop k="border_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="color" v="231,138,232,255"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0.26"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="style" v="solid"/>
|
||||
<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>
|
||||
</source-symbol>
|
||||
<rotation/>
|
||||
<sizescale/>
|
||||
</renderer-v2>
|
||||
<customproperties>
|
||||
<property key="dualview/previewExpressions" value=""nom""/>
|
||||
<property key="embeddedWidgets/count" value="0"/>
|
||||
<property key="variableNames"/>
|
||||
<property key="variableValues"/>
|
||||
</customproperties>
|
||||
<blendMode>0</blendMode>
|
||||
<featureBlendMode>0</featureBlendMode>
|
||||
<layerOpacity>1</layerOpacity>
|
||||
<SingleCategoryDiagramRenderer attributeLegend="1" diagramType="Histogram">
|
||||
<DiagramCategory barWidth="5" direction="1" diagramOrientation="Up" backgroundAlpha="255" maxScaleDenominator="1e+08" height="15" penWidth="0" enabled="0" penAlpha="255" sizeScale="3x:0,0,0,0,0,0" minimumSize="0" backgroundColor="#ffffff" scaleBasedVisibility="0" spacingUnit="MM" lineSizeType="MM" opacity="1" scaleDependency="Area" showAxis="0" labelPlacementMethod="XHeight" rotationOffset="270" lineSizeScale="3x:0,0,0,0,0,0" sizeType="MM" minScaleDenominator="0" spacing="0" penColor="#000000" width="15" spacingUnitScale="3x:0,0,0,0,0,0">
|
||||
<fontProperties style="" description="MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0"/>
|
||||
<attribute field="" label="" color="#000000"/>
|
||||
<axisSymbol>
|
||||
<symbol alpha="1" type="line" clip_to_extent="1" force_rhr="0" name="">
|
||||
<layer pass="0" locked="0" class="SimpleLine" enabled="1">
|
||||
<prop k="align_dash_pattern" v="0"/>
|
||||
<prop k="capstyle" v="square"/>
|
||||
<prop k="customdash" v="5;2"/>
|
||||
<prop k="customdash_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="customdash_unit" v="MM"/>
|
||||
<prop k="dash_pattern_offset" v="0"/>
|
||||
<prop k="dash_pattern_offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="dash_pattern_offset_unit" v="MM"/>
|
||||
<prop k="draw_inside_polygon" v="0"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="line_color" v="35,35,35,255"/>
|
||||
<prop k="line_style" v="solid"/>
|
||||
<prop k="line_width" v="0.26"/>
|
||||
<prop k="line_width_unit" v="MM"/>
|
||||
<prop k="offset" v="0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="ring_filter" v="0"/>
|
||||
<prop k="tweak_dash_pattern_on_corners" v="0"/>
|
||||
<prop k="use_custom_dash" v="0"/>
|
||||
<prop k="width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<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>
|
||||
</axisSymbol>
|
||||
</DiagramCategory>
|
||||
</SingleCategoryDiagramRenderer>
|
||||
<DiagramLayerSettings dist="0" linePlacementFlags="18" showAll="1" obstacle="0" placement="1" priority="0" zIndex="0">
|
||||
<properties>
|
||||
<Option type="Map">
|
||||
<Option value="" type="QString" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option value="collection" type="QString" name="type"/>
|
||||
</Option>
|
||||
</properties>
|
||||
</DiagramLayerSettings>
|
||||
<geometryOptions geometryPrecision="0" removeDuplicateNodes="0">
|
||||
<activeChecks/>
|
||||
<checkConfiguration type="Map">
|
||||
<Option type="Map" name="QgsGeometryGapCheck">
|
||||
<Option value="0" type="double" name="allowedGapsBuffer"/>
|
||||
<Option value="false" type="bool" name="allowedGapsEnabled"/>
|
||||
<Option value="" type="QString" name="allowedGapsLayer"/>
|
||||
</Option>
|
||||
</checkConfiguration>
|
||||
</geometryOptions>
|
||||
<legend type="default-vector"/>
|
||||
<referencedLayers/>
|
||||
<fieldConfiguration>
|
||||
<field configurationFlags="None" name="idparcelle">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="departement">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="insee_commune">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="insee_commune_ref">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="nom_commmune">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="section">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="numero">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="contenance">
|
||||
<editWidget type="Range">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="libinteret">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="categorie_mfu">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="type_mfu">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="date_debut_mfu">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="codesite">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="nom_site">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="date_debut_convention">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="date_fin_convention">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="reconductibilite_convention">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="idaire">
|
||||
<editWidget type="Range">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="lib_aire">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="libdossier">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="libhabitat">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="last_idevenement">
|
||||
<editWidget type="Range">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="last_libevenement">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="last_dateevenement">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="utilisateur">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="millesime_cadastre">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="source_cadastre">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="parcelle_partie">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="parcelle_mc">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="parcelle_bnd">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
</fieldConfiguration>
|
||||
<aliases>
|
||||
<alias field="idparcelle" index="0" name=""/>
|
||||
<alias field="departement" index="1" name=""/>
|
||||
<alias field="insee_commune" index="2" name=""/>
|
||||
<alias field="insee_commune_ref" index="3" name=""/>
|
||||
<alias field="nom_commmune" index="4" name=""/>
|
||||
<alias field="section" index="5" name=""/>
|
||||
<alias field="numero" index="6" name=""/>
|
||||
<alias field="contenance" index="7" name=""/>
|
||||
<alias field="libinteret" index="8" name=""/>
|
||||
<alias field="categorie_mfu" index="9" name=""/>
|
||||
<alias field="type_mfu" index="10" name=""/>
|
||||
<alias field="date_debut_mfu" index="11" name=""/>
|
||||
<alias field="codesite" index="12" name=""/>
|
||||
<alias field="nom_site" index="13" name=""/>
|
||||
<alias field="date_debut_convention" index="14" name=""/>
|
||||
<alias field="date_fin_convention" index="15" name=""/>
|
||||
<alias field="reconductibilite_convention" index="16" name=""/>
|
||||
<alias field="idaire" index="17" name=""/>
|
||||
<alias field="lib_aire" index="18" name=""/>
|
||||
<alias field="libdossier" index="19" name=""/>
|
||||
<alias field="libhabitat" index="20" name=""/>
|
||||
<alias field="last_idevenement" index="21" name=""/>
|
||||
<alias field="last_libevenement" index="22" name=""/>
|
||||
<alias field="last_dateevenement" index="23" name=""/>
|
||||
<alias field="utilisateur" index="24" name=""/>
|
||||
<alias field="millesime_cadastre" index="25" name=""/>
|
||||
<alias field="source_cadastre" index="26" name=""/>
|
||||
<alias field="parcelle_partie" index="27" name=""/>
|
||||
<alias field="parcelle_mc" index="28" name=""/>
|
||||
<alias field="parcelle_bnd" index="29" name=""/>
|
||||
</aliases>
|
||||
<defaults>
|
||||
<default field="idparcelle" expression="" applyOnUpdate="0"/>
|
||||
<default field="departement" expression="" applyOnUpdate="0"/>
|
||||
<default field="insee_commune" expression="" applyOnUpdate="0"/>
|
||||
<default field="insee_commune_ref" expression="" applyOnUpdate="0"/>
|
||||
<default field="nom_commmune" expression="" applyOnUpdate="0"/>
|
||||
<default field="section" expression="" applyOnUpdate="0"/>
|
||||
<default field="numero" expression="" applyOnUpdate="0"/>
|
||||
<default field="contenance" expression="" applyOnUpdate="0"/>
|
||||
<default field="libinteret" expression="" applyOnUpdate="0"/>
|
||||
<default field="categorie_mfu" expression="" applyOnUpdate="0"/>
|
||||
<default field="type_mfu" expression="" applyOnUpdate="0"/>
|
||||
<default field="date_debut_mfu" expression="" applyOnUpdate="0"/>
|
||||
<default field="codesite" expression="" applyOnUpdate="0"/>
|
||||
<default field="nom_site" expression="" applyOnUpdate="0"/>
|
||||
<default field="date_debut_convention" expression="" applyOnUpdate="0"/>
|
||||
<default field="date_fin_convention" expression="" applyOnUpdate="0"/>
|
||||
<default field="reconductibilite_convention" expression="" applyOnUpdate="0"/>
|
||||
<default field="idaire" expression="" applyOnUpdate="0"/>
|
||||
<default field="lib_aire" expression="" applyOnUpdate="0"/>
|
||||
<default field="libdossier" expression="" applyOnUpdate="0"/>
|
||||
<default field="libhabitat" expression="" applyOnUpdate="0"/>
|
||||
<default field="last_idevenement" expression="" applyOnUpdate="0"/>
|
||||
<default field="last_libevenement" expression="" applyOnUpdate="0"/>
|
||||
<default field="last_dateevenement" expression="" applyOnUpdate="0"/>
|
||||
<default field="utilisateur" expression="" applyOnUpdate="0"/>
|
||||
<default field="millesime_cadastre" expression="" applyOnUpdate="0"/>
|
||||
<default field="source_cadastre" expression="" applyOnUpdate="0"/>
|
||||
<default field="parcelle_partie" expression="" applyOnUpdate="0"/>
|
||||
<default field="parcelle_mc" expression="" applyOnUpdate="0"/>
|
||||
<default field="parcelle_bnd" expression="" applyOnUpdate="0"/>
|
||||
</defaults>
|
||||
<constraints>
|
||||
<constraint field="idparcelle" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="departement" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="insee_commune" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="insee_commune_ref" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="nom_commmune" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="section" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="numero" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="contenance" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="libinteret" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="categorie_mfu" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="type_mfu" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="date_debut_mfu" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="codesite" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="nom_site" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="date_debut_convention" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="date_fin_convention" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="reconductibilite_convention" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="idaire" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="lib_aire" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="libdossier" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="libhabitat" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="last_idevenement" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="last_libevenement" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="last_dateevenement" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="utilisateur" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="millesime_cadastre" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="source_cadastre" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="parcelle_partie" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="parcelle_mc" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
<constraint field="parcelle_bnd" constraints="0" notnull_strength="0" unique_strength="0" exp_strength="0"/>
|
||||
</constraints>
|
||||
<constraintExpressions>
|
||||
<constraint field="idparcelle" exp="" desc=""/>
|
||||
<constraint field="departement" exp="" desc=""/>
|
||||
<constraint field="insee_commune" exp="" desc=""/>
|
||||
<constraint field="insee_commune_ref" exp="" desc=""/>
|
||||
<constraint field="nom_commmune" exp="" desc=""/>
|
||||
<constraint field="section" exp="" desc=""/>
|
||||
<constraint field="numero" exp="" desc=""/>
|
||||
<constraint field="contenance" exp="" desc=""/>
|
||||
<constraint field="libinteret" exp="" desc=""/>
|
||||
<constraint field="categorie_mfu" exp="" desc=""/>
|
||||
<constraint field="type_mfu" exp="" desc=""/>
|
||||
<constraint field="date_debut_mfu" exp="" desc=""/>
|
||||
<constraint field="codesite" exp="" desc=""/>
|
||||
<constraint field="nom_site" exp="" desc=""/>
|
||||
<constraint field="date_debut_convention" exp="" desc=""/>
|
||||
<constraint field="date_fin_convention" exp="" desc=""/>
|
||||
<constraint field="reconductibilite_convention" exp="" desc=""/>
|
||||
<constraint field="idaire" exp="" desc=""/>
|
||||
<constraint field="lib_aire" exp="" desc=""/>
|
||||
<constraint field="libdossier" exp="" desc=""/>
|
||||
<constraint field="libhabitat" exp="" desc=""/>
|
||||
<constraint field="last_idevenement" exp="" desc=""/>
|
||||
<constraint field="last_libevenement" exp="" desc=""/>
|
||||
<constraint field="last_dateevenement" exp="" desc=""/>
|
||||
<constraint field="utilisateur" exp="" desc=""/>
|
||||
<constraint field="millesime_cadastre" exp="" desc=""/>
|
||||
<constraint field="source_cadastre" exp="" desc=""/>
|
||||
<constraint field="parcelle_partie" exp="" desc=""/>
|
||||
<constraint field="parcelle_mc" exp="" desc=""/>
|
||||
<constraint field="parcelle_bnd" exp="" desc=""/>
|
||||
</constraintExpressions>
|
||||
<expressionfields/>
|
||||
<attributeactions>
|
||||
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
|
||||
</attributeactions>
|
||||
<attributetableconfig actionWidgetStyle="dropDown" sortExpression=""date_debut"" sortOrder="1">
|
||||
<columns>
|
||||
<column hidden="0" type="field" width="-1" name="idparcelle"/>
|
||||
<column hidden="0" type="field" width="-1" name="section"/>
|
||||
<column hidden="0" type="field" width="-1" name="numero"/>
|
||||
<column hidden="0" type="field" width="-1" name="contenance"/>
|
||||
<column hidden="0" type="field" width="-1" name="libinteret"/>
|
||||
<column hidden="0" type="field" width="-1" name="type_mfu"/>
|
||||
<column hidden="0" type="field" width="-1" name="utilisateur"/>
|
||||
<column hidden="0" type="field" width="-1" name="idaire"/>
|
||||
<column hidden="0" type="field" width="-1" name="libdossier"/>
|
||||
<column hidden="0" type="field" width="-1" name="libhabitat"/>
|
||||
<column hidden="1" type="actions" width="-1"/>
|
||||
<column hidden="0" type="field" width="-1" name="departement"/>
|
||||
<column hidden="0" type="field" width="-1" name="insee_commune"/>
|
||||
<column hidden="0" type="field" width="-1" name="insee_commune_ref"/>
|
||||
<column hidden="0" type="field" width="-1" name="nom_commmune"/>
|
||||
<column hidden="0" type="field" width="-1" name="categorie_mfu"/>
|
||||
<column hidden="0" type="field" width="-1" name="date_debut_mfu"/>
|
||||
<column hidden="0" type="field" width="-1" name="codesite"/>
|
||||
<column hidden="0" type="field" width="-1" name="nom_site"/>
|
||||
<column hidden="0" type="field" width="-1" name="date_debut_convention"/>
|
||||
<column hidden="0" type="field" width="-1" name="date_fin_convention"/>
|
||||
<column hidden="0" type="field" width="-1" name="reconductibilite_convention"/>
|
||||
<column hidden="0" type="field" width="-1" name="lib_aire"/>
|
||||
<column hidden="0" type="field" width="-1" name="last_idevenement"/>
|
||||
<column hidden="0" type="field" width="-1" name="last_libevenement"/>
|
||||
<column hidden="0" type="field" width="-1" name="last_dateevenement"/>
|
||||
<column hidden="0" type="field" width="-1" name="millesime_cadastre"/>
|
||||
<column hidden="0" type="field" width="-1" name="source_cadastre"/>
|
||||
<column hidden="0" type="field" width="-1" name="parcelle_partie"/>
|
||||
<column hidden="0" type="field" width="-1" name="parcelle_mc"/>
|
||||
<column hidden="0" type="field" width="-1" name="parcelle_bnd"/>
|
||||
</columns>
|
||||
</attributetableconfig>
|
||||
<conditionalstyles>
|
||||
<rowstyles/>
|
||||
<fieldstyles/>
|
||||
</conditionalstyles>
|
||||
<storedexpressions/>
|
||||
<editform tolerant="1"></editform>
|
||||
<editforminit/>
|
||||
<editforminitcodesource>0</editforminitcodesource>
|
||||
<editforminitfilepath></editforminitfilepath>
|
||||
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Les formulaires QGIS peuvent avoir une fonction Python qui sera appelée à l'ouverture du formulaire.
|
||||
|
||||
Utilisez cette fonction pour ajouter plus de fonctionnalités à vos formulaires.
|
||||
|
||||
Entrez le nom de la fonction dans le champ "Fonction d'initialisation Python".
|
||||
Voici un exemple à suivre:
|
||||
"""
|
||||
from qgis.PyQt.QtWidgets import QWidget
|
||||
|
||||
def my_form_open(dialog, layer, feature):
|
||||
geom = feature.geometry()
|
||||
control = dialog.findChild(QWidget, "MyLineEdit")
|
||||
|
||||
]]></editforminitcode>
|
||||
<featformsuppress>0</featformsuppress>
|
||||
<editorlayout>generatedlayout</editorlayout>
|
||||
<editable>
|
||||
<field editable="1" name="categorie_mfu"/>
|
||||
<field editable="1" name="codesite"/>
|
||||
<field editable="1" name="commune"/>
|
||||
<field editable="1" name="commune_ref"/>
|
||||
<field editable="1" name="contenance"/>
|
||||
<field editable="1" name="date_debut"/>
|
||||
<field editable="1" name="date_debut_convention"/>
|
||||
<field editable="1" name="date_debut_mfu"/>
|
||||
<field editable="1" name="date_fin"/>
|
||||
<field editable="1" name="date_fin_convention"/>
|
||||
<field editable="1" name="date_saisie"/>
|
||||
<field editable="1" name="dateevenement"/>
|
||||
<field editable="1" name="departement"/>
|
||||
<field editable="1" name="gid"/>
|
||||
<field editable="1" name="id_type_mfu"/>
|
||||
<field editable="1" name="idaire"/>
|
||||
<field editable="1" name="idcategorie"/>
|
||||
<field editable="1" name="idparcelle"/>
|
||||
<field editable="1" name="insee_commune"/>
|
||||
<field editable="1" name="insee_commune_ref"/>
|
||||
<field editable="1" name="last_dateevenement"/>
|
||||
<field editable="1" name="last_idevenement"/>
|
||||
<field editable="1" name="last_libevenement"/>
|
||||
<field editable="1" name="lib_aire"/>
|
||||
<field editable="1" name="libaire"/>
|
||||
<field editable="1" name="libcategorie"/>
|
||||
<field editable="1" name="libdossier"/>
|
||||
<field editable="1" name="libevenement"/>
|
||||
<field editable="1" name="libhabitat"/>
|
||||
<field editable="1" name="libinteret"/>
|
||||
<field editable="1" name="millesime_cadastre"/>
|
||||
<field editable="1" name="nom"/>
|
||||
<field editable="1" name="nom_commmune"/>
|
||||
<field editable="1" name="nom_site"/>
|
||||
<field editable="1" name="numero"/>
|
||||
<field editable="1" name="parcelle_bnd"/>
|
||||
<field editable="1" name="parcelle_mc"/>
|
||||
<field editable="1" name="parcelle_partie"/>
|
||||
<field editable="1" name="reconductibilite"/>
|
||||
<field editable="1" name="reconductibilite_convention"/>
|
||||
<field editable="1" name="section"/>
|
||||
<field editable="1" name="source_cadastre"/>
|
||||
<field editable="1" name="type_mfu"/>
|
||||
<field editable="1" name="utilisateur"/>
|
||||
</editable>
|
||||
<labelOnTop>
|
||||
<field labelOnTop="0" name="categorie_mfu"/>
|
||||
<field labelOnTop="0" name="codesite"/>
|
||||
<field labelOnTop="0" name="commune"/>
|
||||
<field labelOnTop="0" name="commune_ref"/>
|
||||
<field labelOnTop="0" name="contenance"/>
|
||||
<field labelOnTop="0" name="date_debut"/>
|
||||
<field labelOnTop="0" name="date_debut_convention"/>
|
||||
<field labelOnTop="0" name="date_debut_mfu"/>
|
||||
<field labelOnTop="0" name="date_fin"/>
|
||||
<field labelOnTop="0" name="date_fin_convention"/>
|
||||
<field labelOnTop="0" name="date_saisie"/>
|
||||
<field labelOnTop="0" name="dateevenement"/>
|
||||
<field labelOnTop="0" name="departement"/>
|
||||
<field labelOnTop="0" name="gid"/>
|
||||
<field labelOnTop="0" name="id_type_mfu"/>
|
||||
<field labelOnTop="0" name="idaire"/>
|
||||
<field labelOnTop="0" name="idcategorie"/>
|
||||
<field labelOnTop="0" name="idparcelle"/>
|
||||
<field labelOnTop="0" name="insee_commune"/>
|
||||
<field labelOnTop="0" name="insee_commune_ref"/>
|
||||
<field labelOnTop="0" name="last_dateevenement"/>
|
||||
<field labelOnTop="0" name="last_idevenement"/>
|
||||
<field labelOnTop="0" name="last_libevenement"/>
|
||||
<field labelOnTop="0" name="lib_aire"/>
|
||||
<field labelOnTop="0" name="libaire"/>
|
||||
<field labelOnTop="0" name="libcategorie"/>
|
||||
<field labelOnTop="0" name="libdossier"/>
|
||||
<field labelOnTop="0" name="libevenement"/>
|
||||
<field labelOnTop="0" name="libhabitat"/>
|
||||
<field labelOnTop="0" name="libinteret"/>
|
||||
<field labelOnTop="0" name="millesime_cadastre"/>
|
||||
<field labelOnTop="0" name="nom"/>
|
||||
<field labelOnTop="0" name="nom_commmune"/>
|
||||
<field labelOnTop="0" name="nom_site"/>
|
||||
<field labelOnTop="0" name="numero"/>
|
||||
<field labelOnTop="0" name="parcelle_bnd"/>
|
||||
<field labelOnTop="0" name="parcelle_mc"/>
|
||||
<field labelOnTop="0" name="parcelle_partie"/>
|
||||
<field labelOnTop="0" name="reconductibilite"/>
|
||||
<field labelOnTop="0" name="reconductibilite_convention"/>
|
||||
<field labelOnTop="0" name="section"/>
|
||||
<field labelOnTop="0" name="source_cadastre"/>
|
||||
<field labelOnTop="0" name="type_mfu"/>
|
||||
<field labelOnTop="0" name="utilisateur"/>
|
||||
</labelOnTop>
|
||||
<dataDefinedFieldProperties/>
|
||||
<widgets/>
|
||||
<previewExpression>"nom"</previewExpression>
|
||||
<mapTip></mapTip>
|
||||
<layerGeometryType>2</layerGeometryType>
|
||||
</qgis>
|
||||
1081
CenRa_FLUX/styles_couches/parcelles_af.qml
Normal file
3446
CenRa_FLUX/styles_couches/pigma_ocs.qml
Normal file
459
CenRa_FLUX/styles_couches/sites_inscrits.qml
Normal file
482
CenRa_FLUX/styles_couches/style_piezo.qml
Normal file
@ -0,0 +1,482 @@
|
||||
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
|
||||
<qgis minScale="100000000" version="3.22.5-Białowieża" simplifyLocal="1" readOnly="0" labelsEnabled="0" simplifyAlgorithm="0" maxScale="0" simplifyMaxScale="1" hasScaleBasedVisibilityFlag="0" simplifyDrawingHints="0" styleCategories="AllStyleCategories" symbologyReferenceScale="-1" simplifyDrawingTol="1">
|
||||
<flags>
|
||||
<Identifiable>1</Identifiable>
|
||||
<Removable>1</Removable>
|
||||
<Searchable>1</Searchable>
|
||||
<Private>0</Private>
|
||||
</flags>
|
||||
<temporal endExpression="" limitMode="0" durationField="profondeur" durationUnit="min" accumulate="0" fixedDuration="0" enabled="0" endField="" startField="date_installation" mode="0" startExpression="">
|
||||
<fixedRange>
|
||||
<start></start>
|
||||
<end></end>
|
||||
</fixedRange>
|
||||
</temporal>
|
||||
<renderer-v2 forceraster="0" referencescale="-1" symbollevels="0" enableorderby="0" type="singleSymbol">
|
||||
<symbols>
|
||||
<symbol clip_to_extent="1" alpha="1" force_rhr="0" type="marker" name="0">
|
||||
<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 class="SimpleMarker" pass="0" enabled="1" locked="0">
|
||||
<Option type="Map">
|
||||
<Option value="0" type="QString" name="angle"/>
|
||||
<Option value="square" type="QString" name="cap_style"/>
|
||||
<Option value="164,113,88,255" type="QString" name="color"/>
|
||||
<Option value="1" type="QString" name="horizontal_anchor_point"/>
|
||||
<Option value="bevel" type="QString" name="joinstyle"/>
|
||||
<Option value="circle" type="QString" name="name"/>
|
||||
<Option value="0,0" type="QString" name="offset"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="offset_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="offset_unit"/>
|
||||
<Option value="35,35,35,255" type="QString" name="outline_color"/>
|
||||
<Option value="solid" type="QString" name="outline_style"/>
|
||||
<Option value="0" type="QString" name="outline_width"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="outline_width_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="outline_width_unit"/>
|
||||
<Option value="diameter" type="QString" name="scale_method"/>
|
||||
<Option value="2" type="QString" name="size"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="size_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="size_unit"/>
|
||||
<Option value="1" type="QString" name="vertical_anchor_point"/>
|
||||
</Option>
|
||||
<prop k="angle" v="0"/>
|
||||
<prop k="cap_style" v="square"/>
|
||||
<prop k="color" v="164,113,88,255"/>
|
||||
<prop k="horizontal_anchor_point" v="1"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="name" v="circle"/>
|
||||
<prop k="offset" v="0,0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="outline_color" v="35,35,35,255"/>
|
||||
<prop k="outline_style" v="solid"/>
|
||||
<prop k="outline_width" v="0"/>
|
||||
<prop k="outline_width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="outline_width_unit" v="MM"/>
|
||||
<prop k="scale_method" v="diameter"/>
|
||||
<prop k="size" v="2"/>
|
||||
<prop k="size_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="size_unit" v="MM"/>
|
||||
<prop k="vertical_anchor_point" v="1"/>
|
||||
<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>
|
||||
</symbols>
|
||||
<rotation/>
|
||||
<sizescale/>
|
||||
</renderer-v2>
|
||||
<customproperties>
|
||||
<Option type="Map">
|
||||
<Option type="List" name="dualview/previewExpressions">
|
||||
<Option value=""id_cen"" type="QString"/>
|
||||
</Option>
|
||||
<Option value="0" type="int" name="embeddedWidgets/count"/>
|
||||
<Option name="variableNames"/>
|
||||
<Option name="variableValues"/>
|
||||
</Option>
|
||||
</customproperties>
|
||||
<blendMode>0</blendMode>
|
||||
<featureBlendMode>0</featureBlendMode>
|
||||
<layerOpacity>1</layerOpacity>
|
||||
<SingleCategoryDiagramRenderer attributeLegend="1" diagramType="Histogram">
|
||||
<DiagramCategory width="15" showAxis="1" minScaleDenominator="0" rotationOffset="270" backgroundColor="#ffffff" minimumSize="0" scaleBasedVisibility="0" barWidth="5" backgroundAlpha="255" sizeScale="3x:0,0,0,0,0,0" lineSizeType="MM" penColor="#000000" opacity="1" diagramOrientation="Up" direction="0" lineSizeScale="3x:0,0,0,0,0,0" scaleDependency="Area" spacing="5" maxScaleDenominator="1e+08" spacingUnit="MM" labelPlacementMethod="XHeight" penWidth="0" spacingUnitScale="3x:0,0,0,0,0,0" penAlpha="255" enabled="0" sizeType="MM" height="15">
|
||||
<fontProperties style="" description="MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0"/>
|
||||
<attribute field="" label="" color="#000000"/>
|
||||
<axisSymbol>
|
||||
<symbol clip_to_extent="1" alpha="1" force_rhr="0" type="line" name="">
|
||||
<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 class="SimpleLine" pass="0" enabled="1" locked="0">
|
||||
<Option type="Map">
|
||||
<Option value="0" type="QString" name="align_dash_pattern"/>
|
||||
<Option value="square" type="QString" name="capstyle"/>
|
||||
<Option value="5;2" type="QString" name="customdash"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="customdash_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="customdash_unit"/>
|
||||
<Option value="0" type="QString" name="dash_pattern_offset"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="dash_pattern_offset_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="dash_pattern_offset_unit"/>
|
||||
<Option value="0" type="QString" name="draw_inside_polygon"/>
|
||||
<Option value="bevel" type="QString" name="joinstyle"/>
|
||||
<Option value="35,35,35,255" type="QString" name="line_color"/>
|
||||
<Option value="solid" type="QString" name="line_style"/>
|
||||
<Option value="0.26" type="QString" name="line_width"/>
|
||||
<Option value="MM" type="QString" name="line_width_unit"/>
|
||||
<Option value="0" type="QString" name="offset"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="offset_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="offset_unit"/>
|
||||
<Option value="0" type="QString" name="ring_filter"/>
|
||||
<Option value="0" type="QString" name="trim_distance_end"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="trim_distance_end_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="trim_distance_end_unit"/>
|
||||
<Option value="0" type="QString" name="trim_distance_start"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="trim_distance_start_map_unit_scale"/>
|
||||
<Option value="MM" type="QString" name="trim_distance_start_unit"/>
|
||||
<Option value="0" type="QString" name="tweak_dash_pattern_on_corners"/>
|
||||
<Option value="0" type="QString" name="use_custom_dash"/>
|
||||
<Option value="3x:0,0,0,0,0,0" type="QString" name="width_map_unit_scale"/>
|
||||
</Option>
|
||||
<prop k="align_dash_pattern" v="0"/>
|
||||
<prop k="capstyle" v="square"/>
|
||||
<prop k="customdash" v="5;2"/>
|
||||
<prop k="customdash_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="customdash_unit" v="MM"/>
|
||||
<prop k="dash_pattern_offset" v="0"/>
|
||||
<prop k="dash_pattern_offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="dash_pattern_offset_unit" v="MM"/>
|
||||
<prop k="draw_inside_polygon" v="0"/>
|
||||
<prop k="joinstyle" v="bevel"/>
|
||||
<prop k="line_color" v="35,35,35,255"/>
|
||||
<prop k="line_style" v="solid"/>
|
||||
<prop k="line_width" v="0.26"/>
|
||||
<prop k="line_width_unit" v="MM"/>
|
||||
<prop k="offset" v="0"/>
|
||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="offset_unit" v="MM"/>
|
||||
<prop k="ring_filter" v="0"/>
|
||||
<prop k="trim_distance_end" v="0"/>
|
||||
<prop k="trim_distance_end_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="trim_distance_end_unit" v="MM"/>
|
||||
<prop k="trim_distance_start" v="0"/>
|
||||
<prop k="trim_distance_start_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<prop k="trim_distance_start_unit" v="MM"/>
|
||||
<prop k="tweak_dash_pattern_on_corners" v="0"/>
|
||||
<prop k="use_custom_dash" v="0"/>
|
||||
<prop k="width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
||||
<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>
|
||||
</axisSymbol>
|
||||
</DiagramCategory>
|
||||
</SingleCategoryDiagramRenderer>
|
||||
<DiagramLayerSettings dist="0" showAll="1" obstacle="0" zIndex="0" linePlacementFlags="18" priority="0" placement="0">
|
||||
<properties>
|
||||
<Option type="Map">
|
||||
<Option value="" type="QString" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option value="collection" type="QString" name="type"/>
|
||||
</Option>
|
||||
</properties>
|
||||
</DiagramLayerSettings>
|
||||
<geometryOptions removeDuplicateNodes="0" geometryPrecision="0">
|
||||
<activeChecks/>
|
||||
<checkConfiguration/>
|
||||
</geometryOptions>
|
||||
<legend showLabelLegend="0" type="default-vector"/>
|
||||
<referencedLayers/>
|
||||
<fieldConfiguration>
|
||||
<field configurationFlags="None" name="id_cen">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="commune">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="dept">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="date_installation">
|
||||
<editWidget type="DateTime">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="true" type="bool" name="allow_null"/>
|
||||
<Option value="true" type="bool" name="calendar_popup"/>
|
||||
<Option value="dd/MM/yyyy" type="QString" name="display_format"/>
|
||||
<Option value="dd/MM/yyyy" type="QString" name="field_format"/>
|
||||
<Option value="false" type="bool" name="field_iso_format"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="modele_sonde">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="logiciel">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="frequence_sauvegarde">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="ligero">
|
||||
<editWidget type="ValueMap">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option type="List" name="map">
|
||||
<Option type="Map">
|
||||
<Option value="oui" type="QString" name="oui"/>
|
||||
</Option>
|
||||
<Option type="Map">
|
||||
<Option value="non" type="QString" name="non"/>
|
||||
</Option>
|
||||
</Option>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="profondeur">
|
||||
<editWidget type="Range">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="true" type="bool" name="AllowNull"/>
|
||||
<Option value="100" type="double" name="Max"/>
|
||||
<Option value="0" type="double" name="Min"/>
|
||||
<Option value="0" type="int" name="Precision"/>
|
||||
<Option value="10" type="double" name="Step"/>
|
||||
<Option value="SpinBox" type="QString" name="Style"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="contexte">
|
||||
<editWidget type="ValueMap">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option type="List" name="map">
|
||||
<Option type="Map">
|
||||
<Option value="Tourbière boisée" type="QString" name="Tourbière boisée"/>
|
||||
</Option>
|
||||
<Option type="Map">
|
||||
<Option value="Autres" type="QString" name="Autres"/>
|
||||
</Option>
|
||||
</Option>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="salarie_referent">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="commentaires">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option type="Map">
|
||||
<Option value="false" type="bool" name="IsMultiline"/>
|
||||
<Option value="false" type="bool" name="UseHtml"/>
|
||||
</Option>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
</fieldConfiguration>
|
||||
<aliases>
|
||||
<alias field="id_cen" index="0" name=""/>
|
||||
<alias field="commune" index="1" name=""/>
|
||||
<alias field="dept" index="2" name=""/>
|
||||
<alias field="date_installation" index="3" name=""/>
|
||||
<alias field="modele_sonde" index="4" name=""/>
|
||||
<alias field="logiciel" index="5" name=""/>
|
||||
<alias field="frequence_sauvegarde" index="6" name=""/>
|
||||
<alias field="ligero" index="7" name=""/>
|
||||
<alias field="profondeur" index="8" name=""/>
|
||||
<alias field="contexte" index="9" name=""/>
|
||||
<alias field="salarie_referent" index="10" name=""/>
|
||||
<alias field="commentaires" index="11" name=""/>
|
||||
</aliases>
|
||||
<defaults>
|
||||
<default field="id_cen" applyOnUpdate="1" expression="concat(substr(maximum("id_cen"),0,-1), format_number(substr(maximum("id_cen"),7,8),0)+1)"/>
|
||||
<default field="commune" applyOnUpdate="0" expression=""/>
|
||||
<default field="dept" applyOnUpdate="0" expression=""/>
|
||||
<default field="date_installation" applyOnUpdate="0" expression=""/>
|
||||
<default field="modele_sonde" applyOnUpdate="0" expression=""/>
|
||||
<default field="logiciel" applyOnUpdate="0" expression=""/>
|
||||
<default field="frequence_sauvegarde" applyOnUpdate="0" expression=""/>
|
||||
<default field="ligero" applyOnUpdate="0" expression=""/>
|
||||
<default field="profondeur" applyOnUpdate="0" expression=""/>
|
||||
<default field="contexte" applyOnUpdate="0" expression=""/>
|
||||
<default field="salarie_referent" applyOnUpdate="0" expression=""/>
|
||||
<default field="commentaires" applyOnUpdate="0" expression=""/>
|
||||
</defaults>
|
||||
<constraints>
|
||||
<constraint field="id_cen" exp_strength="0" notnull_strength="1" constraints="3" unique_strength="1"/>
|
||||
<constraint field="commune" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="dept" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="date_installation" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="modele_sonde" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="logiciel" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="frequence_sauvegarde" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="ligero" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="profondeur" exp_strength="0" notnull_strength="1" constraints="1" unique_strength="0"/>
|
||||
<constraint field="contexte" exp_strength="0" notnull_strength="1" constraints="1" unique_strength="0"/>
|
||||
<constraint field="salarie_referent" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
<constraint field="commentaires" exp_strength="0" notnull_strength="0" constraints="0" unique_strength="0"/>
|
||||
</constraints>
|
||||
<constraintExpressions>
|
||||
<constraint field="id_cen" exp="" desc=""/>
|
||||
<constraint field="commune" exp="" desc=""/>
|
||||
<constraint field="dept" exp="" desc=""/>
|
||||
<constraint field="date_installation" exp="" desc=""/>
|
||||
<constraint field="modele_sonde" exp="" desc=""/>
|
||||
<constraint field="logiciel" exp="" desc=""/>
|
||||
<constraint field="frequence_sauvegarde" exp="" desc=""/>
|
||||
<constraint field="ligero" exp="" desc=""/>
|
||||
<constraint field="profondeur" exp="" desc=""/>
|
||||
<constraint field="contexte" exp="" desc=""/>
|
||||
<constraint field="salarie_referent" exp="" desc=""/>
|
||||
<constraint field="commentaires" exp="" desc=""/>
|
||||
</constraintExpressions>
|
||||
<expressionfields/>
|
||||
<attributeactions>
|
||||
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
|
||||
</attributeactions>
|
||||
<attributetableconfig sortExpression="" actionWidgetStyle="dropDown" sortOrder="0">
|
||||
<columns>
|
||||
<column hidden="0" width="-1" type="field" name="id_cen"/>
|
||||
<column hidden="0" width="-1" type="field" name="commune"/>
|
||||
<column hidden="0" width="-1" type="field" name="dept"/>
|
||||
<column hidden="0" width="-1" type="field" name="date_installation"/>
|
||||
<column hidden="0" width="-1" type="field" name="modele_sonde"/>
|
||||
<column hidden="0" width="-1" type="field" name="logiciel"/>
|
||||
<column hidden="0" width="-1" type="field" name="frequence_sauvegarde"/>
|
||||
<column hidden="0" width="-1" type="field" name="ligero"/>
|
||||
<column hidden="0" width="-1" type="field" name="profondeur"/>
|
||||
<column hidden="0" width="-1" type="field" name="contexte"/>
|
||||
<column hidden="0" width="-1" type="field" name="salarie_referent"/>
|
||||
<column hidden="0" width="-1" type="field" name="commentaires"/>
|
||||
<column hidden="1" width="-1" type="actions"/>
|
||||
</columns>
|
||||
</attributetableconfig>
|
||||
<conditionalstyles>
|
||||
<rowstyles/>
|
||||
<fieldstyles/>
|
||||
</conditionalstyles>
|
||||
<storedexpressions/>
|
||||
<editform tolerant="1"></editform>
|
||||
<editforminit/>
|
||||
<editforminitcodesource>0</editforminitcodesource>
|
||||
<editforminitfilepath></editforminitfilepath>
|
||||
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
|
||||
"""
|
||||
QGIS forms can have a Python function that is called when the form is
|
||||
opened.
|
||||
|
||||
Use this function to add extra logic to your forms.
|
||||
|
||||
Enter the name of the function in the "Python Init function"
|
||||
field.
|
||||
An example follows:
|
||||
"""
|
||||
from qgis.PyQt.QtWidgets import QWidget
|
||||
|
||||
def my_form_open(dialog, layer, feature):
|
||||
geom = feature.geometry()
|
||||
control = dialog.findChild(QWidget, "MyLineEdit")
|
||||
]]></editforminitcode>
|
||||
<featformsuppress>0</featformsuppress>
|
||||
<editorlayout>generatedlayout</editorlayout>
|
||||
<editable>
|
||||
<field editable="1" name="commentaires"/>
|
||||
<field editable="1" name="commune"/>
|
||||
<field editable="1" name="contexte"/>
|
||||
<field editable="1" name="date_installation"/>
|
||||
<field editable="1" name="dept"/>
|
||||
<field editable="1" name="frequence_sauvegarde"/>
|
||||
<field editable="0" name="id_cen"/>
|
||||
<field editable="1" name="ligero"/>
|
||||
<field editable="1" name="logiciel"/>
|
||||
<field editable="1" name="modele_sonde"/>
|
||||
<field editable="1" name="profondeur"/>
|
||||
<field editable="1" name="salarie_referent"/>
|
||||
</editable>
|
||||
<labelOnTop>
|
||||
<field labelOnTop="0" name="commentaires"/>
|
||||
<field labelOnTop="0" name="commune"/>
|
||||
<field labelOnTop="0" name="contexte"/>
|
||||
<field labelOnTop="0" name="date_installation"/>
|
||||
<field labelOnTop="0" name="dept"/>
|
||||
<field labelOnTop="0" name="frequence_sauvegarde"/>
|
||||
<field labelOnTop="0" name="id_cen"/>
|
||||
<field labelOnTop="0" name="ligero"/>
|
||||
<field labelOnTop="0" name="logiciel"/>
|
||||
<field labelOnTop="0" name="modele_sonde"/>
|
||||
<field labelOnTop="0" name="profondeur"/>
|
||||
<field labelOnTop="0" name="salarie_referent"/>
|
||||
</labelOnTop>
|
||||
<reuseLastValue>
|
||||
<field reuseLastValue="0" name="commentaires"/>
|
||||
<field reuseLastValue="0" name="commune"/>
|
||||
<field reuseLastValue="0" name="contexte"/>
|
||||
<field reuseLastValue="0" name="date_installation"/>
|
||||
<field reuseLastValue="0" name="dept"/>
|
||||
<field reuseLastValue="0" name="frequence_sauvegarde"/>
|
||||
<field reuseLastValue="0" name="id_cen"/>
|
||||
<field reuseLastValue="0" name="ligero"/>
|
||||
<field reuseLastValue="0" name="logiciel"/>
|
||||
<field reuseLastValue="0" name="modele_sonde"/>
|
||||
<field reuseLastValue="0" name="profondeur"/>
|
||||
<field reuseLastValue="0" name="salarie_referent"/>
|
||||
</reuseLastValue>
|
||||
<dataDefinedFieldProperties/>
|
||||
<widgets/>
|
||||
<previewExpression>"id_cen"</previewExpression>
|
||||
<mapTip></mapTip>
|
||||
<layerGeometryType>0</layerGeometryType>
|
||||
</qgis>
|
||||
331
CenRa_FLUX/styles_couches/znieff1.qml
Normal file
331
CenRa_FLUX/styles_couches/znieff2.qml
Normal file
579
CenRa_FLUX/styles_couches/zones_baties_carhab.qml
Normal file
@ -0,0 +1,579 @@
|
||||
<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'>
|
||||
<qgis labelsEnabled="0" hasScaleBasedVisibilityFlag="0" simplifyAlgorithm="0" version="3.22.9-Białowieża" simplifyDrawingTol="1" simplifyMaxScale="1" minScale="100000000" readOnly="0" simplifyDrawingHints="1" simplifyLocal="1" maxScale="0" styleCategories="AllStyleCategories" symbologyReferenceScale="-1">
|
||||
<flags>
|
||||
<Identifiable>1</Identifiable>
|
||||
<Removable>1</Removable>
|
||||
<Searchable>1</Searchable>
|
||||
<Private>0</Private>
|
||||
</flags>
|
||||
<temporal fixedDuration="0" accumulate="0" startExpression="" durationField="" limitMode="0" startField="" enabled="0" endField="" durationUnit="min" endExpression="" mode="0">
|
||||
<fixedRange>
|
||||
<start></start>
|
||||
<end></end>
|
||||
</fixedRange>
|
||||
</temporal>
|
||||
<renderer-v2 symbollevels="0" forceraster="0" referencescale="-1" enableorderby="0" type="RuleRenderer">
|
||||
<rules key="{928b307f-dbff-493f-b4c5-ac8d6da66bc4}">
|
||||
<rule symbol="0" label="Zone bâtie et autre habitat artificiel" filter="nom_simplifie_hab = 'Zone bâtie et autre habitat artificiel'" key="{7ccc6fa5-4ed7-491d-b6b6-d3490840c433}"/>
|
||||
</rules>
|
||||
<symbols>
|
||||
<symbol force_rhr="0" alpha="1" clip_to_extent="1" type="fill" name="0">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option type="QString" value="collection" name="type"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer pass="0" class="SimpleFill" enabled="1" locked="0">
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="border_width_map_unit_scale"/>
|
||||
<Option type="QString" value="97,97,97,255" name="color"/>
|
||||
<Option type="QString" value="bevel" name="joinstyle"/>
|
||||
<Option type="QString" value="0,0" name="offset"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="offset_map_unit_scale"/>
|
||||
<Option type="QString" value="Pixel" name="offset_unit"/>
|
||||
<Option type="QString" value="0,0,0,255" name="outline_color"/>
|
||||
<Option type="QString" value="no" name="outline_style"/>
|
||||
<Option type="QString" value="1" name="outline_width"/>
|
||||
<Option type="QString" value="Pixel" name="outline_width_unit"/>
|
||||
<Option type="QString" value="solid" name="style"/>
|
||||
</Option>
|
||||
<prop v="3x:0,0,0,0,0,0" k="border_width_map_unit_scale"/>
|
||||
<prop v="97,97,97,255" k="color"/>
|
||||
<prop v="bevel" k="joinstyle"/>
|
||||
<prop v="0,0" k="offset"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="offset_map_unit_scale"/>
|
||||
<prop v="Pixel" k="offset_unit"/>
|
||||
<prop v="0,0,0,255" k="outline_color"/>
|
||||
<prop v="no" k="outline_style"/>
|
||||
<prop v="1" k="outline_width"/>
|
||||
<prop v="Pixel" k="outline_width_unit"/>
|
||||
<prop v="solid" k="style"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option type="QString" value="collection" name="type"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
</symbols>
|
||||
</renderer-v2>
|
||||
<customproperties>
|
||||
<Option type="Map">
|
||||
<Option type="int" value="0" name="embeddedWidgets/count"/>
|
||||
<Option name="variableNames"/>
|
||||
<Option name="variableValues"/>
|
||||
</Option>
|
||||
</customproperties>
|
||||
<blendMode>0</blendMode>
|
||||
<featureBlendMode>0</featureBlendMode>
|
||||
<layerOpacity>1</layerOpacity>
|
||||
<SingleCategoryDiagramRenderer attributeLegend="1" diagramType="Histogram">
|
||||
<DiagramCategory penAlpha="255" lineSizeType="MM" backgroundColor="#ffffff" sizeType="MM" enabled="0" barWidth="5" penColor="#000000" rotationOffset="270" maxScaleDenominator="1e+08" direction="0" width="15" sizeScale="3x:0,0,0,0,0,0" lineSizeScale="3x:0,0,0,0,0,0" minimumSize="0" spacingUnitScale="3x:0,0,0,0,0,0" spacing="5" scaleBasedVisibility="0" labelPlacementMethod="XHeight" scaleDependency="Area" diagramOrientation="Up" opacity="1" showAxis="1" minScaleDenominator="0" backgroundAlpha="255" spacingUnit="MM" height="15" penWidth="0">
|
||||
<fontProperties style="" description="Noto Sans,9,-1,5,50,0,0,0,0,0"/>
|
||||
<axisSymbol>
|
||||
<symbol force_rhr="0" alpha="1" clip_to_extent="1" type="line" name="">
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option type="QString" value="collection" name="type"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
<layer pass="0" class="SimpleLine" enabled="1" locked="0">
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="0" name="align_dash_pattern"/>
|
||||
<Option type="QString" value="square" name="capstyle"/>
|
||||
<Option type="QString" value="5;2" name="customdash"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="customdash_map_unit_scale"/>
|
||||
<Option type="QString" value="MM" name="customdash_unit"/>
|
||||
<Option type="QString" value="0" name="dash_pattern_offset"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="dash_pattern_offset_map_unit_scale"/>
|
||||
<Option type="QString" value="MM" name="dash_pattern_offset_unit"/>
|
||||
<Option type="QString" value="0" name="draw_inside_polygon"/>
|
||||
<Option type="QString" value="bevel" name="joinstyle"/>
|
||||
<Option type="QString" value="35,35,35,255" name="line_color"/>
|
||||
<Option type="QString" value="solid" name="line_style"/>
|
||||
<Option type="QString" value="0.26" name="line_width"/>
|
||||
<Option type="QString" value="MM" name="line_width_unit"/>
|
||||
<Option type="QString" value="0" name="offset"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="offset_map_unit_scale"/>
|
||||
<Option type="QString" value="MM" name="offset_unit"/>
|
||||
<Option type="QString" value="0" name="ring_filter"/>
|
||||
<Option type="QString" value="0" name="trim_distance_end"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="trim_distance_end_map_unit_scale"/>
|
||||
<Option type="QString" value="MM" name="trim_distance_end_unit"/>
|
||||
<Option type="QString" value="0" name="trim_distance_start"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="trim_distance_start_map_unit_scale"/>
|
||||
<Option type="QString" value="MM" name="trim_distance_start_unit"/>
|
||||
<Option type="QString" value="0" name="tweak_dash_pattern_on_corners"/>
|
||||
<Option type="QString" value="0" name="use_custom_dash"/>
|
||||
<Option type="QString" value="3x:0,0,0,0,0,0" name="width_map_unit_scale"/>
|
||||
</Option>
|
||||
<prop v="0" k="align_dash_pattern"/>
|
||||
<prop v="square" k="capstyle"/>
|
||||
<prop v="5;2" k="customdash"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="customdash_map_unit_scale"/>
|
||||
<prop v="MM" k="customdash_unit"/>
|
||||
<prop v="0" k="dash_pattern_offset"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="dash_pattern_offset_map_unit_scale"/>
|
||||
<prop v="MM" k="dash_pattern_offset_unit"/>
|
||||
<prop v="0" k="draw_inside_polygon"/>
|
||||
<prop v="bevel" k="joinstyle"/>
|
||||
<prop v="35,35,35,255" k="line_color"/>
|
||||
<prop v="solid" k="line_style"/>
|
||||
<prop v="0.26" k="line_width"/>
|
||||
<prop v="MM" k="line_width_unit"/>
|
||||
<prop v="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="0" k="ring_filter"/>
|
||||
<prop v="0" k="trim_distance_end"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="trim_distance_end_map_unit_scale"/>
|
||||
<prop v="MM" k="trim_distance_end_unit"/>
|
||||
<prop v="0" k="trim_distance_start"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="trim_distance_start_map_unit_scale"/>
|
||||
<prop v="MM" k="trim_distance_start_unit"/>
|
||||
<prop v="0" k="tweak_dash_pattern_on_corners"/>
|
||||
<prop v="0" k="use_custom_dash"/>
|
||||
<prop v="3x:0,0,0,0,0,0" k="width_map_unit_scale"/>
|
||||
<data_defined_properties>
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option type="QString" value="collection" name="type"/>
|
||||
</Option>
|
||||
</data_defined_properties>
|
||||
</layer>
|
||||
</symbol>
|
||||
</axisSymbol>
|
||||
</DiagramCategory>
|
||||
</SingleCategoryDiagramRenderer>
|
||||
<DiagramLayerSettings priority="0" zIndex="0" linePlacementFlags="18" placement="1" showAll="1" dist="0" obstacle="0">
|
||||
<properties>
|
||||
<Option type="Map">
|
||||
<Option type="QString" value="" name="name"/>
|
||||
<Option name="properties"/>
|
||||
<Option type="QString" value="collection" name="type"/>
|
||||
</Option>
|
||||
</properties>
|
||||
</DiagramLayerSettings>
|
||||
<geometryOptions geometryPrecision="0" removeDuplicateNodes="0">
|
||||
<activeChecks/>
|
||||
<checkConfiguration type="Map">
|
||||
<Option type="Map" name="QgsGeometryGapCheck">
|
||||
<Option type="double" value="0" name="allowedGapsBuffer"/>
|
||||
<Option type="bool" value="false" name="allowedGapsEnabled"/>
|
||||
<Option type="QString" value="" name="allowedGapsLayer"/>
|
||||
</Option>
|
||||
</checkConfiguration>
|
||||
</geometryOptions>
|
||||
<legend showLabelLegend="0" type="default-vector"/>
|
||||
<referencedLayers/>
|
||||
<fieldConfiguration>
|
||||
<field configurationFlags="None" name="id_polygone_carhab">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="code_hab_carhab">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="nom_complet_hab">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="nom_simplifie_hab">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="code_biotope">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="littoralite">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="etage_de_vegetation">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="ombroclimat">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="continentalite">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="variante_bioclimatique">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="acidite_edaphique">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="humidite_edaphique">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="enneigement">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="code_physio">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="nom_physio">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="physio_source">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="occupation">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="milieu">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="surface">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="cd_hab">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="id_sinp_evenement">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="id_sinp_habitat">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
<field configurationFlags="None" name="fid">
|
||||
<editWidget type="TextEdit">
|
||||
<config>
|
||||
<Option/>
|
||||
</config>
|
||||
</editWidget>
|
||||
</field>
|
||||
</fieldConfiguration>
|
||||
<aliases>
|
||||
<alias index="0" field="id_polygone_carhab" name=""/>
|
||||
<alias index="1" field="code_hab_carhab" name=""/>
|
||||
<alias index="2" field="nom_complet_hab" name=""/>
|
||||
<alias index="3" field="nom_simplifie_hab" name=""/>
|
||||
<alias index="4" field="code_biotope" name=""/>
|
||||
<alias index="5" field="littoralite" name=""/>
|
||||
<alias index="6" field="etage_de_vegetation" name=""/>
|
||||
<alias index="7" field="ombroclimat" name=""/>
|
||||
<alias index="8" field="continentalite" name=""/>
|
||||
<alias index="9" field="variante_bioclimatique" name=""/>
|
||||
<alias index="10" field="acidite_edaphique" name=""/>
|
||||
<alias index="11" field="humidite_edaphique" name=""/>
|
||||
<alias index="12" field="enneigement" name=""/>
|
||||
<alias index="13" field="code_physio" name=""/>
|
||||
<alias index="14" field="nom_physio" name=""/>
|
||||
<alias index="15" field="physio_source" name=""/>
|
||||
<alias index="16" field="occupation" name=""/>
|
||||
<alias index="17" field="milieu" name=""/>
|
||||
<alias index="18" field="surface" name=""/>
|
||||
<alias index="19" field="cd_hab" name=""/>
|
||||
<alias index="20" field="id_sinp_evenement" name=""/>
|
||||
<alias index="21" field="id_sinp_habitat" name=""/>
|
||||
<alias index="22" field="fid" name=""/>
|
||||
</aliases>
|
||||
<defaults>
|
||||
<default expression="" field="id_polygone_carhab" applyOnUpdate="0"/>
|
||||
<default expression="" field="code_hab_carhab" applyOnUpdate="0"/>
|
||||
<default expression="" field="nom_complet_hab" applyOnUpdate="0"/>
|
||||
<default expression="" field="nom_simplifie_hab" applyOnUpdate="0"/>
|
||||
<default expression="" field="code_biotope" applyOnUpdate="0"/>
|
||||
<default expression="" field="littoralite" applyOnUpdate="0"/>
|
||||
<default expression="" field="etage_de_vegetation" applyOnUpdate="0"/>
|
||||
<default expression="" field="ombroclimat" applyOnUpdate="0"/>
|
||||
<default expression="" field="continentalite" applyOnUpdate="0"/>
|
||||
<default expression="" field="variante_bioclimatique" applyOnUpdate="0"/>
|
||||
<default expression="" field="acidite_edaphique" applyOnUpdate="0"/>
|
||||
<default expression="" field="humidite_edaphique" applyOnUpdate="0"/>
|
||||
<default expression="" field="enneigement" applyOnUpdate="0"/>
|
||||
<default expression="" field="code_physio" applyOnUpdate="0"/>
|
||||
<default expression="" field="nom_physio" applyOnUpdate="0"/>
|
||||
<default expression="" field="physio_source" applyOnUpdate="0"/>
|
||||
<default expression="" field="occupation" applyOnUpdate="0"/>
|
||||
<default expression="" field="milieu" applyOnUpdate="0"/>
|
||||
<default expression="" field="surface" applyOnUpdate="0"/>
|
||||
<default expression="" field="cd_hab" applyOnUpdate="0"/>
|
||||
<default expression="" field="id_sinp_evenement" applyOnUpdate="0"/>
|
||||
<default expression="" field="id_sinp_habitat" applyOnUpdate="0"/>
|
||||
<default expression="" field="fid" applyOnUpdate="0"/>
|
||||
</defaults>
|
||||
<constraints>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="id_polygone_carhab" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="code_hab_carhab" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="nom_complet_hab" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="nom_simplifie_hab" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="code_biotope" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="littoralite" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="etage_de_vegetation" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="ombroclimat" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="continentalite" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="variante_bioclimatique" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="acidite_edaphique" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="humidite_edaphique" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="enneigement" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="code_physio" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="nom_physio" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="physio_source" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="occupation" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="milieu" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="surface" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="cd_hab" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="id_sinp_evenement" exp_strength="0"/>
|
||||
<constraint constraints="0" notnull_strength="0" unique_strength="0" field="id_sinp_habitat" exp_strength="0"/>
|
||||
<constraint constraints="3" notnull_strength="1" unique_strength="1" field="fid" exp_strength="0"/>
|
||||
</constraints>
|
||||
<constraintExpressions>
|
||||
<constraint field="id_polygone_carhab" desc="" exp=""/>
|
||||
<constraint field="code_hab_carhab" desc="" exp=""/>
|
||||
<constraint field="nom_complet_hab" desc="" exp=""/>
|
||||
<constraint field="nom_simplifie_hab" desc="" exp=""/>
|
||||
<constraint field="code_biotope" desc="" exp=""/>
|
||||
<constraint field="littoralite" desc="" exp=""/>
|
||||
<constraint field="etage_de_vegetation" desc="" exp=""/>
|
||||
<constraint field="ombroclimat" desc="" exp=""/>
|
||||
<constraint field="continentalite" desc="" exp=""/>
|
||||
<constraint field="variante_bioclimatique" desc="" exp=""/>
|
||||
<constraint field="acidite_edaphique" desc="" exp=""/>
|
||||
<constraint field="humidite_edaphique" desc="" exp=""/>
|
||||
<constraint field="enneigement" desc="" exp=""/>
|
||||
<constraint field="code_physio" desc="" exp=""/>
|
||||
<constraint field="nom_physio" desc="" exp=""/>
|
||||
<constraint field="physio_source" desc="" exp=""/>
|
||||
<constraint field="occupation" desc="" exp=""/>
|
||||
<constraint field="milieu" desc="" exp=""/>
|
||||
<constraint field="surface" desc="" exp=""/>
|
||||
<constraint field="cd_hab" desc="" exp=""/>
|
||||
<constraint field="id_sinp_evenement" desc="" exp=""/>
|
||||
<constraint field="id_sinp_habitat" desc="" exp=""/>
|
||||
<constraint field="fid" desc="" exp=""/>
|
||||
</constraintExpressions>
|
||||
<expressionfields/>
|
||||
<attributeactions>
|
||||
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
|
||||
</attributeactions>
|
||||
<attributetableconfig sortExpression="" actionWidgetStyle="dropDown" sortOrder="0">
|
||||
<columns>
|
||||
<column hidden="0" width="-1" type="field" name="id_polygone_carhab"/>
|
||||
<column hidden="0" width="-1" type="field" name="code_hab_carhab"/>
|
||||
<column hidden="0" width="-1" type="field" name="nom_complet_hab"/>
|
||||
<column hidden="0" width="-1" type="field" name="nom_simplifie_hab"/>
|
||||
<column hidden="0" width="-1" type="field" name="code_biotope"/>
|
||||
<column hidden="0" width="-1" type="field" name="littoralite"/>
|
||||
<column hidden="0" width="-1" type="field" name="etage_de_vegetation"/>
|
||||
<column hidden="0" width="-1" type="field" name="ombroclimat"/>
|
||||
<column hidden="0" width="-1" type="field" name="continentalite"/>
|
||||
<column hidden="0" width="-1" type="field" name="variante_bioclimatique"/>
|
||||
<column hidden="0" width="-1" type="field" name="acidite_edaphique"/>
|
||||
<column hidden="0" width="-1" type="field" name="humidite_edaphique"/>
|
||||
<column hidden="0" width="-1" type="field" name="enneigement"/>
|
||||
<column hidden="0" width="-1" type="field" name="code_physio"/>
|
||||
<column hidden="0" width="-1" type="field" name="nom_physio"/>
|
||||
<column hidden="0" width="-1" type="field" name="physio_source"/>
|
||||
<column hidden="0" width="-1" type="field" name="occupation"/>
|
||||
<column hidden="0" width="-1" type="field" name="milieu"/>
|
||||
<column hidden="0" width="-1" type="field" name="surface"/>
|
||||
<column hidden="0" width="-1" type="field" name="cd_hab"/>
|
||||
<column hidden="0" width="-1" type="field" name="id_sinp_evenement"/>
|
||||
<column hidden="0" width="-1" type="field" name="id_sinp_habitat"/>
|
||||
<column hidden="0" width="-1" type="field" name="fid"/>
|
||||
<column hidden="1" width="-1" type="actions"/>
|
||||
</columns>
|
||||
</attributetableconfig>
|
||||
<conditionalstyles>
|
||||
<rowstyles/>
|
||||
<fieldstyles/>
|
||||
</conditionalstyles>
|
||||
<storedexpressions/>
|
||||
<editform tolerant="1"></editform>
|
||||
<editforminit/>
|
||||
<editforminitcodesource>0</editforminitcodesource>
|
||||
<editforminitfilepath></editforminitfilepath>
|
||||
<editforminitcode><![CDATA[# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Les formulaires QGIS peuvent avoir une fonction Python qui est appelée lorsque le formulaire est
|
||||
ouvert.
|
||||
|
||||
Utilisez cette fonction pour ajouter une logique supplémentaire à vos formulaires.
|
||||
|
||||
Entrez le nom de la fonction dans le champ
|
||||
"Fonction d'initialisation Python".
|
||||
Voici un exemple:
|
||||
"""
|
||||
from qgis.PyQt.QtWidgets import QWidget
|
||||
|
||||
def my_form_open(dialog, layer, feature):
|
||||
geom = feature.geometry()
|
||||
control = dialog.findChild(QWidget, "MyLineEdit")
|
||||
]]></editforminitcode>
|
||||
<featformsuppress>0</featformsuppress>
|
||||
<editorlayout>generatedlayout</editorlayout>
|
||||
<editable>
|
||||
<field editable="1" name="acidite_edaphique"/>
|
||||
<field editable="1" name="cd_hab"/>
|
||||
<field editable="1" name="code_biotope"/>
|
||||
<field editable="1" name="code_hab_carhab"/>
|
||||
<field editable="1" name="code_physio"/>
|
||||
<field editable="1" name="continentalite"/>
|
||||
<field editable="1" name="enneigement"/>
|
||||
<field editable="1" name="etage_de_vegetation"/>
|
||||
<field editable="1" name="fid"/>
|
||||
<field editable="1" name="humidite_edaphique"/>
|
||||
<field editable="1" name="id_polygone_carhab"/>
|
||||
<field editable="1" name="id_sinp_evenement"/>
|
||||
<field editable="1" name="id_sinp_habitat"/>
|
||||
<field editable="1" name="littoralite"/>
|
||||
<field editable="1" name="milieu"/>
|
||||
<field editable="1" name="nom_complet_hab"/>
|
||||
<field editable="1" name="nom_physio"/>
|
||||
<field editable="1" name="nom_simplifie_hab"/>
|
||||
<field editable="1" name="occupation"/>
|
||||
<field editable="1" name="ombroclimat"/>
|
||||
<field editable="1" name="physio_source"/>
|
||||
<field editable="1" name="surface"/>
|
||||
<field editable="1" name="variante_bioclimatique"/>
|
||||
</editable>
|
||||
<labelOnTop>
|
||||
<field labelOnTop="0" name="acidite_edaphique"/>
|
||||
<field labelOnTop="0" name="cd_hab"/>
|
||||
<field labelOnTop="0" name="code_biotope"/>
|
||||
<field labelOnTop="0" name="code_hab_carhab"/>
|
||||
<field labelOnTop="0" name="code_physio"/>
|
||||
<field labelOnTop="0" name="continentalite"/>
|
||||
<field labelOnTop="0" name="enneigement"/>
|
||||
<field labelOnTop="0" name="etage_de_vegetation"/>
|
||||
<field labelOnTop="0" name="fid"/>
|
||||
<field labelOnTop="0" name="humidite_edaphique"/>
|
||||
<field labelOnTop="0" name="id_polygone_carhab"/>
|
||||
<field labelOnTop="0" name="id_sinp_evenement"/>
|
||||
<field labelOnTop="0" name="id_sinp_habitat"/>
|
||||
<field labelOnTop="0" name="littoralite"/>
|
||||
<field labelOnTop="0" name="milieu"/>
|
||||
<field labelOnTop="0" name="nom_complet_hab"/>
|
||||
<field labelOnTop="0" name="nom_physio"/>
|
||||
<field labelOnTop="0" name="nom_simplifie_hab"/>
|
||||
<field labelOnTop="0" name="occupation"/>
|
||||
<field labelOnTop="0" name="ombroclimat"/>
|
||||
<field labelOnTop="0" name="physio_source"/>
|
||||
<field labelOnTop="0" name="surface"/>
|
||||
<field labelOnTop="0" name="variante_bioclimatique"/>
|
||||
</labelOnTop>
|
||||
<reuseLastValue>
|
||||
<field reuseLastValue="0" name="acidite_edaphique"/>
|
||||
<field reuseLastValue="0" name="cd_hab"/>
|
||||
<field reuseLastValue="0" name="code_biotope"/>
|
||||
<field reuseLastValue="0" name="code_hab_carhab"/>
|
||||
<field reuseLastValue="0" name="code_physio"/>
|
||||
<field reuseLastValue="0" name="continentalite"/>
|
||||
<field reuseLastValue="0" name="enneigement"/>
|
||||
<field reuseLastValue="0" name="etage_de_vegetation"/>
|
||||
<field reuseLastValue="0" name="fid"/>
|
||||
<field reuseLastValue="0" name="humidite_edaphique"/>
|
||||
<field reuseLastValue="0" name="id_polygone_carhab"/>
|
||||
<field reuseLastValue="0" name="id_sinp_evenement"/>
|
||||
<field reuseLastValue="0" name="id_sinp_habitat"/>
|
||||
<field reuseLastValue="0" name="littoralite"/>
|
||||
<field reuseLastValue="0" name="milieu"/>
|
||||
<field reuseLastValue="0" name="nom_complet_hab"/>
|
||||
<field reuseLastValue="0" name="nom_physio"/>
|
||||
<field reuseLastValue="0" name="nom_simplifie_hab"/>
|
||||
<field reuseLastValue="0" name="occupation"/>
|
||||
<field reuseLastValue="0" name="ombroclimat"/>
|
||||
<field reuseLastValue="0" name="physio_source"/>
|
||||
<field reuseLastValue="0" name="surface"/>
|
||||
<field reuseLastValue="0" name="variante_bioclimatique"/>
|
||||
</reuseLastValue>
|
||||
<dataDefinedFieldProperties/>
|
||||
<widgets/>
|
||||
<previewExpression>"nom_complet_hab"</previewExpression>
|
||||
<mapTip></mapTip>
|
||||
<layerGeometryType>2</layerGeometryType>
|
||||
</qgis>
|
||||
46
CenRa_Metabase/about_form.py
Normal file
@ -0,0 +1,46 @@
|
||||
import os.path
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtGui import QPixmap
|
||||
from qgis.PyQt.QtWidgets import QDialog
|
||||
|
||||
from .tools.resources import devlog
|
||||
|
||||
ABOUT_FORM_CLASS, _ = uic.loadUiType(
|
||||
os.path.join(
|
||||
str(Path(__file__).resolve().parent),
|
||||
'tools/ui',
|
||||
'CenRa_Metabase_about_form.ui'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class MetabaseAboutDialog(QDialog, ABOUT_FORM_CLASS):
|
||||
|
||||
""" About - Let the user display the about dialog. """
|
||||
|
||||
def __init__(self, iface, parent=None):
|
||||
super().__init__(parent)
|
||||
self.iface = iface
|
||||
self.setupUi(self)
|
||||
|
||||
self.viewer.setHtml(devlog('CenRa_METABASE'))
|
||||
|
||||
self.rejected.connect(self.onReject)
|
||||
self.buttonBox.rejected.connect(self.onReject)
|
||||
self.buttonBox.accepted.connect(self.onAccept)
|
||||
|
||||
def onAccept(self):
|
||||
"""
|
||||
Save options when pressing OK button
|
||||
"""
|
||||
self.accept()
|
||||
|
||||
def onReject(self):
|
||||
"""
|
||||
Run some actions when
|
||||
the user closes the dialog
|
||||
"""
|
||||
self.close()
|
||||
34
CenRa_Metabase/tools/PythonSQL.py
Normal file
@ -0,0 +1,34 @@
|
||||
import sys
|
||||
import socket
|
||||
import os
|
||||
IPAddr=socket.gethostbyname(socket.gethostname())
|
||||
#print(IPAddr)
|
||||
if IPAddr[0:11] == "100.100.100": #4269
|
||||
host = "100.100.100.81"
|
||||
port = "5432"
|
||||
dbname = "sig4269"
|
||||
sigdb="sig4269"
|
||||
refdb="ref_geo4269"
|
||||
password = "McVities"
|
||||
if IPAddr[0:9] == "192.168.0": #01
|
||||
host = "192.168.0.201"
|
||||
port = "5432"
|
||||
dbname = "sig01"
|
||||
sigdb="sig01"
|
||||
refdb="ref_geo01"
|
||||
password = "McVities"
|
||||
if IPAddr[0:9] == "192.168.1": #0726
|
||||
host = "192.168.1.201"
|
||||
port = "5432"
|
||||
dbname = "sig0726"
|
||||
sigdb="sig0726"
|
||||
refdb="ref_geo0726"
|
||||
password = "McVities"
|
||||
if sys.platform == 'linux':
|
||||
os_user = os.environ['USER']
|
||||
else:
|
||||
os_user = os.environ['USERNAME']
|
||||
if os_user == 'STAGE':
|
||||
os_user='stage'
|
||||
if os_user == 'Administrateur':
|
||||
os_user='stage'
|
||||
BIN
CenRa_Metabase/tools/bg/Capture.png
Normal file
|
After Width: | Height: | Size: 15 MiB |
61
CenRa_Metabase/tools/css/dock.css
Normal file
@ -0,0 +1,61 @@
|
||||
body {
|
||||
font-family: Ubuntu, Lucida Grande, Segoe UI, Arial, sans-serif;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
margin-top: 0px;
|
||||
font-size: 14px;
|
||||
}
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
img.logo{
|
||||
display: inline-block;
|
||||
margin-left:0px;
|
||||
margin-right: 0px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
vertical-align: top;
|
||||
width:25%
|
||||
}
|
||||
h2, h3 {
|
||||
color: #fff;
|
||||
background-color: #8cb63c;
|
||||
line-height: 2;
|
||||
padding-left:5px;
|
||||
}
|
||||
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
font-size: 13px;
|
||||
}
|
||||
th{
|
||||
color: #2c4491
|
||||
}
|
||||
table tr th, table tr td {
|
||||
text-align: left;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
table.table-striped {
|
||||
border: 1px solid #BBB;
|
||||
}
|
||||
table.table-striped tr td {
|
||||
border: 1px solid #BBB;
|
||||
}
|
||||
table.table-striped tr th {
|
||||
border: 1px solid #BBB;
|
||||
}
|
||||
table.table-striped tr:nth-child(even) {
|
||||
background: #EEE;
|
||||
}
|
||||
table.table-striped tr:nth-child(odd) {
|
||||
background: #FFF;
|
||||
}
|
||||
|
||||
#map {
|
||||
padding: 5px;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
box-shadow: 0 0 10px #999;
|
||||
}
|
||||
7
CenRa_Metabase/tools/html/contact.html
Normal file
@ -0,0 +1,7 @@
|
||||
<tr>
|
||||
<td>[% contact_role %]</td>
|
||||
<td>[% name %]</td>
|
||||
<td>[% organisation_name %] ([% organisation_unit %])</td>
|
||||
<td><a href="mailto:[% email %]">[% email %]</a></td>
|
||||
<td>[% phone %]</td>
|
||||
</tr>
|
||||
7
CenRa_Metabase/tools/html/link.html
Normal file
@ -0,0 +1,7 @@
|
||||
<tr>
|
||||
<td><span title="[% type_label %]">[% type %]</span></td>
|
||||
<td><a title="[% description %]" href="[% url %]" target="_blank">[% name %]</a></td>
|
||||
<td><span title="[% mime_label %]">[% mime %]</span></td>
|
||||
<td>[% format %]</td>
|
||||
<td>[% size %]</td>
|
||||
</tr>
|
||||
123
CenRa_Metabase/tools/html/main.html
Normal file
@ -0,0 +1,123 @@
|
||||
<div>
|
||||
<h3>Identification</h3>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<th>Title</th><td>[% title %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Abstract</th><td>[% abstract %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Categories</th><td>[% categories %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Themes</th><td>[% themes %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Keywords</th><td>[% keywords %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Data last update</th><td>[% data_last_update %]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Spatial properties</h3>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<th>Level</th><td>[% spatial_level %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Minimum scale</th><td>[% minimum_optimal_scale %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Maximum scale</th><td>[% maximum_optimal_scale %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Feature count</th><td>[% feature_count %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Geometry</th><td>[% geometry_type %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Extent</th><td>[% spatial_extent %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Projection name</th><td>[% projection_name %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Projection ID</th><td>[% projection_authid %]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Publication</h3>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<th>Date</th><td>[% publication_date %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Frequency</th><td>[% publication_frequency %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>License</th><td>[% license %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>License attribution / number</th><td>[% license_attribution %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Confidentiality</th><td>[% confidentiality %]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Links</h3>
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<tr>
|
||||
<th>Type</th>
|
||||
<th>Name</th>
|
||||
<th>MIME</th>
|
||||
<th>Format</th>
|
||||
<th>Size</th>
|
||||
</tr>
|
||||
[% meta_links %]
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Contacts</h3>
|
||||
<table class="table table-condensed table-striped table-bordered">
|
||||
<tr>
|
||||
<th>Role</th>
|
||||
<th>Name</th>
|
||||
<th>Organisation</th>
|
||||
<th>Email</th>
|
||||
<th>Phone</th>
|
||||
</tr>
|
||||
[% meta_contacts %]
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-condensed">
|
||||
<tr>
|
||||
<th>Table</th><td>[% table_name %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Schema</th><td>[% schema_name %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Creation</th><td>[% creation_date %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Update</th><td>[% update_date %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>UUID</th><td>[% uid %]</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
BIN
CenRa_Metabase/tools/icons/CEN_RA.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
CenRa_Metabase/tools/icons/icon.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
CenRa_Metabase/tools/icons/icon_2.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
CenRa_Metabase/tools/images/must_be_a_file.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
CenRa_Metabase/tools/lecture_sql.py
Normal file
187
CenRa_Metabase/tools/resources.py
Normal file
@ -0,0 +1,187 @@
|
||||
"""Tools to work with resource files."""
|
||||
|
||||
import configparser
|
||||
import shutil
|
||||
import tempfile
|
||||
import base64
|
||||
import psycopg2
|
||||
import psycopg2.extras
|
||||
from os.path import abspath, join, pardir, dirname
|
||||
from qgis.PyQt.QtWidgets import QApplication
|
||||
from qgis.PyQt import uic
|
||||
|
||||
__copyright__ = "Copyright 2019, 3Liz"
|
||||
__license__ = "GPL version 3"
|
||||
__email__ = "info@3liz.org"
|
||||
__revision__ = "$Format:%H$"
|
||||
|
||||
|
||||
def plugin_path(*args):
|
||||
"""Get the path to plugin root folder.
|
||||
|
||||
:param args List of path elements e.g. ['img', 'logos', 'image.png']
|
||||
:type args: str
|
||||
|
||||
:return: Absolute path to the plugin path.
|
||||
:rtype: str
|
||||
"""
|
||||
path = dirname(dirname(__file__))
|
||||
path = abspath(abspath(join(path, pardir)))
|
||||
for item in args:
|
||||
path = abspath(join(path, item))
|
||||
|
||||
return path
|
||||
|
||||
|
||||
def plugin_name():
|
||||
"""Return the plugin name according to metadata.txt.
|
||||
|
||||
:return: The plugin name.
|
||||
:rtype: basestring
|
||||
"""
|
||||
metadata = metadata_config()
|
||||
name = metadata["general"]["name"]
|
||||
return name
|
||||
|
||||
|
||||
def metadata_config() -> configparser:
|
||||
"""Get the INI config parser for the metadata file.
|
||||
|
||||
:return: The config parser object.
|
||||
:rtype: ConfigParser
|
||||
"""
|
||||
path = plugin_path("metadata.txt")
|
||||
config = configparser.ConfigParser()
|
||||
config.read(path, encoding='utf8')
|
||||
return config
|
||||
|
||||
|
||||
def plugin_test_data_path(*args, copy=False):
|
||||
"""Get the path to the plugin test data path.
|
||||
|
||||
:param args List of path elements e.g. ['img', 'logos', 'image.png']
|
||||
:type args: str
|
||||
|
||||
:param copy: If the file must be copied into a temporary directory first.
|
||||
:type copy: bool
|
||||
|
||||
:return: Absolute path to the resources folder.
|
||||
:rtype: str
|
||||
"""
|
||||
path = abspath(abspath(join(plugin_path(), "test", "data")))
|
||||
for item in args:
|
||||
path = abspath(join(path, item))
|
||||
|
||||
if copy:
|
||||
temp = tempfile.mkdtemp()
|
||||
shutil.copy(path, temp)
|
||||
return join(temp, args[-1])
|
||||
else:
|
||||
return path
|
||||
|
||||
|
||||
def resources_path(*args):
|
||||
"""Get the path to our resources folder.
|
||||
|
||||
:param args List of path elements e.g. ['img', 'logos', 'image.png']
|
||||
:type args: str
|
||||
|
||||
:return: Absolute path to the resources folder.
|
||||
:rtype: str
|
||||
"""
|
||||
path = abspath(abspath(join(plugin_path(), "CenRa_METABASE\\tools")))
|
||||
for item in args:
|
||||
path = abspath(join(path, item))
|
||||
return path
|
||||
|
||||
|
||||
def load_ui(*args):
|
||||
"""Get compile UI file.
|
||||
|
||||
:param args List of path elements e.g. ['img', 'logos', 'image.png']
|
||||
:type args: str
|
||||
|
||||
:return: Compiled UI file.
|
||||
"""
|
||||
ui_class, _ = uic.loadUiType(resources_path("ui", *args))
|
||||
|
||||
return ui_class
|
||||
|
||||
def login_base(take=None):
|
||||
from CenRa_METABASE.tools.PythonSQL import host,port,dbname,password,os_user
|
||||
first_conn = psycopg2.connect("host=" + host + " port=" + port + " dbname="+dbname+" user=first_cnx password=" + password)
|
||||
first_cur = first_conn.cursor(cursor_factory = psycopg2.extras.DictCursor)
|
||||
first_cur.execute("SELECT mdp_w, login_w FROM pg_catalog.pg_user t1, admin_sig.vm_users_sig t2 WHERE t2.oid = t1.usesysid AND (login_w = '" + os_user + "' OR login_w = '" + os_user + "')")
|
||||
res_ident = first_cur.fetchone()
|
||||
|
||||
mdp = base64.b64decode(str(res_ident[0])).decode('utf-8')
|
||||
user = res_ident[1]
|
||||
|
||||
con = psycopg2.connect("host=" + host + " port=" + port + " dbname="+dbname+" user=" + user + " password=" + mdp)
|
||||
|
||||
cur = con.cursor(cursor_factory = psycopg2.extras.DictCursor)
|
||||
first_conn.close()
|
||||
|
||||
if take:
|
||||
return cur,con
|
||||
else:
|
||||
return cur
|
||||
def send_issues(url,titre,body,labels):
|
||||
import requests
|
||||
import json
|
||||
import os
|
||||
import qgis
|
||||
|
||||
usr = os.environ['USERNAME']
|
||||
token = '9d0a4e0bea561710e0728f161f7edf4e5201e112'
|
||||
url=url+'?token='+token
|
||||
|
||||
headers = {'Authorization': 'token ' + token,'accept': 'application/json','Content-Type': 'application/json'}
|
||||
|
||||
|
||||
payload = {'title': titre, 'body': body, 'labels': labels}
|
||||
try:
|
||||
urllib.request.urlopen('https://google.com')
|
||||
binar = True
|
||||
except:
|
||||
binar = False
|
||||
r = ''
|
||||
if binar:
|
||||
r = requests.post(url, data=json.dumps(payload), headers=headers)
|
||||
return r
|
||||
|
||||
def maj_verif(NAME):
|
||||
import qgis
|
||||
import urllib.request
|
||||
iface = qgis.utils.iface
|
||||
from qgis.core import Qgis
|
||||
|
||||
url = qgis.utils.pluginMetadata(NAME,'repository')
|
||||
#URL = url+'/raw/branch/main/plugins.xml'
|
||||
URL = 'https://gitea.cenra-outils.org/CEN-RA/Plugin_QGIS/releases/download/releases/plugins.xml'
|
||||
# print(URL)
|
||||
version = qgis.utils.pluginMetadata(NAME,'version')
|
||||
len_version = len(version)
|
||||
try:
|
||||
urllib.request.urlopen('https://google.com')
|
||||
binar = True
|
||||
except:
|
||||
binar = False
|
||||
if binar:
|
||||
version_web = str(urllib.request.urlopen(URL).read())
|
||||
plugin_num = version_web.find(NAME)
|
||||
valeur_version_web = version_web.find('<version>',plugin_num)+9
|
||||
version_plugin = version_web[valeur_version_web:valeur_version_web+len_version]
|
||||
if version_plugin != version:
|
||||
iface.messageBar().pushMessage("MAJ :", "Des mise à jour de plugin sont disponibles.", level=Qgis.Info, duration=30)
|
||||
else:
|
||||
iface.messageBar().pushMessage("WiFi :", "Pas de connection à internet.", level=Qgis.Warning, duration=30)
|
||||
|
||||
def tr(text, context="@default"):
|
||||
return QApplication.translate(context, text)
|
||||
|
||||
def devlog(NAME):
|
||||
import qgis
|
||||
devmaj = '<head><style>* {margin:0; padding:0; }</style></head>'
|
||||
devmaj = devmaj+qgis.utils.pluginMetadata(NAME,'changelog')
|
||||
return devmaj
|
||||
332
CenRa_Metabase/tools/ui/CenRa_IssuesSend.ui
Normal file
@ -0,0 +1,332 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_IssuesSend</class>
|
||||
<widget class="QDialog" name="CenRa_IssuesSend">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>810</width>
|
||||
<height>587</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>CEN-RA Metabase</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
<normaloff>icon.svg</normaloff>icon.svg</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="gridLayoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>550</y>
|
||||
<width>811</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="2">
|
||||
<widget class="QPushButton" name="annuler_button">
|
||||
<property name="text">
|
||||
<string>Annuler</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="3">
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="ok_button">
|
||||
<property name="text">
|
||||
<string>Envoyer</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>10</y>
|
||||
<width>791</width>
|
||||
<height>531</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Issues</string>
|
||||
</property>
|
||||
<widget class="QLineEdit" name="titre_line">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>240</x>
|
||||
<y>40</y>
|
||||
<width>321</width>
|
||||
<height>41</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPlainTextEdit" name="messages_plain">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>101</y>
|
||||
<width>571</width>
|
||||
<height>421</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QFrame" name="frame">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>589</x>
|
||||
<y>100</y>
|
||||
<width>191</width>
|
||||
<height>431</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<widget class="QWidget" name="formLayoutWidget">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>9</x>
|
||||
<y>9</y>
|
||||
<width>341</width>
|
||||
<height>411</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<property name="labelAlignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
|
||||
</property>
|
||||
<property name="formAlignment">
|
||||
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set>
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="check_bug">
|
||||
<property name="text">
|
||||
<string>Bug</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="horizontalSpacer_4">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="check_aide">
|
||||
<property name="text">
|
||||
<string>Aide</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<spacer name="horizontalSpacer_7">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QCheckBox" name="check_question">
|
||||
<property name="text">
|
||||
<string>Question</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<spacer name="horizontalSpacer_6">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QCheckBox" name="check_amelioration">
|
||||
<property name="text">
|
||||
<string>Amélioration</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<spacer name="horizontalSpacer_5">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QCheckBox" name="check_autre">
|
||||
<property name="text">
|
||||
<string>Autre</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>20</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>250</x>
|
||||
<y>20</y>
|
||||
<width>51</width>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Arial</family>
|
||||
<pointsize>14</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Titre:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>70</y>
|
||||
<width>91</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Arial</family>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Messages:</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>600</x>
|
||||
<y>70</y>
|
||||
<width>91</width>
|
||||
<height>31</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font>
|
||||
<family>Arial</family>
|
||||
<pointsize>12</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Sujet:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
<tabstops>
|
||||
<tabstop>ok_button</tabstop>
|
||||
<tabstop>annuler_button</tabstop>
|
||||
</tabstops>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
96
CenRa_Metabase/tools/ui/CenRa_Metabase_about_form.ui
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_Metabase_editorwidget_base</class>
|
||||
<widget class="QDialog" name="CenRa_Metabase_editorwidget_base">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>471</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Metabase</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
<normaloff>../../CenRa_Metabase/tools/ui/icon.svg</normaloff>../../CenRa_Metabase/tools/ui/icon.svg</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>453</width>
|
||||
<height>547</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>451</width>
|
||||
<height>541</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>DevLog</string>
|
||||
</property>
|
||||
<widget class="QWebView" name="viewer" native="true">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>431</width>
|
||||
<height>511</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">QtWebKitWidgets/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
87
CenRa_Metabase/tools/ui/CenRa_Metabase_dockwidget_base.ui
Normal file
@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_MetabaseDockWidgetBase</class>
|
||||
<widget class="QDockWidget" name="CenRa_MetabaseDockWidgetBase">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>329</width>
|
||||
<height>515</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>CenRa MetaBase</string>
|
||||
</property>
|
||||
<widget class="QWidget" name="dockWidgetContents">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QToolButton" name="save_button">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="config">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
<property name="arrowType">
|
||||
<enum>Qt::NoArrow</enum>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QToolButton" name="flatten_dataset_table">
|
||||
<property name="text">
|
||||
<string notr="true">...</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="external_help">
|
||||
<property name="text">
|
||||
<string notr="true">help</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWebView" name="viewer" native="true">
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">QtWebKitWidgets/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
1921
CenRa_Metabase/tools/ui/CenRa_Metabase_editorwidget_base.ui
Normal file
26
CenRa_Metabase/tools/xml/dcat.xml
Normal file
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" ?>
|
||||
<rdf:RDF
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:dct="http://purl.org/dc/terms/"
|
||||
xmlns:dcat="http://www.w3.org/ns/dcat#"
|
||||
xmlns:owl="http://www.w3.org/2002/07/owl#"
|
||||
xmlns:foaf="http://xmlns.com/foaf/0.1/"
|
||||
xmlns:adms="http://www.w3.org/ns/adms#"
|
||||
xmlns:vcard="http://www.w3.org/2006/vcard/ns#"
|
||||
xmlns:schema="http://schema.org/"
|
||||
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
|
||||
|
||||
<dcat:Catalog>
|
||||
<dct:description>CEN-RA DCAT RDF catalog</dct:description>
|
||||
<dct:language>{language}</dct:language>
|
||||
<dct:title>CEN-RA Metadata</dct:title>
|
||||
<dcat:dataset>
|
||||
|
||||
<dcat:Dataset>
|
||||
{content}
|
||||
</dcat:Dataset>
|
||||
|
||||
</dcat:dataset>
|
||||
|
||||
</dcat:Catalog>
|
||||
</rdf:RDF>
|
||||
9
CenRa_Metabase/tools/xml/distribution.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<dcat:distribution>
|
||||
<dcat:Distribution>
|
||||
<dct:title></dct:title>
|
||||
<dcat:downloadURL></dcat:downloadURL>
|
||||
<dcat:mediaType></dcat:mediaType>
|
||||
<dct:format></dct:format>
|
||||
<dct:bytesize></dct:bytesize>
|
||||
</dcat:Distribution>
|
||||
</dcat:distribution>
|
||||
6
CenRa_Metabase/tools/xml/publisher.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<dct:publisher>
|
||||
<foaf:Organization>
|
||||
<foaf:name></foaf:name>
|
||||
<foaf:mbox></foaf:mbox>
|
||||
</foaf:Organization>
|
||||
</dct:publisher>
|
||||
119
CenRa_POSTGIS/Makefile
Normal file
@ -0,0 +1,119 @@
|
||||
#/***************************************************************************
|
||||
# CenRa
|
||||
#
|
||||
# Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
# -------------------
|
||||
# begin : 2014-03-27
|
||||
# copyright : (C) 2014 by Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
# email : guillaume.costes@espaces-naturels.fr
|
||||
# ***************************************************************************/
|
||||
#
|
||||
#/***************************************************************************
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU General Public License as published by *
|
||||
# * the Free Software Foundation; either version 2 of the License, or *
|
||||
# * (at your option) any later version. *
|
||||
# * *
|
||||
# ***************************************************************************/
|
||||
|
||||
# CONFIGURATION
|
||||
PLUGIN_UPLOAD = $(CURDIR)/plugin_upload.py
|
||||
|
||||
QGISDIR=.qgis2
|
||||
|
||||
# Makefile for a PyQGIS plugin
|
||||
|
||||
# translation
|
||||
SOURCES = cenra.py ui_cenra.py __init__.py cenradialog.py
|
||||
#TRANSLATIONS = i18n/cenra_en.ts
|
||||
TRANSLATIONS =
|
||||
|
||||
# global
|
||||
|
||||
PLUGINNAME = cenra
|
||||
|
||||
PY_FILES = cenra.py cenradialog.py __init__.py
|
||||
|
||||
EXTRAS = cenra.png metadata.txt
|
||||
|
||||
UI_FILES = ui_cenra.py
|
||||
|
||||
RESOURCE_FILES = resources_rc.py
|
||||
|
||||
HELP = help/build/html
|
||||
|
||||
default: compile
|
||||
|
||||
compile: $(UI_FILES) $(RESOURCE_FILES)
|
||||
|
||||
%_rc.py : %.qrc
|
||||
pyrcc4 -o $*_rc.py $<
|
||||
|
||||
%.py : %.ui
|
||||
pyuic4 -o $@ $<
|
||||
|
||||
%.qm : %.ts
|
||||
lrelease $<
|
||||
|
||||
# The deploy target only works on unix like operating system where
|
||||
# the Python plugin directory is located at:
|
||||
# $HOME/$(QGISDIR)/python/plugins
|
||||
deploy: compile doc transcompile
|
||||
mkdir -p $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(PY_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(UI_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(RESOURCE_FILES) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vf $(EXTRAS) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr i18n $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
cp -vfr $(HELP) $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)/help
|
||||
|
||||
# The dclean target removes compiled python files from plugin directory
|
||||
# also delets any .svn entry
|
||||
dclean:
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname "*.pyc" -delete
|
||||
find $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME) -iname ".svn" -prune -exec rm -Rf {} \;
|
||||
|
||||
# The derase deletes deployed plugin
|
||||
derase:
|
||||
rm -Rf $(HOME)/$(QGISDIR)/python/plugins/$(PLUGINNAME)
|
||||
|
||||
# The zip target deploys the plugin and creates a zip file with the deployed
|
||||
# content. You can then upload the zip file on http://plugins.qgis.org
|
||||
zip: deploy dclean
|
||||
rm -f $(PLUGINNAME).zip
|
||||
cd $(HOME)/$(QGISDIR)/python/plugins; zip -9r $(CURDIR)/$(PLUGINNAME).zip $(PLUGINNAME)
|
||||
|
||||
# Create a zip package of the plugin named $(PLUGINNAME).zip.
|
||||
# This requires use of git (your plugin development directory must be a
|
||||
# git repository).
|
||||
# To use, pass a valid commit or tag as follows:
|
||||
# make package VERSION=Version_0.3.2
|
||||
package: compile
|
||||
rm -f $(PLUGINNAME).zip
|
||||
git archive --prefix=$(PLUGINNAME)/ -o $(PLUGINNAME).zip $(VERSION)
|
||||
echo "Created package: $(PLUGINNAME).zip"
|
||||
|
||||
upload: zip
|
||||
$(PLUGIN_UPLOAD) $(PLUGINNAME).zip
|
||||
|
||||
# transup
|
||||
# update .ts translation files
|
||||
transup:
|
||||
pylupdate4 Makefile
|
||||
|
||||
# transcompile
|
||||
# compile translation files into .qm binary format
|
||||
transcompile: $(TRANSLATIONS:.ts=.qm)
|
||||
|
||||
# transclean
|
||||
# deletes all .qm files
|
||||
transclean:
|
||||
rm -f i18n/*.qm
|
||||
|
||||
clean:
|
||||
rm $(UI_FILES) $(RESOURCE_FILES)
|
||||
|
||||
# build documentation with sphinx
|
||||
doc:
|
||||
cd help; make html
|
||||
32
CenRa_POSTGIS/README.html
Normal file
@ -0,0 +1,32 @@
|
||||
<html>
|
||||
<body style='background-color:##D7ECF8;'>
|
||||
<h3>Plugin Builder Results</h3>
|
||||
<div id='help' style='font-size:.9em;'>
|
||||
Your plugin <b>CenRa</b> was created in:<br>
|
||||
<b>C:\Users\gcostes\.qgis2\python\plugins\CenRa</b>
|
||||
<p>
|
||||
Your QGIS plugin directory is located at:<br>
|
||||
<b>C:/Users/gcostes/.qgis2/python/plugins</b>
|
||||
<p>
|
||||
<b>What's Next</b>
|
||||
<ol>
|
||||
<li>Copy the entire directory containing your new plugin to the QGIS plugin directory
|
||||
<li>Compile the ui file using pyuic4
|
||||
<li>Compile the resources file using pyrcc4
|
||||
<li>Test the plugin by enabling it in the QGIS plugin manager
|
||||
<li>Customize it by editing the implementation file <b>cenra.py</b>
|
||||
<li>Create your own custom icon, replacing the default <b>icon.png</b>
|
||||
<li>Modify your user interface by opening <b>cenra.ui</b> in Qt Designer (don't forget to compile it with pyuic4 after changing it)
|
||||
<li>You can use the <b>Makefile</b> to compile your Ui and resource files when you make changes. This requires GNU make (gmake)
|
||||
</ul>
|
||||
</div>
|
||||
<div style='font-size:.9em;'>
|
||||
<p>
|
||||
For more information, see the PyQGIS Developer Cookbook at:
|
||||
<a href="http://www.qgis.org/pyqgis-cookbook/index.html">http://www.qgis.org/pyqgis-cookbook/index.html</a>.
|
||||
</p>
|
||||
</div>
|
||||
<img src="http://geoapt.com/geoapt_logo_p.png" alt='GeoApt LLC' title='GeoApt LLC' align='absmiddle'>
|
||||
©2011-2014 GeoApt LLC - geoapt.com
|
||||
</body>
|
||||
</html>
|
||||
27
CenRa_POSTGIS/__init__.py.bak
Normal file
@ -0,0 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
CenRa
|
||||
A QGIS plugin
|
||||
Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
-------------------
|
||||
begin : 2014-03-27
|
||||
copyright : (C) 2014 by Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
This script initializes the plugin, making it known to QGIS.
|
||||
"""
|
||||
|
||||
def classFactory(iface):
|
||||
# load CenRa class from file CenRa
|
||||
from cenra import CenRa
|
||||
return CenRa(iface)
|
||||
798
CenRa_POSTGIS/cenra.py.bak
Normal file
@ -0,0 +1,798 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
CenRa
|
||||
A QGIS plugin
|
||||
Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
-------------------
|
||||
begin : 2014-03-27
|
||||
copyright : (C) 2014 by Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
"""
|
||||
from __future__ import absolute_import
|
||||
# Import the PyQt and QGIS libraries
|
||||
from builtins import str
|
||||
from builtins import object
|
||||
from qgis.PyQt.QtCore import QSettings
|
||||
from qgis.PyQt.QtWidgets import QAction, QMenu
|
||||
from qgis.PyQt.QtGui import QIcon
|
||||
from qgis.core import *
|
||||
# Initialize Qt resources from file resources.py
|
||||
from . import resources_rc
|
||||
# Import the code for the dialog
|
||||
from .cenradialog import CenRaDialog
|
||||
from .table_postgisdialog import table_postgisDialog
|
||||
|
||||
import os.path
|
||||
import webbrowser, os
|
||||
import sys
|
||||
import psycopg2
|
||||
|
||||
class CenRa(object):
|
||||
|
||||
def __init__(self, iface):
|
||||
# Save reference to the QGIS interface
|
||||
self.iface = iface
|
||||
# initialize plugin directory
|
||||
self.plugin_dir = os.path.dirname(__file__)
|
||||
# initialize locale
|
||||
locale = QSettings().value("locale/userLocale")[0:2]
|
||||
localePath = os.path.join(self.plugin_dir, 'i18n', 'cenra_{}.qm'.format(locale))
|
||||
|
||||
if os.path.exists(localePath):
|
||||
self.translator = QTranslator()
|
||||
self.translator.load(localePath)
|
||||
|
||||
if qVersion() > '4.3.3':
|
||||
QCoreApplication.installTranslator(self.translator)
|
||||
|
||||
# Create the dialog (after translation) and keep reference
|
||||
self.dlg = CenRaDialog()
|
||||
self.dlgAjout = table_postgisDialog()
|
||||
|
||||
def initGui(self):
|
||||
self.toolBar = self.iface.addToolBar("CEN-RA")
|
||||
self.toolBar.setObjectName("CEN-RA")
|
||||
|
||||
# ***Create action that will start plugin configuration
|
||||
self.action = QAction(
|
||||
QIcon(":/plugins/CenRa/page_new.png"),
|
||||
u"Création d'un dossier", self.iface.mainWindow())
|
||||
# connect the action to the run method
|
||||
self.action.triggered.connect(self.creation)
|
||||
|
||||
# Add toolbar button and menu item
|
||||
self.toolBar.addAction(self.action)
|
||||
self.iface.addPluginToMenu(u"CenRa", self.action)
|
||||
|
||||
# ***Create action that will start plugin configuration
|
||||
self.action = QAction(
|
||||
QIcon(":/plugins/CenRa/page_ajout.png"),
|
||||
u"Ajout d'une table", self.iface.mainWindow())
|
||||
# connect the action to the run method
|
||||
self.action.triggered.connect(self.ajout)
|
||||
|
||||
# Add toolbar button and menu item
|
||||
self.toolBar.addAction(self.action)
|
||||
self.iface.addPluginToMenu(u"&CenRa", self.action)
|
||||
|
||||
# ***Create action that will start plugin configuration
|
||||
self.action = QAction(
|
||||
QIcon(":/plugins/CenRa/help.png"),
|
||||
u"Aide", self.iface.mainWindow())
|
||||
# connect the action to the run method
|
||||
self.action.triggered.connect(self.doHelp)
|
||||
|
||||
# Add toolbar button and menu item
|
||||
self.toolBar.addAction(self.action)
|
||||
self.iface.addPluginToMenu(u"CenRa", self.action)
|
||||
|
||||
self.menu = QMenu()
|
||||
self.menu.setTitle( QCoreApplication.translate( "CENRA","&CenRa" ) )
|
||||
|
||||
self.cenra_new = QAction( QIcon(":/plugins/CenRa/page_new.png"), QCoreApplication.translate("CENRA", u"Création d'un dossier" ), self.iface.mainWindow() )
|
||||
self.cenra_ajout = QAction( QIcon(":/plugins/CenRa/page_ajout.png"), QCoreApplication.translate("CENRA", "Ajout d'une table" ), self.iface.mainWindow() )
|
||||
self.cenra_help = QAction( QIcon(":/plugins/CenRa/help.png"), QCoreApplication.translate("CENRA", "Aide" ), self.iface.mainWindow() )
|
||||
|
||||
self.menu.addActions( [self.cenra_new, self.cenra_ajout, self.cenra_help] )
|
||||
|
||||
menu_bar = self.iface.mainWindow().menuBar()
|
||||
actions = menu_bar.actions()
|
||||
lastAction = actions[ len( actions ) - 1 ]
|
||||
menu_bar.insertMenu( lastAction, self.menu )
|
||||
|
||||
self.cenra_new.triggered.connect(self.creation)
|
||||
self.cenra_ajout.triggered.connect(self.ajout)
|
||||
self.cenra_help.triggered.connect(self.doHelp)
|
||||
|
||||
def unload(self):
|
||||
# Remove the plugin menu item and icon
|
||||
self.iface.removePluginMenu(u"&CenRa", self.action)
|
||||
self.iface.removeToolBarIcon(self.action)
|
||||
|
||||
# run method that performs all the real work
|
||||
def creation(self):
|
||||
# show the dialog
|
||||
self.dlg.show()
|
||||
# Run the dialog event loop
|
||||
result = self.dlg.exec_()
|
||||
# See if OK was pressed
|
||||
if result == 1:
|
||||
|
||||
#**********************************Debut_script****************************************
|
||||
import psycopg2
|
||||
|
||||
### config.txt
|
||||
config = "//100.100.100.100/bd_sig/z_QGIS/config.txt" # Chemin du fichier config
|
||||
|
||||
# Fonction de lecture des lignes du fichier config
|
||||
def readline(n):
|
||||
with open(config, "r") as f:
|
||||
for lineno, line in enumerate(f):
|
||||
if lineno == n:
|
||||
return line.strip() # Permet d'enlever les retours chariots
|
||||
|
||||
# Recuperation des donnees
|
||||
host = readline(10)
|
||||
port = readline(12)
|
||||
dbname = readline(14)
|
||||
user = readline(16)
|
||||
password = readline(18)
|
||||
|
||||
### Creation du schema pour le nouveau site
|
||||
if self.dlg.at.isChecked():
|
||||
schema = "_" + self.dlg.dept.currentText() + "_at_" + self.dlg.nom.text().lower() # Ajout de "_" pour eviter pb de numero en premier caractere
|
||||
else :
|
||||
schema = "_" + self.dlg.dept.currentText() + "_" + self.dlg.nom.text().lower() # Ajout de "_" pour eviter pb de numero en premier caractere
|
||||
|
||||
if self.dlg.nom.text() == "" or self.dlg.nom.text() == "NULL":
|
||||
QMessageBox.warning(None, "Oups :", "Veuillez renseigner un nom de dossier.")
|
||||
return
|
||||
|
||||
ch = [u"à", u"À", u"â", u"Â", u"ä", u"Ä", u"å", u"Å", u"ç", u"Ç", u"é", u"É", u"è", u"È", u"ê", u"Ê", u"ë", u"Ë", u"î", u"Î", u"ï", u"Ï", u"ô", u"Ô", u"ö", u"Ö", u"ù", u"Ù", u"û", u"Û", u"ü", u"Ü", u"ÿ", u"Ÿ", u"'", u"-", u" "]
|
||||
for car in ch :
|
||||
if self.dlg.nom.text().find(car) != -1 :
|
||||
QMessageBox.warning(None, "Oups :", u"Le nom de dossier ne doit pas comporter de caractères spéciaux, ni d'espaces !\n\n\t" + self.dlg.nom.text().lower() )
|
||||
return
|
||||
|
||||
con = psycopg2.connect("dbname="+ dbname + " user=" + user + " host=" + host + " password=" + password)
|
||||
cur = con.cursor()
|
||||
|
||||
SQL_schema = "CREATE SCHEMA " + schema + " AUTHORIZATION postgres;"
|
||||
|
||||
cur.execute(SQL_schema)
|
||||
|
||||
### Creation de la table contour
|
||||
if self.dlg.couche_contour.isChecked(): # Verifie si la checkbox est cochee
|
||||
if self.dlg.annee_1.text() == 'aaaa' or self.dlg.annee_1.text() == '':
|
||||
tablename = schema + "_contour"
|
||||
else :
|
||||
tablename = schema + "_contour_" + self.dlg.annee_1.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(21)
|
||||
champ_contour = readline(32)
|
||||
|
||||
SQL_contour = "CREATE TABLE " + schema + "."+ tablename + champ_contour
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'contour_modele'"""
|
||||
|
||||
cur.execute(SQL_contour)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table habitat
|
||||
if self.dlg.couche_habitat.isChecked():
|
||||
if self.dlg.annee_2.text() == 'aaaa' or self.dlg.annee_2.text() == '':
|
||||
tablename = schema + "_habitat"
|
||||
else :
|
||||
tablename = schema + "_habitat_" + self.dlg.annee_2.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(22)
|
||||
champ_habitat = readline(35)
|
||||
|
||||
SQL_habitat = "CREATE TABLE " + schema + "."+ tablename + champ_habitat
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_concat_cd_cb = "CREATE TRIGGER concat_cd_cb" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.concat_cd_cb();"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'habitat_modele'"""
|
||||
|
||||
cur.execute(SQL_habitat)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_trigger_concat_cd_cb)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table travaux prevus
|
||||
if self.dlg.couche_travaux_prevus.isChecked():
|
||||
#**********Poly
|
||||
if self.dlg.annee_5.text() == 'aaaa' or self.dlg.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_poly"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_poly_" + self.dlg.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(26)
|
||||
champ_travaux_prevus = readline(43)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_poly_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
#**********ligne
|
||||
if self.dlg.annee_5.text() == 'aaaa' or self.dlg.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_ligne"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_ligne_" + self.dlg.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(27)
|
||||
champ_travaux_prevus = readline(44)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_length_m = "CREATE TRIGGER length_m" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_m();"
|
||||
SQL_trigger_length_km = "CREATE TRIGGER length_km" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_km();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_ligne_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_length_m)
|
||||
cur.execute(SQL_trigger_length_km)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
#**********point
|
||||
if self.dlg.annee_5.text() == 'aaaa' or self.dlg.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_point"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_point_" + self.dlg.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(28)
|
||||
champ_travaux_prevus = readline(45)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_coordonnees = "CREATE TRIGGER coordonnees" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.coordonnees();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_point_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_coordonnees)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table vierge
|
||||
if self.dlg.couche_vierge.isChecked():
|
||||
if self.dlg.annee_4.text() == 'aaaa' or self.dlg.annee_4.text() == '':
|
||||
tablename = schema + "_" + self.dlg.nom_couche_vierge.text().lower()
|
||||
else :
|
||||
tablename = schema + "_" + self.dlg.nom_couche_vierge.text().lower() + "_" + self.dlg.annee_4.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(29)
|
||||
champ_viergePolygone = readline(48)
|
||||
champ_viergeLigne = readline(49)
|
||||
champ_viergePoint = readline(50)
|
||||
|
||||
if self.dlg.couche_vierge_point.isChecked() == 1 :
|
||||
champ_vierge = champ_viergePoint
|
||||
|
||||
if self.dlg.couche_vierge_ligne.isChecked() == 1 :
|
||||
champ_vierge = champ_viergeLigne
|
||||
|
||||
if self.dlg.couche_vierge_polygone.isChecked() == 1 :
|
||||
champ_vierge = champ_viergePolygone
|
||||
|
||||
SQL_vierge = "CREATE TABLE " + schema + "."+ tablename + champ_vierge
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_length_m = "CREATE TRIGGER length_m" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_m();"
|
||||
SQL_trigger_length_km = "CREATE TRIGGER length_km" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_km();"
|
||||
SQL_trigger_coordonnees = "CREATE TRIGGER coordonnees" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.coordonnees();"
|
||||
|
||||
cur.execute(SQL_vierge)
|
||||
cur.execute(SQL_pkey)
|
||||
|
||||
if self.dlg.couche_vierge_point.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_coordonnees)
|
||||
|
||||
if self.dlg.couche_vierge_ligne.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_length_m)
|
||||
cur.execute(SQL_trigger_length_km)
|
||||
|
||||
if self.dlg.couche_vierge_polygone.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
|
||||
con.commit()
|
||||
|
||||
### Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
else :
|
||||
con.commit()
|
||||
|
||||
con.close()
|
||||
pass
|
||||
|
||||
### Outil Aide
|
||||
def doHelp(self):
|
||||
webbrowser.open("http://plateformesig.cenra-outils.org/")
|
||||
|
||||
### Outil Ajout de nouvelles couche a un dossier
|
||||
def ajout(self):
|
||||
import psycopg2
|
||||
|
||||
config = "//100.100.100.100/bd_sig/z_QGIS/config.txt" # Chemin du fichier config
|
||||
# Fonction de lecture des lignes du fichier config
|
||||
def readline(n):
|
||||
with open(config, "r") as f:
|
||||
for lineno, line in enumerate(f):
|
||||
if lineno == n:
|
||||
return line.strip() # Permet d'enlever les retours chariots
|
||||
|
||||
host = readline(10)
|
||||
port = readline(12)
|
||||
dbname = readline(14)
|
||||
user = readline(16)
|
||||
password = readline(18)
|
||||
|
||||
con = psycopg2.connect("dbname="+ dbname + " user=" + user + " host=" + host + " password=" + password)
|
||||
cur = con.cursor()
|
||||
# Creation de la liste des schemas de la base de donnees
|
||||
SQL = """WITH list_schema AS (
|
||||
SELECT catalog_name, schema_name
|
||||
FROM information_schema.schemata
|
||||
WHERE schema_name <> 'information_schema'
|
||||
AND schema_name !~ E'^pg_'
|
||||
ORDER BY schema_name
|
||||
)
|
||||
|
||||
SELECT string_agg(schema_name,',')
|
||||
FROM list_schema
|
||||
GROUP BY catalog_name"""
|
||||
|
||||
cur.execute(SQL)
|
||||
|
||||
list_brut = str(next(cur))
|
||||
|
||||
list = list_brut [3:-3]
|
||||
listItems = list.split(",")
|
||||
|
||||
con.close()
|
||||
|
||||
self.dlgAjout.ui.schema.clear()
|
||||
self.dlgAjout.ui.schema.addItems(listItems)
|
||||
self.dlgAjout.ui.schema.setCurrentIndex(-1) # Pour ne pas commencer la liste au premier schema
|
||||
|
||||
# show the dialog
|
||||
self.dlgAjout.show()
|
||||
# Run the dialog event loop
|
||||
result = self.dlgAjout.exec_()
|
||||
# See if OK was pressed
|
||||
if result == 1:
|
||||
#******************************debut script*********************************
|
||||
### config.txt
|
||||
config = "//100.100.100.100/bd_sig/z_QGIS/config.txt" # Chemin du fichier config
|
||||
|
||||
# Fonction de lecture des lignes du fichier config
|
||||
def readline(n):
|
||||
with open(config, "r") as f:
|
||||
for lineno, line in enumerate(f):
|
||||
if lineno == n:
|
||||
return line.strip() # Permet d'enlever les retours chariots
|
||||
|
||||
# Recuperation des donnees
|
||||
host = readline(10)
|
||||
port = readline(12)
|
||||
dbname = readline(14)
|
||||
user = readline(16)
|
||||
password = readline(18)
|
||||
|
||||
con = psycopg2.connect("dbname="+ dbname + " user=" + user + " host=" + host + " password=" + password)
|
||||
cur = con.cursor()
|
||||
|
||||
if self.dlgAjout.ui.schema.currentIndex() == -1 :
|
||||
QMessageBox.warning(None, "Oups :", "Veuillez choisir un nom de dossier.")
|
||||
return
|
||||
|
||||
schema = self.dlgAjout.ui.schema.currentText()
|
||||
|
||||
### Creation de la table contour
|
||||
if self.dlgAjout.ui.couche_contour.isChecked(): # Verifie si la checkbox est cochee
|
||||
if self.dlgAjout.ui.annee_1.text() == 'aaaa' or self.dlgAjout.ui.annee_1.text() == '':
|
||||
tablename = schema + "_contour"
|
||||
else :
|
||||
tablename = schema + "_contour_" + self.dlgAjout.ui.annee_1.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(21)
|
||||
champ_contour = readline(32)
|
||||
|
||||
SQL_contour = "CREATE TABLE " + schema + "."+ tablename + champ_contour
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'contour_modele'"""
|
||||
|
||||
cur.execute(SQL_contour)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table habitat
|
||||
if self.dlgAjout.ui.couche_habitat.isChecked():
|
||||
if self.dlgAjout.ui.annee_2.text() == 'aaaa' or self.dlgAjout.ui.annee_2.text() == '':
|
||||
tablename = schema + "_habitat"
|
||||
else :
|
||||
tablename = schema + "_habitat_" + self.dlgAjout.ui.annee_2.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(22)
|
||||
champ_habitat = readline(35)
|
||||
|
||||
SQL_habitat = "CREATE TABLE " + schema + "."+ tablename + champ_habitat
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_concat_cd_cb = "CREATE TRIGGER concat_cd_cb" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.concat_cd_cb();"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'habitat_modele'"""
|
||||
|
||||
cur.execute(SQL_habitat)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_trigger_concat_cd_cb)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table travaux prevus
|
||||
if self.dlgAjout.ui.couche_travaux_prevus.isChecked():
|
||||
#**********Poly
|
||||
if self.dlgAjout.ui.annee_5.text() == 'aaaa' or self.dlgAjout.ui.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_poly"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_poly_" + self.dlgAjout.ui.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(26)
|
||||
champ_travaux_prevus = readline(43)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_poly_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
#**********ligne
|
||||
if self.dlgAjout.ui.annee_5.text() == 'aaaa' or self.dlgAjout.ui.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_ligne"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_ligne_" + self.dlgAjout.ui.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(27)
|
||||
champ_travaux_prevus = readline(44)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_length_m = "CREATE TRIGGER length_m" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_m();"
|
||||
SQL_trigger_length_km = "CREATE TRIGGER length_km" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_km();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_ligne_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_length_m)
|
||||
cur.execute(SQL_trigger_length_km)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
#**********point
|
||||
if self.dlgAjout.ui.annee_5.text() == 'aaaa' or self.dlgAjout.ui.annee_5.text() == '':
|
||||
tablename = schema + "_travaux_prevus_point"
|
||||
else :
|
||||
tablename = schema + "_travaux_prevus_point_" + self.dlgAjout.ui.annee_5.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(28)
|
||||
champ_travaux_prevus = readline(45)
|
||||
|
||||
SQL_travaux_prevus = "CREATE TABLE " + schema + "."+ tablename + champ_travaux_prevus
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
SQL_trigger_date_creation = "CREATE TRIGGER date_creation" + tablename + " BEFORE INSERT ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_creation();"
|
||||
SQL_trigger_date_maj = "CREATE TRIGGER date_maj" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.date_maj();"
|
||||
SQL_trigger_coordonnees = "CREATE TRIGGER coordonnees" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.coordonnees();"
|
||||
|
||||
SQL_style = """INSERT INTO layer_styles (f_table_catalog, f_table_schema, f_table_name, f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, update_time)
|
||||
SELECT f_table_catalog, '""" + schema + "', '" + tablename + """', f_geometry_column, stylename, styleqml, stylesld, useasdefault, "owner", ui, now()
|
||||
FROM layer_styles
|
||||
WHERE description = 'travaux_prevus_point_modele'"""
|
||||
|
||||
cur.execute(SQL_travaux_prevus)
|
||||
cur.execute(SQL_pkey)
|
||||
cur.execute(SQL_trigger_date_creation)
|
||||
cur.execute(SQL_trigger_date_maj)
|
||||
cur.execute(SQL_trigger_coordonnees)
|
||||
cur.execute(SQL_style) ## Enregistrement du style (comme style par defaut) dans la table layer_styles
|
||||
|
||||
con.commit()
|
||||
|
||||
## Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
### Creation de la table vierge
|
||||
if self.dlgAjout.ui.couche_vierge.isChecked():
|
||||
if self.dlgAjout.ui.annee_4.text() == 'aaaa' or self.dlgAjout.ui.annee_4.text() == '':
|
||||
tablename = schema + "_" + self.dlgAjout.ui.nom_couche_vierge.text().lower()
|
||||
else :
|
||||
tablename = schema + "_" + self.dlgAjout.ui.nom_couche_vierge.text().lower() + "_" + self.dlgAjout.ui.annee_4.text()
|
||||
tablename_qgis = tablename[1:] # Permet d'enlever le "_", ajouter a la premiere etape, dans qgis
|
||||
geom = readline(6)
|
||||
style = readline(29)
|
||||
champ_viergePolygone = readline(48)
|
||||
champ_viergeLigne = readline(49)
|
||||
champ_viergePoint = readline(50)
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_point.isChecked() == 1 :
|
||||
champ_vierge = champ_viergePoint
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_ligne.isChecked() == 1 :
|
||||
champ_vierge = champ_viergeLigne
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_polygone.isChecked() == 1 :
|
||||
champ_vierge = champ_viergePolygone
|
||||
|
||||
SQL_vierge = "CREATE TABLE " + schema + "."+ tablename + champ_vierge
|
||||
SQL_pkey = "ALTER TABLE " + schema + "." + tablename + " ADD CONSTRAINT " + tablename + "_pkey" + " PRIMARY KEY (gid)"
|
||||
|
||||
SQL_trigger_area_m2 = "CREATE TRIGGER area_m2" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_m2();"
|
||||
SQL_trigger_area_ha = "CREATE TRIGGER area_ha" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.area_ha();"
|
||||
SQL_trigger_length_m = "CREATE TRIGGER length_m" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_m();"
|
||||
SQL_trigger_length_km = "CREATE TRIGGER length_km" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.length_km();"
|
||||
SQL_trigger_coordonnees = "CREATE TRIGGER coordonnees" + tablename + " BEFORE INSERT OR UPDATE ON " + schema + "." + tablename + " FOR EACH ROW EXECUTE PROCEDURE ref.coordonnees();"
|
||||
|
||||
cur.execute(SQL_vierge)
|
||||
cur.execute(SQL_pkey)
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_point.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_coordonnees)
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_ligne.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_length_m)
|
||||
cur.execute(SQL_trigger_length_km)
|
||||
|
||||
if self.dlgAjout.ui.couche_vierge_polygone.isChecked() == 1 :
|
||||
cur.execute(SQL_trigger_area_m2)
|
||||
cur.execute(SQL_trigger_area_ha)
|
||||
|
||||
con.commit()
|
||||
|
||||
### Affichage de la table
|
||||
uri = QgsDataSourceURI()
|
||||
# set host name, port, database name, username and password
|
||||
uri.setConnection(host ,port ,dbname ,user ,password)
|
||||
# set database schema, table name, geometry column and optionaly subset (WHERE clause)
|
||||
uri.setDataSource(schema, tablename, geom)
|
||||
|
||||
layer = self.iface.addVectorLayer(uri.uri(), tablename_qgis, "postgres")
|
||||
|
||||
else :
|
||||
con.commit()
|
||||
|
||||
con.close()
|
||||
pass
|
||||
36
CenRa_POSTGIS/cenradialog.py.bak
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
/***************************************************************************
|
||||
CenRaDialog
|
||||
A QGIS plugin
|
||||
Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
-------------------
|
||||
begin : 2014-03-27
|
||||
copyright : (C) 2014 by Conservatoire d'Espaces Naturels de Rhône-Alpes
|
||||
email : guillaume.costes@espaces-naturels.fr
|
||||
***************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
* the Free Software Foundation; either version 2 of the License, or *
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
"""
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
from ui_cenra import Ui_cenra
|
||||
# create the dialog for zoom to point
|
||||
|
||||
|
||||
class CenRaDialog(QtGui.QDialog, Ui_cenra):
|
||||
def __init__(self):
|
||||
QtGui.QDialog.__init__(self)
|
||||
# Set up the user interface from Designer.
|
||||
# After setupUI you can access any designer object by doing
|
||||
# self.<objectname>, and you can use autoconnect slots - see
|
||||
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
|
||||
# #widgets-and-dialogs-with-auto-connect
|
||||
self.setupUi(self)
|
||||
46
CenRa_POSTGIS/forms/about_form.py
Normal file
@ -0,0 +1,46 @@
|
||||
import os.path
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from qgis.PyQt import uic
|
||||
from qgis.PyQt.QtGui import QPixmap
|
||||
from qgis.PyQt.QtWidgets import QDialog
|
||||
|
||||
from ..tools.resources import devlog
|
||||
|
||||
ABOUT_FORM_CLASS, _ = uic.loadUiType(
|
||||
os.path.join(
|
||||
str(Path(__file__).resolve().parent.parent),
|
||||
'forms',
|
||||
'postgis_about_form.ui'
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class PostgisAboutDialog(QDialog, ABOUT_FORM_CLASS):
|
||||
|
||||
""" About - Let the user display the about dialog. """
|
||||
|
||||
def __init__(self, iface, parent=None):
|
||||
super().__init__(parent)
|
||||
self.iface = iface
|
||||
self.setupUi(self)
|
||||
|
||||
self.viewer.setHtml(devlog('CenRa_POSTGIS'))
|
||||
|
||||
self.rejected.connect(self.onReject)
|
||||
self.buttonBox.rejected.connect(self.onReject)
|
||||
self.buttonBox.accepted.connect(self.onAccept)
|
||||
|
||||
def onAccept(self):
|
||||
"""
|
||||
Save options when pressing OK button
|
||||
"""
|
||||
self.accept()
|
||||
|
||||
def onReject(self):
|
||||
"""
|
||||
Run some actions when
|
||||
the user closes the dialog
|
||||
"""
|
||||
self.close()
|
||||
96
CenRa_POSTGIS/forms/postgis_about_form.ui
Normal file
@ -0,0 +1,96 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>CenRa_Metabase_editorwidget_base</class>
|
||||
<widget class="QDialog" name="CenRa_Metabase_editorwidget_base">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>471</width>
|
||||
<height>594</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>POSTGIS</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset>
|
||||
<normaloff>../../CenRa_Metabase/tools/ui/icon.svg</normaloff>../../CenRa_Metabase/tools/ui/icon.svg</iconset>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QScrollArea" name="scrollArea">
|
||||
<property name="mouseTracking">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="focusPolicy">
|
||||
<enum>Qt::NoFocus</enum>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::NoFrame</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Plain</enum>
|
||||
</property>
|
||||
<property name="widgetResizable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<widget class="QWidget" name="scrollAreaWidgetContents">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>453</width>
|
||||
<height>547</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>451</width>
|
||||
<height>541</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>DevLog</string>
|
||||
</property>
|
||||
<widget class="QWebView" name="viewer" native="true">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>20</y>
|
||||
<width>431</width>
|
||||
<height>511</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="url" stdset="0">
|
||||
<url>
|
||||
<string>about:blank</string>
|
||||
</url>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QWebView</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">QtWebKitWidgets/QWebView</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
130
CenRa_POSTGIS/help/Makefile
Normal file
@ -0,0 +1,130 @@
|
||||
# Makefile for Sphinx documentation
|
||||
#
|
||||
|
||||
# You can set these variables from the command line.
|
||||
SPHINXOPTS =
|
||||
SPHINXBUILD = sphinx-build
|
||||
PAPER =
|
||||
BUILDDIR = build
|
||||
|
||||
# Internal variables.
|
||||
PAPEROPT_a4 = -D latex_paper_size=a4
|
||||
PAPEROPT_letter = -D latex_paper_size=letter
|
||||
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
|
||||
|
||||
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
|
||||
|
||||
help:
|
||||
@echo "Please use \`make <target>' where <target> is one of"
|
||||
@echo " html to make standalone HTML files"
|
||||
@echo " dirhtml to make HTML files named index.html in directories"
|
||||
@echo " singlehtml to make a single large HTML file"
|
||||
@echo " pickle to make pickle files"
|
||||
@echo " json to make JSON files"
|
||||
@echo " htmlhelp to make HTML files and a HTML help project"
|
||||
@echo " qthelp to make HTML files and a qthelp project"
|
||||
@echo " devhelp to make HTML files and a Devhelp project"
|
||||
@echo " epub to make an epub"
|
||||
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
|
||||
@echo " latexpdf to make LaTeX files and run them through pdflatex"
|
||||
@echo " text to make text files"
|
||||
@echo " man to make manual pages"
|
||||
@echo " changes to make an overview of all changed/added/deprecated items"
|
||||
@echo " linkcheck to check all external links for integrity"
|
||||
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
|
||||
|
||||
clean:
|
||||
-rm -rf $(BUILDDIR)/*
|
||||
|
||||
html:
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
dirhtml:
|
||||
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
|
||||
|
||||
singlehtml:
|
||||
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
|
||||
@echo
|
||||
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
|
||||
|
||||
pickle:
|
||||
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
|
||||
@echo
|
||||
@echo "Build finished; now you can process the pickle files."
|
||||
|
||||
json:
|
||||
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
|
||||
@echo
|
||||
@echo "Build finished; now you can process the JSON files."
|
||||
|
||||
htmlhelp:
|
||||
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run HTML Help Workshop with the" \
|
||||
".hhp project file in $(BUILDDIR)/htmlhelp."
|
||||
|
||||
qthelp:
|
||||
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
|
||||
@echo
|
||||
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
|
||||
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
|
||||
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/templateclass.qhcp"
|
||||
@echo "To view the help file:"
|
||||
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/templateclass.qhc"
|
||||
|
||||
devhelp:
|
||||
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
|
||||
@echo
|
||||
@echo "Build finished."
|
||||
@echo "To view the help file:"
|
||||
@echo "# mkdir -p $$HOME/.local/share/devhelp/templateclass"
|
||||
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/templateclass"
|
||||
@echo "# devhelp"
|
||||
|
||||
epub:
|
||||
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
|
||||
@echo
|
||||
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
|
||||
|
||||
latex:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo
|
||||
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
|
||||
@echo "Run \`make' in that directory to run these through (pdf)latex" \
|
||||
"(use \`make latexpdf' here to do that automatically)."
|
||||
|
||||
latexpdf:
|
||||
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
|
||||
@echo "Running LaTeX files through pdflatex..."
|
||||
make -C $(BUILDDIR)/latex all-pdf
|
||||
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
|
||||
|
||||
text:
|
||||
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
|
||||
@echo
|
||||
@echo "Build finished. The text files are in $(BUILDDIR)/text."
|
||||
|
||||
man:
|
||||
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
|
||||
@echo
|
||||
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
|
||||
|
||||
changes:
|
||||
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
|
||||
@echo
|
||||
@echo "The overview file is in $(BUILDDIR)/changes."
|
||||
|
||||
linkcheck:
|
||||
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
|
||||
@echo
|
||||
@echo "Link check complete; look for any errors in the above output " \
|
||||
"or in $(BUILDDIR)/linkcheck/output.txt."
|
||||
|
||||
doctest:
|
||||
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
|
||||
@echo "Testing of doctests in the sources finished, look at the " \
|
||||
"results in $(BUILDDIR)/doctest/output.txt."
|
||||
155
CenRa_POSTGIS/help/make.bat
Normal file
@ -0,0 +1,155 @@
|
||||
@ECHO OFF
|
||||
|
||||
REM Command file for Sphinx documentation
|
||||
|
||||
if "%SPHINXBUILD%" == "" (
|
||||
set SPHINXBUILD=sphinx-build
|
||||
)
|
||||
set BUILDDIR=build
|
||||
set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% source
|
||||
if NOT "%PAPER%" == "" (
|
||||
set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
|
||||
)
|
||||
|
||||
if "%1" == "" goto help
|
||||
|
||||
if "%1" == "help" (
|
||||
:help
|
||||
echo.Please use `make ^<target^>` where ^<target^> is one of
|
||||
echo. html to make standalone HTML files
|
||||
echo. dirhtml to make HTML files named index.html in directories
|
||||
echo. singlehtml to make a single large HTML file
|
||||
echo. pickle to make pickle files
|
||||
echo. json to make JSON files
|
||||
echo. htmlhelp to make HTML files and a HTML help project
|
||||
echo. qthelp to make HTML files and a qthelp project
|
||||
echo. devhelp to make HTML files and a Devhelp project
|
||||
echo. epub to make an epub
|
||||
echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
|
||||
echo. text to make text files
|
||||
echo. man to make manual pages
|
||||
echo. changes to make an overview over all changed/added/deprecated items
|
||||
echo. linkcheck to check all external links for integrity
|
||||
echo. doctest to run all doctests embedded in the documentation if enabled
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "clean" (
|
||||
for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
|
||||
del /q /s %BUILDDIR%\*
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "html" (
|
||||
%SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/html.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "dirhtml" (
|
||||
%SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "singlehtml" (
|
||||
%SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
|
||||
echo.
|
||||
echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "pickle" (
|
||||
%SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
|
||||
echo.
|
||||
echo.Build finished; now you can process the pickle files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "json" (
|
||||
%SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
|
||||
echo.
|
||||
echo.Build finished; now you can process the JSON files.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "htmlhelp" (
|
||||
%SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
|
||||
echo.
|
||||
echo.Build finished; now you can run HTML Help Workshop with the ^
|
||||
.hhp project file in %BUILDDIR%/htmlhelp.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "qthelp" (
|
||||
%SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
|
||||
echo.
|
||||
echo.Build finished; now you can run "qcollectiongenerator" with the ^
|
||||
.qhcp project file in %BUILDDIR%/qthelp, like this:
|
||||
echo.^> qcollectiongenerator %BUILDDIR%\qthelp\templateclass.qhcp
|
||||
echo.To view the help file:
|
||||
echo.^> assistant -collectionFile %BUILDDIR%\qthelp\templateclass.ghc
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "devhelp" (
|
||||
%SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
|
||||
echo.
|
||||
echo.Build finished.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "epub" (
|
||||
%SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
|
||||
echo.
|
||||
echo.Build finished. The epub file is in %BUILDDIR%/epub.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "latex" (
|
||||
%SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
|
||||
echo.
|
||||
echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "text" (
|
||||
%SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
|
||||
echo.
|
||||
echo.Build finished. The text files are in %BUILDDIR%/text.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "man" (
|
||||
%SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
|
||||
echo.
|
||||
echo.Build finished. The manual pages are in %BUILDDIR%/man.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "changes" (
|
||||
%SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
|
||||
echo.
|
||||
echo.The overview file is in %BUILDDIR%/changes.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "linkcheck" (
|
||||
%SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
|
||||
echo.
|
||||
echo.Link check complete; look for any errors in the above output ^
|
||||
or in %BUILDDIR%/linkcheck/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
if "%1" == "doctest" (
|
||||
%SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
|
||||
echo.
|
||||
echo.Testing of doctests in the sources finished, look at the ^
|
||||
results in %BUILDDIR%/doctest/output.txt.
|
||||
goto end
|
||||
)
|
||||
|
||||
:end
|
||||