phase 3 : débrayage contrainte

Je n'arrive pas à refaire des tronçons correctement découpés. FME sort des types agrégés donc je fais sauter la contrainte.
This commit is contained in:
Maël 2020-02-25 19:17:28 +01:00
parent 690dee7536
commit 0df1d7caaf
2 changed files with 696 additions and 26 deletions

View file

@ -19,6 +19,18 @@
</projectCrs>
<layer-tree-group>
<customproperties/>
<layer-tree-group name="phase 5 geojson" checked="Qt::Checked" expanded="1">
<customproperties/>
<layer-tree-layer name="phase_5_pk_umap sql_statement" source="../scripts/data/phase_5_pk_umap.geojson" id="phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981" checked="Qt::Checked" providerKey="ogr" expanded="1">
<customproperties/>
</layer-tree-layer>
<layer-tree-layer name="phase_5_trace_troncons sql_statement" source="../scripts/data/phase_5_trace_troncons.geojson" id="phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31" checked="Qt::Checked" providerKey="ogr" expanded="1">
<customproperties/>
</layer-tree-layer>
<layer-tree-layer name="phase_5_trace_secteurs sql_statement" source="../scripts/data/phase_5_trace_secteurs.geojson" id="phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3" checked="Qt::Checked" providerKey="ogr" expanded="1">
<customproperties/>
</layer-tree-layer>
</layer-tree-group>
<layer-tree-layer name="phase_3_pk_auto" source="../scripts/data/phase_3_pk_auto.geojson" id="phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07" checked="Qt::Unchecked" providerKey="ogr" expanded="1">
<customproperties/>
</layer-tree-layer>
@ -28,7 +40,7 @@
<layer-tree-layer name="phase_2_point_nettoyage" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=Point checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;phase_2_point_nettoyage&quot; (the_geom) sql=" id="phase_2_point_nettoyage_3ebf74a1_98c5_4153_be3b_334d73b353e9" checked="Qt::Checked" providerKey="postgres" expanded="1">
<customproperties/>
</layer-tree-layer>
<layer-tree-layer name="osm_roads_pgr_vertices_pgr" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=Point checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;osm_roads_pgr_vertices_pgr&quot; (the_geom) sql=" id="osm_roads_pgr_vertices_pgr_abe06098_be24_4d83_967f_1d14ecda28fc" checked="Qt::Checked" providerKey="postgres" expanded="1">
<layer-tree-layer name="osm_roads_pgr_vertices_pgr" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=Point checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;osm_roads_pgr_vertices_pgr&quot; (the_geom) sql=" id="osm_roads_pgr_vertices_pgr_abe06098_be24_4d83_967f_1d14ecda28fc" checked="Qt::Unchecked" providerKey="postgres" expanded="1">
<customproperties/>
</layer-tree-layer>
<layer-tree-layer name="test_routage" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' key='_uid_' checkPrimaryKeyUnicity='1' table=&quot;(SELECT row_number() over () AS _uid_,* FROM (SELECT&#xa; 0 AS secteur_id,&#xa; -- info de routage&#xa; a.path_seq,&#xa; a.node,&#xa; a.cost,&#xa; a.agg_cost,&#xa; -- infos OSM&#xa; b.osm_id,&#xa; b.highway,&#xa; b.\&quot;type\&quot;,&#xa; b.oneway,&#xa; b.ref,&#xa; CASE&#xa; WHEN b.name_fr IS NULL AND b.ref IS NOT NULL THEN b.ref&#xa;ELSE b.name_fr&#xa; END AS name_fr,&#xa; CASE&#xa; WHEN b.name_br IS NULL AND b.name_fr IS NULL AND b.ref IS NOT NULL THEN b.ref&#xa;WHEN b.name_br IS NULL AND b.name_fr IS NOT NULL THEN '# da dreiñ e brezhoneg #'&#xa;ELSE b.name_br&#xa; END AS name_br,&#xa; b.the_geom&#xa;FROM pgr_dijkstra(&#xa; 'SELECT id, source, target, cost, reverse_cost FROM osm_roads_pgr', 24149, 20318) as a&#xa;JOIN osm_roads_pgr b ON a.edge = b.id &#xa;) AS _subq_1_&#xa;)&quot; (the_geom) sql=" id="test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca" checked="Qt::Unchecked" providerKey="postgres" expanded="1">
@ -42,7 +54,7 @@
</layer-tree-layer>
<layer-tree-group name="patch OSM roads" checked="Qt::Checked" expanded="1">
<customproperties/>
<layer-tree-layer name="osm_roads_pgr_patch" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=LineString checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;osm_roads_pgr_patch&quot; (the_geom) sql=" id="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" checked="Qt::Checked" providerKey="postgres" expanded="1">
<layer-tree-layer name="osm_roads_pgr_patch" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=LineString checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;osm_roads_pgr_patch&quot; (the_geom) sql=" id="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" checked="Qt::Unchecked" providerKey="postgres" expanded="1">
<customproperties/>
</layer-tree-layer>
<layer-tree-layer name="osm_roads_pgr_patch_mask" source="dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' sslmode=disable key='id' srid=2154 type=Polygon checkPrimaryKeyUnicity='1' table=&quot;public&quot;.&quot;osm_roads_pgr_patch_mask&quot; (the_geom) sql=" id="osm_roads_pgr_patch_mask_629b242b_d1e7_4b4a_96cf_42f99668af1e" checked="Qt::Unchecked" providerKey="postgres" expanded="1">
@ -98,37 +110,43 @@
<item>test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca</item>
<item>osm_municipalities_53c738ad_e6ad_415a_abf6_920dff3417bc</item>
<item>phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07</item>
<item>phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981</item>
<item>phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3</item>
<item>phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31</item>
</custom-order>
</layer-tree-group>
<snapping-settings unit="1" enabled="1" intersection-snapping="0" mode="1" tolerance="12" type="1">
<individual-layer-settings>
<layer-setting enabled="0" id="osm_roads_the_geom_dde17f88_b261_488d_9395_2b6628292468" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_municipalities_53c738ad_e6ad_415a_abf6_920dff3417bc" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_patch_mask_629b242b_d1e7_4b4a_96cf_42f99668af1e" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_suppr20200212190644109362249403" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_pk_vip_ea16b35c_6db6_41c2_a454_7c18690b7b7d" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_point_nettoyage_3ebf74a1_98c5_4153_be3b_334d73b353e9" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_pk_secteur_8d9890f7_b72b_4f0e_9458_1c1be63d6af8" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="patch_zones_110fb509_d6fd_4e15_bc95_3a1d2118459d" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_trace_1ce25ce9_97f3_4928_8d1d_af7c31231de0" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_trace_pgr_59f22a98_f235_43f9_8870_3838a5d52f35" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_trace_troncons_a6ced006_8707_4136_9701_bdf12d2fc11b" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_d2788753_496c_4980_aaee_0310b8ebc275" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_pk_auto_a3dcb599_cd8c_4930_ae19_4563e7500055" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_pk_secteur_8d9890f7_b72b_4f0e_9458_1c1be63d6af8" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_vertices_pgr_abe06098_be24_4d83_967f_1d14ecda28fc" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="patch_zones_110fb509_d6fd_4e15_bc95_3a1d2118459d" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_d2788753_496c_4980_aaee_0310b8ebc275" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_the_geom_dde17f88_b261_488d_9395_2b6628292468" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_point_nettoyage_3ebf74a1_98c5_4153_be3b_334d73b353e9" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_2_trace_pgr_59f22a98_f235_43f9_8870_3838a5d52f35" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_trace_1ce25ce9_97f3_4928_8d1d_af7c31231de0" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_suppr20200212190644109362249403" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_trace_troncons_a6ced006_8707_4136_9701_bdf12d2fc11b" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="phase_1_pk_vip_ea16b35c_6db6_41c2_a454_7c18690b7b7d" units="1" tolerance="12" type="1"/>
<layer-setting enabled="0" id="osm_roads_pgr_patch_mask_629b242b_d1e7_4b4a_96cf_42f99668af1e" units="1" tolerance="12" type="1"/>
</individual-layer-settings>
</snapping-settings>
<relations/>
<mapcanvas name="theMapCanvas" annotationsVisible="1">
<units>meters</units>
<extent>
<xmin>84312.60588512610411271</xmin>
<ymin>6651404.65341764129698277</ymin>
<xmax>465105.36933634738670662</xmax>
<ymax>6899379.38437872007489204</ymax>
<xmin>218226.78773842827649787</xmin>
<ymin>6830487.75356164015829563</ymin>
<xmax>273457.74079309386434034</xmax>
<ymax>6866454.5103884469717741</ymax>
</extent>
<rotation>0</rotation>
<destinationsrs>
@ -147,6 +165,23 @@
</mapcanvas>
<projectModels/>
<legend updateDrawingOrder="true">
<legendgroup name="phase 5 geojson" checked="Qt::Checked" open="true">
<legendlayer drawingOrder="-1" name="phase_5_pk_umap sql_statement" checked="Qt::Checked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981" visible="1"/>
</filegroup>
</legendlayer>
<legendlayer drawingOrder="-1" name="phase_5_trace_troncons sql_statement" checked="Qt::Checked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31" visible="1"/>
</filegroup>
</legendlayer>
<legendlayer drawingOrder="-1" name="phase_5_trace_secteurs sql_statement" checked="Qt::Checked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3" visible="1"/>
</filegroup>
</legendlayer>
</legendgroup>
<legendlayer drawingOrder="-1" name="phase_3_pk_auto" checked="Qt::Unchecked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07" visible="0"/>
@ -162,9 +197,9 @@
<legendlayerfile isInOverview="0" layerid="phase_2_point_nettoyage_3ebf74a1_98c5_4153_be3b_334d73b353e9" visible="1"/>
</filegroup>
</legendlayer>
<legendlayer drawingOrder="-1" name="osm_roads_pgr_vertices_pgr" checked="Qt::Checked" open="true" showFeatureCount="0">
<legendlayer drawingOrder="-1" name="osm_roads_pgr_vertices_pgr" checked="Qt::Unchecked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="osm_roads_pgr_vertices_pgr_abe06098_be24_4d83_967f_1d14ecda28fc" visible="1"/>
<legendlayerfile isInOverview="0" layerid="osm_roads_pgr_vertices_pgr_abe06098_be24_4d83_967f_1d14ecda28fc" visible="0"/>
</filegroup>
</legendlayer>
<legendlayer drawingOrder="-1" name="test_routage" checked="Qt::Unchecked" open="true" showFeatureCount="0">
@ -183,9 +218,9 @@
</filegroup>
</legendlayer>
<legendgroup name="patch OSM roads" checked="Qt::Checked" open="true">
<legendlayer drawingOrder="-1" name="osm_roads_pgr_patch" checked="Qt::Checked" open="true" showFeatureCount="0">
<legendlayer drawingOrder="-1" name="osm_roads_pgr_patch" checked="Qt::Unchecked" open="true" showFeatureCount="0">
<filegroup open="true" hidden="false">
<legendlayerfile isInOverview="0" layerid="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" visible="1"/>
<legendlayerfile isInOverview="0" layerid="osm_roads_pgr_patch_4a8c6265_2221_4034_8f5d_7b94ae55b32c" visible="0"/>
</filegroup>
</legendlayer>
<legendlayer drawingOrder="-1" name="osm_roads_pgr_patch_mask" checked="Qt::Unchecked" open="true" showFeatureCount="0">
@ -5140,6 +5175,638 @@ def my_form_open(dialog, layer, feature):
<previewExpression>pk_id</previewExpression>
<mapTip></mapTip>
</maplayer>
<maplayer refreshOnNotifyMessage="" simplifyLocal="1" hasScaleBasedVisibilityFlag="0" readOnly="0" autoRefreshEnabled="0" simplifyDrawingTol="1" simplifyAlgorithm="0" autoRefreshTime="0" maxScale="0" geometry="Point" labelsEnabled="1" simplifyDrawingHints="0" simplifyMaxScale="1" refreshOnNotifyEnabled="0" type="vector" styleCategories="AllStyleCategories" minScale="1e+08">
<extent>
<xmin>-4.63015799999999977</xmin>
<ymin>47.19418399999999991</ymin>
<xmax>-1.14855799999999997</xmax>
<ymax>48.82201899999999739</ymax>
</extent>
<id>phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981</id>
<datasource>../scripts/data/phase_5_pk_umap.geojson</datasource>
<keywordList>
<value></value>
</keywordList>
<layername>phase_5_pk_umap sql_statement</layername>
<srs>
<spatialrefsys>
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
<srsid>3452</srsid>
<srid>4326</srid>
<authid>EPSG:4326</authid>
<description>WGS 84</description>
<projectionacronym>longlat</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>true</geographicflag>
</spatialrefsys>
</srs>
<resourceMetadata>
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type></type>
<title></title>
<abstract></abstract>
<contact>
<name></name>
<organization></organization>
<position></position>
<voice></voice>
<fax></fax>
<email></email>
<role></role>
</contact>
<links/>
<fees></fees>
<encoding></encoding>
<crs>
<spatialrefsys>
<proj4></proj4>
<srsid>0</srsid>
<srid>0</srid>
<authid></authid>
<description></description>
<projectionacronym></projectionacronym>
<ellipsoidacronym></ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</crs>
<extent>
<spatial minx="0" miny="0" maxy="0" minz="0" dimensions="2" maxz="0" crs="" maxx="0"/>
<temporal>
<period>
<start></start>
<end></end>
</period>
</temporal>
</extent>
</resourceMetadata>
<provider encoding="UTF-8">ogr</provider>
<vectorjoins/>
<layerDependencies/>
<dataDependencies/>
<legend type="default-vector"/>
<expressionfields/>
<map-layer-style-manager current="défaut">
<map-layer-style name="défaut"/>
</map-layer-style-manager>
<auxiliaryLayer/>
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
</flags>
<renderer-v2 enableorderby="0" symbollevels="0" forceraster="0" type="singleSymbol">
<symbols>
<symbol name="0" clip_to_extent="1" alpha="1" force_rhr="0" type="marker">
<layer locked="0" enabled="1" pass="0" class="SimpleMarker">
<prop k="angle" v="0"/>
<prop k="color" v="219,30,42,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="128,17,25,255"/>
<prop k="outline_style" v="solid"/>
<prop k="outline_width" v="0.4"/>
<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="4"/>
<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 name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</symbols>
<rotation/>
<sizescale/>
</renderer-v2>
<labeling type="simple">
<settings>
<text-style namedStyle="Bold" fontSizeMapUnitScale="3x:0,0,0,0,0,0" isExpression="0" fontStrikeout="0" blendMode="0" fontFamily="Arial" multilineHeight="1" useSubstitutions="0" fontWeight="75" fontSizeUnit="Point" fontSize="12" previewBkgrdColor="#ffffff" fontCapitals="0" fontItalic="0" fontLetterSpacing="0" fontWordSpacing="0" textOpacity="1" fontUnderline="0" fieldName="pk_id" textColor="0,0,0,255">
<text-buffer bufferJoinStyle="128" bufferSizeMapUnitScale="3x:0,0,0,0,0,0" bufferBlendMode="0" bufferSizeUnits="Pixel" bufferSize="2" bufferOpacity="1" bufferDraw="1" bufferColor="255,255,255,255" bufferNoFill="1"/>
<background shapeRotation="0" shapeFillColor="255,255,255,255" shapeSVGFile="" shapeBlendMode="0" shapeOffsetY="0" shapeSizeType="0" shapeRotationType="0" shapeSizeUnit="MM" shapeOffsetX="0" shapeDraw="0" shapeJoinStyle="64" shapeRadiiUnit="MM" shapeBorderWidthUnit="MM" shapeRadiiMapUnitScale="3x:0,0,0,0,0,0" shapeType="0" shapeRadiiY="0" shapeSizeMapUnitScale="3x:0,0,0,0,0,0" shapeOffsetUnit="MM" shapeSizeX="0" shapeBorderColor="128,128,128,255" shapeBorderWidth="0" shapeOffsetMapUnitScale="3x:0,0,0,0,0,0" shapeSizeY="0" shapeOpacity="1" shapeRadiiX="0" shapeBorderWidthMapUnitScale="3x:0,0,0,0,0,0"/>
<shadow shadowBlendMode="6" shadowOffsetGlobal="1" shadowDraw="0" shadowRadiusAlphaOnly="0" shadowOffsetMapUnitScale="3x:0,0,0,0,0,0" shadowRadiusMapUnitScale="3x:0,0,0,0,0,0" shadowUnder="0" shadowRadius="1.5" shadowOffsetUnit="MM" shadowOpacity="0.7" shadowColor="0,0,0,255" shadowOffsetDist="1" shadowScale="100" shadowRadiusUnit="MM" shadowOffsetAngle="135"/>
<substitutions/>
</text-style>
<text-format rightDirectionSymbol=">" multilineAlign="3" addDirectionSymbol="0" leftDirectionSymbol="&lt;" reverseDirectionSymbol="0" useMaxLineLengthForAutoWrap="1" decimals="3" autoWrapLength="0" plussign="0" formatNumbers="0" placeDirectionSymbol="0" wrapChar=""/>
<placement repeatDistanceUnits="MM" fitInPolygonOnly="0" offsetType="0" placementFlags="10" centroidInside="0" offsetUnits="MM" repeatDistance="0" quadOffset="4" distUnits="Pixel" placement="0" repeatDistanceMapUnitScale="3x:0,0,0,0,0,0" labelOffsetMapUnitScale="3x:0,0,0,0,0,0" preserveRotation="1" dist="5" predefinedPositionOrder="TR,TL,BR,BL,R,L,TSR,BSR" yOffset="0" centroidWhole="0" rotationAngle="0" priority="5" distMapUnitScale="3x:0,0,0,0,0,0" xOffset="0" maxCurvedCharAngleOut="-25" maxCurvedCharAngleIn="25"/>
<rendering upsidedownLabels="0" fontLimitPixelSize="0" obstacle="1" fontMaxPixelSize="10000" drawLabels="1" maxNumLabels="2000" scaleVisibility="1" labelPerPart="0" obstacleType="0" minFeatureSize="0" scaleMin="0" displayAll="0" obstacleFactor="1" scaleMax="100000" limitNumLabels="0" fontMinPixelSize="3" zIndex="0" mergeLines="0"/>
<dd_properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</dd_properties>
</settings>
</labeling>
<customproperties>
<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 backgroundAlpha="255" sizeType="MM" scaleDependency="Area" opacity="1" labelPlacementMethod="XHeight" enabled="0" lineSizeScale="3x:0,0,0,0,0,0" diagramOrientation="Up" barWidth="5" sizeScale="3x:0,0,0,0,0,0" minimumSize="0" scaleBasedVisibility="0" penWidth="0" maxScaleDenominator="1e+08" rotationOffset="270" lineSizeType="MM" minScaleDenominator="0" width="15" penColor="#000000" backgroundColor="#ffffff" penAlpha="255" height="15">
<fontProperties description=".SF NS Text,13,-1,5,50,0,0,0,0,0" style=""/>
<attribute field="" label="" color="#000000"/>
</DiagramCategory>
</SingleCategoryDiagramRenderer>
<DiagramLayerSettings linePlacementFlags="18" obstacle="0" placement="0" zIndex="0" dist="0" showAll="1" priority="0">
<properties>
<Option type="Map">
<Option name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</properties>
</DiagramLayerSettings>
<geometryOptions removeDuplicateNodes="0" geometryPrecision="0">
<activeChecks/>
<checkConfiguration/>
</geometryOptions>
<fieldConfiguration>
<field name="pk_id">
<editWidget type="TextEdit">
<config>
<Option/>
</config>
</editWidget>
</field>
<field name="secteur_id">
<editWidget type="Range">
<config>
<Option/>
</config>
</editWidget>
</field>
</fieldConfiguration>
<aliases>
<alias name="" field="pk_id" index="0"/>
<alias name="" field="secteur_id" index="1"/>
</aliases>
<excludeAttributesWMS/>
<excludeAttributesWFS/>
<defaults>
<default applyOnUpdate="0" field="pk_id" expression=""/>
<default applyOnUpdate="0" field="secteur_id" expression=""/>
</defaults>
<constraints>
<constraint field="pk_id" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
<constraint field="secteur_id" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
</constraints>
<constraintExpressions>
<constraint field="pk_id" desc="" exp=""/>
<constraint field="secteur_id" desc="" exp=""/>
</constraintExpressions>
<expressionfields/>
<attributeactions>
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
</attributeactions>
<attributetableconfig sortExpression="" actionWidgetStyle="dropDown" sortOrder="0">
<columns>
<column name="pk_id" width="-1" type="field" hidden="0"/>
<column name="secteur_id" width="-1" type="field" hidden="0"/>
<column width="-1" type="actions" hidden="1"/>
</columns>
</attributetableconfig>
<conditionalstyles>
<rowstyles/>
<fieldstyles/>
</conditionalstyles>
<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 name="length_real" editable="1"/>
<field name="length_theorical" editable="1"/>
<field name="municipality_admincode" editable="1"/>
<field name="municipality_name_br" editable="1"/>
<field name="municipality_name_fr" editable="1"/>
<field name="municipality_postcode" editable="1"/>
<field name="pk_id" editable="1"/>
<field name="pk_lat" editable="1"/>
<field name="pk_long" editable="1"/>
<field name="pk_x" editable="1"/>
<field name="pk_y" editable="1"/>
<field name="secteur_id" editable="1"/>
<field name="way_highway" editable="1"/>
<field name="way_name_br" editable="1"/>
<field name="way_name_fr" editable="1"/>
<field name="way_oneway" editable="1"/>
<field name="way_osm_id" editable="1"/>
<field name="way_ref" editable="1"/>
<field name="way_type" editable="1"/>
</editable>
<labelOnTop>
<field name="length_real" labelOnTop="0"/>
<field name="length_theorical" labelOnTop="0"/>
<field name="municipality_admincode" labelOnTop="0"/>
<field name="municipality_name_br" labelOnTop="0"/>
<field name="municipality_name_fr" labelOnTop="0"/>
<field name="municipality_postcode" labelOnTop="0"/>
<field name="pk_id" labelOnTop="0"/>
<field name="pk_lat" labelOnTop="0"/>
<field name="pk_long" labelOnTop="0"/>
<field name="pk_x" labelOnTop="0"/>
<field name="pk_y" labelOnTop="0"/>
<field name="secteur_id" labelOnTop="0"/>
<field name="way_highway" labelOnTop="0"/>
<field name="way_name_br" labelOnTop="0"/>
<field name="way_name_fr" labelOnTop="0"/>
<field name="way_oneway" labelOnTop="0"/>
<field name="way_osm_id" labelOnTop="0"/>
<field name="way_ref" labelOnTop="0"/>
<field name="way_type" labelOnTop="0"/>
</labelOnTop>
<widgets/>
<previewExpression>pk_id</previewExpression>
<mapTip></mapTip>
</maplayer>
<maplayer refreshOnNotifyMessage="" simplifyLocal="1" hasScaleBasedVisibilityFlag="0" readOnly="0" autoRefreshEnabled="0" simplifyDrawingTol="1" simplifyAlgorithm="0" autoRefreshTime="0" maxScale="0" geometry="Line" labelsEnabled="0" simplifyDrawingHints="1" simplifyMaxScale="1" refreshOnNotifyEnabled="0" type="vector" styleCategories="AllStyleCategories" minScale="1e+08">
<extent>
<xmin>-4.63182459999999985</xmin>
<ymin>47.19246860104352237</ymin>
<xmax>-1.1484029</xmax>
<ymax>48.82209280065732315</ymax>
</extent>
<id>phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3</id>
<datasource>../scripts/data/phase_5_trace_secteurs.geojson</datasource>
<keywordList>
<value></value>
</keywordList>
<layername>phase_5_trace_secteurs sql_statement</layername>
<srs>
<spatialrefsys>
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
<srsid>3452</srsid>
<srid>4326</srid>
<authid>EPSG:4326</authid>
<description>WGS 84</description>
<projectionacronym>longlat</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>true</geographicflag>
</spatialrefsys>
</srs>
<resourceMetadata>
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type></type>
<title></title>
<abstract></abstract>
<links/>
<fees></fees>
<encoding></encoding>
<crs>
<spatialrefsys>
<proj4></proj4>
<srsid>0</srsid>
<srid>0</srid>
<authid></authid>
<description></description>
<projectionacronym></projectionacronym>
<ellipsoidacronym></ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</crs>
<extent/>
</resourceMetadata>
<provider encoding="UTF-8">ogr</provider>
<vectorjoins/>
<layerDependencies/>
<dataDependencies/>
<legend type="default-vector"/>
<expressionfields/>
<map-layer-style-manager current="défaut">
<map-layer-style name="défaut"/>
</map-layer-style-manager>
<auxiliaryLayer/>
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
</flags>
<renderer-v2 enableorderby="0" symbollevels="0" forceraster="0" type="singleSymbol">
<symbols>
<symbol name="0" clip_to_extent="1" alpha="1" force_rhr="0" type="line">
<layer locked="0" enabled="1" pass="0" class="SimpleLine">
<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="draw_inside_polygon" v="0"/>
<prop k="joinstyle" v="bevel"/>
<prop k="line_color" v="145,82,45,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="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 name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</symbols>
<rotation/>
<sizescale/>
</renderer-v2>
<customproperties/>
<blendMode>0</blendMode>
<featureBlendMode>0</featureBlendMode>
<layerOpacity>1</layerOpacity>
<geometryOptions removeDuplicateNodes="0" geometryPrecision="0">
<activeChecks type="StringList">
<Option value="" type="QString"/>
</activeChecks>
<checkConfiguration/>
</geometryOptions>
<fieldConfiguration>
<field name="secteur_id">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
<field name="nom_fr">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
<field name="nom_br">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
<field name="km_reels">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
</fieldConfiguration>
<aliases>
<alias name="" field="secteur_id" index="0"/>
<alias name="" field="nom_fr" index="1"/>
<alias name="" field="nom_br" index="2"/>
<alias name="" field="km_reels" index="3"/>
</aliases>
<excludeAttributesWMS/>
<excludeAttributesWFS/>
<defaults>
<default applyOnUpdate="0" field="secteur_id" expression=""/>
<default applyOnUpdate="0" field="nom_fr" expression=""/>
<default applyOnUpdate="0" field="nom_br" expression=""/>
<default applyOnUpdate="0" field="km_reels" expression=""/>
</defaults>
<constraints>
<constraint field="secteur_id" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
<constraint field="nom_fr" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
<constraint field="nom_br" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
<constraint field="km_reels" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
</constraints>
<constraintExpressions>
<constraint field="secteur_id" desc="" exp=""/>
<constraint field="nom_fr" desc="" exp=""/>
<constraint field="nom_br" desc="" exp=""/>
<constraint field="km_reels" desc="" exp=""/>
</constraintExpressions>
<expressionfields/>
<attributeactions>
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
</attributeactions>
<attributetableconfig sortExpression="" actionWidgetStyle="dropDown" sortOrder="0">
<columns/>
</attributetableconfig>
<conditionalstyles>
<rowstyles/>
<fieldstyles/>
</conditionalstyles>
<editform tolerant="1"></editform>
<editforminit/>
<editforminitcodesource>0</editforminitcodesource>
<editforminitfilepath></editforminitfilepath>
<editforminitcode><![CDATA[]]></editforminitcode>
<featformsuppress>0</featformsuppress>
<editorlayout>generatedlayout</editorlayout>
<editable/>
<labelOnTop/>
<widgets/>
<previewExpression></previewExpression>
<mapTip></mapTip>
</maplayer>
<maplayer refreshOnNotifyMessage="" simplifyLocal="1" hasScaleBasedVisibilityFlag="0" readOnly="0" autoRefreshEnabled="0" simplifyDrawingTol="1" simplifyAlgorithm="0" autoRefreshTime="0" maxScale="0" geometry="Line" labelsEnabled="0" simplifyDrawingHints="1" simplifyMaxScale="1" refreshOnNotifyEnabled="0" type="vector" styleCategories="AllStyleCategories" minScale="1e+08">
<extent>
<xmin>-4.63183219999999984</xmin>
<ymin>47.19246860104352237</ymin>
<xmax>-1.1484029</xmax>
<ymax>48.82209280065732315</ymax>
</extent>
<id>phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31</id>
<datasource>../scripts/data/phase_5_trace_troncons.geojson</datasource>
<keywordList>
<value></value>
</keywordList>
<layername>phase_5_trace_troncons sql_statement</layername>
<srs>
<spatialrefsys>
<proj4>+proj=longlat +datum=WGS84 +no_defs</proj4>
<srsid>3452</srsid>
<srid>4326</srid>
<authid>EPSG:4326</authid>
<description>WGS 84</description>
<projectionacronym>longlat</projectionacronym>
<ellipsoidacronym>WGS84</ellipsoidacronym>
<geographicflag>true</geographicflag>
</spatialrefsys>
</srs>
<resourceMetadata>
<identifier></identifier>
<parentidentifier></parentidentifier>
<language></language>
<type></type>
<title></title>
<abstract></abstract>
<links/>
<fees></fees>
<encoding></encoding>
<crs>
<spatialrefsys>
<proj4></proj4>
<srsid>0</srsid>
<srid>0</srid>
<authid></authid>
<description></description>
<projectionacronym></projectionacronym>
<ellipsoidacronym></ellipsoidacronym>
<geographicflag>false</geographicflag>
</spatialrefsys>
</crs>
<extent/>
</resourceMetadata>
<provider encoding="UTF-8">ogr</provider>
<vectorjoins/>
<layerDependencies/>
<dataDependencies/>
<legend type="default-vector"/>
<expressionfields/>
<map-layer-style-manager current="défaut">
<map-layer-style name="défaut"/>
</map-layer-style-manager>
<auxiliaryLayer/>
<flags>
<Identifiable>1</Identifiable>
<Removable>1</Removable>
<Searchable>1</Searchable>
</flags>
<renderer-v2 enableorderby="0" symbollevels="0" forceraster="0" type="singleSymbol">
<symbols>
<symbol name="0" clip_to_extent="1" alpha="1" force_rhr="0" type="line">
<layer locked="0" enabled="1" pass="0" class="SimpleLine">
<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="draw_inside_polygon" v="0"/>
<prop k="joinstyle" v="bevel"/>
<prop k="line_color" v="125,139,143,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="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 name="name" value="" type="QString"/>
<Option name="properties"/>
<Option name="type" value="collection" type="QString"/>
</Option>
</data_defined_properties>
</layer>
</symbol>
</symbols>
<rotation/>
<sizescale/>
</renderer-v2>
<customproperties/>
<blendMode>0</blendMode>
<featureBlendMode>0</featureBlendMode>
<layerOpacity>1</layerOpacity>
<geometryOptions removeDuplicateNodes="0" geometryPrecision="0">
<activeChecks type="StringList">
<Option value="" type="QString"/>
</activeChecks>
<checkConfiguration/>
</geometryOptions>
<fieldConfiguration>
<field name="troncon_id">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
<field name="secteur_id">
<editWidget type="">
<config>
<Option/>
</config>
</editWidget>
</field>
</fieldConfiguration>
<aliases>
<alias name="" field="troncon_id" index="0"/>
<alias name="" field="secteur_id" index="1"/>
</aliases>
<excludeAttributesWMS/>
<excludeAttributesWFS/>
<defaults>
<default applyOnUpdate="0" field="troncon_id" expression=""/>
<default applyOnUpdate="0" field="secteur_id" expression=""/>
</defaults>
<constraints>
<constraint field="troncon_id" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
<constraint field="secteur_id" notnull_strength="0" constraints="0" exp_strength="0" unique_strength="0"/>
</constraints>
<constraintExpressions>
<constraint field="troncon_id" desc="" exp=""/>
<constraint field="secteur_id" desc="" exp=""/>
</constraintExpressions>
<expressionfields/>
<attributeactions>
<defaultAction key="Canvas" value="{00000000-0000-0000-0000-000000000000}"/>
</attributeactions>
<attributetableconfig sortExpression="" actionWidgetStyle="dropDown" sortOrder="0">
<columns/>
</attributetableconfig>
<conditionalstyles>
<rowstyles/>
<fieldstyles/>
</conditionalstyles>
<editform tolerant="1"></editform>
<editforminit/>
<editforminitcodesource>0</editforminitcodesource>
<editforminitfilepath></editforminitfilepath>
<editforminitcode><![CDATA[]]></editforminitcode>
<featformsuppress>0</featformsuppress>
<editorlayout>generatedlayout</editorlayout>
<editable/>
<labelOnTop/>
<widgets/>
<previewExpression></previewExpression>
<mapTip></mapTip>
</maplayer>
<maplayer refreshOnNotifyMessage="" simplifyLocal="1" hasScaleBasedVisibilityFlag="0" readOnly="0" autoRefreshEnabled="0" simplifyDrawingTol="1" simplifyAlgorithm="0" autoRefreshTime="0" maxScale="0" geometry="Line" labelsEnabled="0" simplifyDrawingHints="1" simplifyMaxScale="1" refreshOnNotifyEnabled="0" type="vector" styleCategories="AllStyleCategories" minScale="1e+08">
<id>test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca</id>
<datasource>dbname='redadeg' host=breizhpolenovo port=5432 user='redadeg' password='redadeg' key='_uid_' checkPrimaryKeyUnicity='1' table="(SELECT row_number() over () AS _uid_,* FROM (SELECT
@ -5559,6 +6226,9 @@ def my_form_open(dialog, layer, feature):
<layer id="test_routage_f4a13d79_0392_4298_a734_bd6c697d3eca"/>
<layer id="osm_municipalities_53c738ad_e6ad_415a_abf6_920dff3417bc"/>
<layer id="phase_3_pk_auto_f0ff84ea_1a95_40eb_8287_4cbefb30db07"/>
<layer id="phase_5_pk_umap_e518b769_f6e5_4735_8e34_e228efdc8981"/>
<layer id="phase_5_trace_secteurs_82359c5f_88d0_46a3_ad60_bcc6fe3239e3"/>
<layer id="phase_5_trace_troncons_1c8c912b_1be0_4ac8_9777_1976dbf63e31"/>
</layerorder>
<properties>
<Paths>

View file

@ -519,7 +519,7 @@ CREATE VIEW phase_3_trace_troncons_4326 AS
SELECT
troncon_id,
secteur_id,
ST_Transform(the_geom,4326)::geometry(LineString, 4326) AS the_geom
ST_Transform(the_geom,4326) AS the_geom
FROM phase_3_trace_troncons ;
ALTER TABLE phase_3_trace_troncons_4326 OWNER TO redadeg;
@ -546,7 +546,7 @@ CREATE VIEW phase_3_trace_secteurs_4326 AS
SELECT
secteur_id, nom_fr, nom_br,
km_reels,
ST_Transform(the_geom,4326)::geometry(LineString, 4326) AS the_geom
ST_Transform(the_geom,4326) AS the_geom
FROM phase_3_trace_secteurs ;
ALTER TABLE phase_3_trace_secteurs_4326 OWNER TO redadeg;