MAJ styles
This commit is contained in:
parent
8c4d8c034d
commit
dd6a502dc5
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
"""
|
"""
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
Orientation
|
Orientation
|
||||||
@ -25,7 +24,7 @@ from qgis.PyQt.QtCore import Qt, QSettings, QTranslator, QCoreApplication
|
|||||||
from qgis.PyQt.QtGui import QIcon
|
from qgis.PyQt.QtGui import QIcon
|
||||||
from qgis.PyQt.QtWidgets import QAction, qApp, QFileDialog, QProgressBar, QMessageBox, QMenu, QToolButton
|
from qgis.PyQt.QtWidgets import QAction, qApp, QFileDialog, QProgressBar, QMessageBox, QMenu, QToolButton
|
||||||
|
|
||||||
from qgis.core import QgsCoordinateReferenceSystem, QgsProject, QgsVectorFileWriter, QgsVectorLayer, QgsFeatureRequest
|
from qgis.core import QgsCoordinateReferenceSystem, QgsCoordinateTransformContext, QgsProject, QgsVectorFileWriter, QgsVectorLayer, QgsFeatureRequest
|
||||||
from qgis.utils import OverrideCursor
|
from qgis.utils import OverrideCursor
|
||||||
|
|
||||||
from processing import QgsProcessingException
|
from processing import QgsProcessingException
|
||||||
@ -310,7 +309,7 @@ class Orientation:
|
|||||||
|
|
||||||
# On enregistre le layer dans le gpkg
|
# On enregistre le layer dans le gpkg
|
||||||
options.layerName = layer_name
|
options.layerName = layer_name
|
||||||
code, error = QgsVectorFileWriter.writeAsVectorFormat(layer, str(workDir / "data.gpkg"), options)
|
code, error = QgsVectorFileWriter.writeAsVectorFormatV2(layer, str(workDir / "data.gpkg"), QgsCoordinateTransformContext(), options)
|
||||||
if code != 0:
|
if code != 0:
|
||||||
with OverrideCursor(Qt.ArrowCursor):
|
with OverrideCursor(Qt.ArrowCursor):
|
||||||
QMessageBox.warning(self.iface.mainWindow(), 'Erreur', f"Erreur à l'export de la couche {layer_name} : \n\n{error[:2000]}")
|
QMessageBox.warning(self.iface.mainWindow(), 'Erreur', f"Erreur à l'export de la couche {layer_name} : \n\n{error[:2000]}")
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -471,28 +471,63 @@
|
|||||||
</layer>
|
</layer>
|
||||||
</symbol>
|
</symbol>
|
||||||
<symbol name="7" type="line" alpha="1" force_rhr="0" clip_to_extent="1">
|
<symbol name="7" type="line" alpha="1" force_rhr="0" clip_to_extent="1">
|
||||||
<layer class="SimpleLine" locked="0" enabled="1" pass="0">
|
<layer enabled="1" pass="0" locked="0" class="SimpleLine">
|
||||||
<prop k="capstyle" v="square"/>
|
<prop v="0" k="align_dash_pattern"/>
|
||||||
<prop k="customdash" v="5;2"/>
|
<prop v="square" k="capstyle"/>
|
||||||
<prop k="customdash_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
<prop v="5;2" k="customdash"/>
|
||||||
<prop k="customdash_unit" v="MapUnit"/>
|
<prop v="3x:0,0,0,0,0,0" k="customdash_map_unit_scale"/>
|
||||||
<prop k="draw_inside_polygon" v="0"/>
|
<prop v="MM" k="customdash_unit"/>
|
||||||
<prop k="joinstyle" v="bevel"/>
|
<prop v="0" k="dash_pattern_offset"/>
|
||||||
<prop k="line_color" v="203,203,203,255"/>
|
<prop v="3x:0,0,0,0,0,0" k="dash_pattern_offset_map_unit_scale"/>
|
||||||
<prop k="line_style" v="solid"/>
|
<prop v="MM" k="dash_pattern_offset_unit"/>
|
||||||
<prop k="line_width" v="5"/>
|
<prop v="0" k="draw_inside_polygon"/>
|
||||||
<prop k="line_width_unit" v="MapUnit"/>
|
<prop v="bevel" k="joinstyle"/>
|
||||||
<prop k="offset" v="0"/>
|
<prop v="35,35,35,255" k="line_color"/>
|
||||||
<prop k="offset_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
<prop v="solid" k="line_style"/>
|
||||||
<prop k="offset_unit" v="MapUnit"/>
|
<prop v="6" k="line_width"/>
|
||||||
<prop k="ring_filter" v="0"/>
|
<prop v="MapUnit" k="line_width_unit"/>
|
||||||
<prop k="use_custom_dash" v="0"/>
|
<prop v="0" k="offset"/>
|
||||||
<prop k="width_map_unit_scale" v="3x:0,0,0,0,0,0"/>
|
<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="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>
|
<data_defined_properties>
|
||||||
<Option type="Map">
|
<Option type="Map">
|
||||||
<Option name="name" type="QString" value=""/>
|
<Option value="" name="name" type="QString"/>
|
||||||
<Option name="properties"/>
|
<Option name="properties"/>
|
||||||
<Option name="type" type="QString" value="collection"/>
|
<Option value="collection" name="type" type="QString"/>
|
||||||
|
</Option>
|
||||||
|
</data_defined_properties>
|
||||||
|
</layer>
|
||||||
|
<layer enabled="1" pass="5" locked="0" class="SimpleLine">
|
||||||
|
<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="MapUnit" 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="255,255,255,255" k="line_color"/>
|
||||||
|
<prop v="solid" k="line_style"/>
|
||||||
|
<prop v="5" k="line_width"/>
|
||||||
|
<prop v="MapUnit" 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="MapUnit" k="offset_unit"/>
|
||||||
|
<prop v="0" k="ring_filter"/>
|
||||||
|
<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 value="" name="name" type="QString"/>
|
||||||
|
<Option name="properties"/>
|
||||||
|
<Option value="collection" name="type" type="QString"/>
|
||||||
</Option>
|
</Option>
|
||||||
</data_defined_properties>
|
</data_defined_properties>
|
||||||
</layer>
|
</layer>
|
||||||
|
Loading…
Reference in New Issue
Block a user