[Qgis-user] hughe file project file size with qgis 2.10

lars lingner gislars+list at gmail.com
Mon Sep 21 01:25:19 PDT 2015


Hello,

with version 2.10 my Qgis project files are getting much bigger. With
v2.8 the largest file size was about 18 MB. In that file there are 63
layers organized in layer groups. The styling is quite complex and uses
multiple classes for the majority of the layers. As data source there is
a Postgis database.

With v2.10 the file size grows to 80 MB. This happens when I open the
v2.8 version and save it v2.10. No changes are being made.

Looking at a diff, I see an affect block repeated multiple times:

 <effect enabled="0" type="effectStack">
                <effect type="dropShadow">
                  <prop k="blend_mode" v="13"/>
                  <prop k="blur_level" v="10"/>
                  <prop k="color" v="0,0,0,255"/>
                  <prop k="draw_mode" v="2"/>
                  <prop k="enabled" v="0"/>
                  <prop k="offset_angle" v="135"/>
                  <prop k="offset_distance" v="2"/>
                  <prop k="offset_unit" v="MM"/>
                  <prop k="offset_unit_scale" v="0,0"/>
                  <prop k="transparency" v="0"/>
                </effect>
                <effect type="outerGlow">
                  <prop k="blend_mode" v="0"/>
                  <prop k="blur_level" v="3"/>
                  <prop k="color_type" v="0"/>
                  <prop k="draw_mode" v="2"/>
                  <prop k="enabled" v="0"/>
                  <prop k="single_color" v="255,255,255,255"/>
                  <prop k="spread" v="2"/>
                  <prop k="spread_unit" v="MM"/>
                  <prop k="spread_unit_scale" v="0,0"/>
                  <prop k="transparency" v="0.5"/>
                </effect>
                <effect type="drawSource">
                  <prop k="blend_mode" v="0"/>
                  <prop k="draw_mode" v="2"/>
                  <prop k="enabled" v="1"/>
                  <prop k="transparency" v="0"/>
                </effect>
                <effect type="innerShadow">
                  <prop k="blend_mode" v="13"/>
                  <prop k="blur_level" v="10"/>
                  <prop k="color" v="0,0,0,255"/>
                  <prop k="draw_mode" v="2"/>
                  <prop k="enabled" v="0"/>
                  <prop k="offset_angle" v="135"/>
                  <prop k="offset_distance" v="2"/>
                  <prop k="offset_unit" v="MM"/>
                  <prop k="offset_unit_scale" v="0,0"/>
                  <prop k="transparency" v="0"/>
                </effect>
                <effect type="innerGlow">
                  <prop k="blend_mode" v="0"/>
                  <prop k="blur_level" v="3"/>
                  <prop k="color_type" v="0"/>
                  <prop k="draw_mode" v="2"/>
                  <prop k="enabled" v="0"/>
                  <prop k="single_color" v="255,255,255,255"/>
                  <prop k="spread" v="2"/>
                  <prop k="spread_unit" v="MM"/>
                  <prop k="spread_unit_scale" v="0,0"/>
                  <prop k="transparency" v="0.5"/>
                </effect>
              </effect>

In my case, this block is repeated 19808 times. Removing all of them the
file still works.

For my use case Qgis Server is consuming the project files. With this
large file size I'm getting a lot time out errors. My workaround is to
remove all unnecessary definitions to keep the size small.

Is there a way to prevent Qgis from creating these blocks? I'm thinking
(aka dreaming) about a special save mode for Qgis server files.
Have other users made the same experience? I'm happy to open a ticket if
it helps to understand and solve this issue.


Thanks for listening

Lars









More information about the Qgis-user mailing list