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

Andreas Neumann a.neumann at carto.net
Tue Sep 22 00:09:24 PDT 2015


Hi Lars,

Wow  - this must be a big bug. I also have quite large QGIS projects 
(50-100 layers) - but they are never beyond 1 MB in filesize.

Did you report this as a bug? Maybe Nyall could have a look at it, as he 
did the layer effects stuff.

We will have some paid developers working on bug fixing - such a bug 
should be definitely fixed. If it is in 2.10, chances are high that it 
is also in QGIS master.

An dreas

On 21.09.2015 10:25, lars lingner wrote:
> 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
>
>
>
>
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user




More information about the Qgis-user mailing list