qgis-tem-loader

qgis plugin for loading TEM geophysical inversion XYZ files as 3D objects
git clone git://src.adamsgaard.dk/qgis-tem-loader # fast
git clone https://src.adamsgaard.dk/qgis-tem-loader.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit bf942038f18bed7953af99b6c2054dbebdb5c7d2
parent 5d020f752c027411f45de1b5b09de3675181618f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 27 Jun 2026 07:55:40 +0200

fix(styles): add transform matrix to 3D voxel symbol to prevent QGIS crash

Diffstat:
Atem_loader/styles/voxels.qml | 167+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 167 insertions(+), 0 deletions(-)

diff --git a/tem_loader/styles/voxels.qml b/tem_loader/styles/voxels.qml @@ -0,0 +1,167 @@ +<!DOCTYPE qgis PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'> +<qgis autoRefreshMode="Disabled" autoRefreshTime="0" hasScaleBasedVisibilityFlag="0" labelsEnabled="0" layerType="Vector" maxScale="0" minScale="100000000" readOnly="0" simplifyAlgorithm="0" simplifyDrawingHints="1" simplifyDrawingTol="1" simplifyLocal="1" simplifyMaxScale="1" styleCategories="AllStyleCategories" symbologyReferenceScale="-1" version="4.0.2-Norrköping"> + <renderer-3d layer="" type="vector"> + <vector-layer-3d-tiling max-chunk-features="50000" show-bounding-boxes="0" zoom-levels-count="3"/> + <symbol material_type="phong" shape="box" type="point"> + <data alt-binding="centroid" alt-clamping="absolute"/> + <material ambient="26,26,26,255,rgb:0.1000076,0.1000076,0.1000076,1" diffuse="128,128,128,255,rgb:0.5019608,0.5019608,0.5019608,1" ka="1" kd="1" ks="1" opacity="1" shininess="0" specular="0,0,0,255,rgb:0,0,0,1"> + <data-defined-properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties" type="Map"> + <Option name="ambient" type="Map"> + <Option name="active" type="bool" value="true"/> + <Option name="expression" type="QString" value="&quot;Color&quot;"/> + <Option name="type" type="int" value="3"/> + </Option> + </Option> + <Option name="type" type="QString" value="collection"/> + </Option> + </data-defined-properties> + </material> + <shape-properties> + <Option type="Map"> + <Option name="size" type="double" value="50"/> + </Option> + </shape-properties> + <transform matrix="1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1"/> + </symbol> + </renderer-3d> + <flags> + <Identifiable>1</Identifiable> + <Removable>1</Removable> + <Searchable>1</Searchable> + <Private>0</Private> + </flags> + <elevation binding="Centroid" clamping="Absolute" customToleranceEnabled="0" extrusion="0" extrusionEnabled="0" respectLayerSymbol="1" showMarkerSymbolInSurfacePlots="0" symbology="Point" type="IndividualFeatures" zoffset="0" zscale="1"> + <data-defined-properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data-defined-properties> + <profileLineSymbol> + <symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="line"> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + <layer class="SimpleLine" enabled="1" id="" locked="0" pass="0"> + <Option type="Map"> + <Option name="line_color" type="QString" value="114,155,111,255,rgb:0.4470588,0.6078432,0.4352941,1"/> + <Option name="line_style" type="QString" value="solid"/> + <Option name="line_width" type="QString" value="0.6"/> + <Option name="line_width_unit" type="QString" value="MM"/> + </Option> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + </layer> + </symbol> + </profileLineSymbol> + <profileFillSymbol> + <symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="fill"> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + <layer class="SimpleFill" enabled="1" id="" locked="0" pass="0"> + <Option type="Map"> + <Option name="color" type="QString" value="114,155,111,255,rgb:0.4470588,0.6078432,0.4352941,1"/> + <Option name="style" type="QString" value="solid"/> + </Option> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + </layer> + </symbol> + </profileFillSymbol> + <profileMarkerSymbol> + <symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="" type="marker"> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + <layer class="SimpleMarker" enabled="1" id="" locked="0" pass="0"> + <Option type="Map"> + <Option name="color" type="QString" value="114,155,111,255,rgb:0.4470588,0.6078432,0.4352941,1"/> + <Option name="name" type="QString" value="square"/> + <Option name="size" type="QString" value="3"/> + <Option name="size_unit" type="QString" value="MM"/> + </Option> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + </layer> + </symbol> + </profileMarkerSymbol> + </elevation> + <renderer-v2 attr="Color" enableorderby="0" forceraster="0" referencescale="-1" symbollevels="0" type="categorizedSymbol"> + <categories> + <category label="Resistivity color" render="true" symbol="0" uuid="{voxel-color}" value=""/> + </categories> + <symbols> + <symbol alpha="1" clip_to_extent="1" force_rhr="0" frame_rate="10" is_animated="0" name="0" type="marker"> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties" type="Map"> + <Option name="color" type="Map"> + <Option name="active" type="bool" value="true"/> + <Option name="field" type="QString" value="Color"/> + <Option name="type" type="int" value="2"/> + </Option> + </Option> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + <layer class="SimpleMarker" enabled="1" id="" locked="0" pass="0"> + <Option type="Map"> + <Option name="color" type="QString" value="0,0,0,255,rgb:0,0,0,1"/> + <Option name="name" type="QString" value="square"/> + <Option name="size" type="QString" value="2"/> + <Option name="size_unit" type="QString" value="MM"/> + </Option> + <data_defined_properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data_defined_properties> + </layer> + </symbol> + </symbols> + <rotation/> + <sizescale/> + <data-defined-properties> + <Option type="Map"> + <Option name="name" type="QString" value=""/> + <Option name="properties"/> + <Option name="type" type="QString" value="collection"/> + </Option> + </data-defined-properties> + </renderer-v2> +</qgis>