[Qgis-developer] (generic?) sanity checks of files

Nyall Dawson nyall.dawson at gmail.com
Wed May 11 23:44:50 PDT 2016


On 12 May 2016 16:23, "Matthias Kuhn" <matthias at opengis.ch> wrote:
>
> Hi Richard,
>
> Good idea.
> What kind of compatibility checks would you propose?
>
> Compare the CRS for which a style file was generated and the target
> layer and warn if they mismatch? That could potentially be annoying, but
> it might give a hint in case something goes wrong.
> Or do some measurements (but since measurements are a function of units,
> map CRS, zoom level and potentially attributes this may be a very
> unstable science)?

We could possibly limit the pen width to a reasonable size (in painter
units). Qt tends to freak out when a pen width is overly large....

That would fix the original issue, in any case.

Nyall

>
> Best
> Matthias
>
> On 12/05/16 08:14, Richard Duivenvoorde wrote:
> > Hi,
> >
> > I downloaded a osm shape + some osm style files, to find out (actually
> > needed Nyall for this: http://hub.qgis.org/issues/14804 ) that QGIS
> > freaks out trying to paint stuff in Map Units while the shp is in
> > degrees....
> >
> > I'm wondering IF this is a very seldom occuring case and keep it like it
> > is now, OR if there is a need for such checks (maybe more general checks
> > for validity or sanity of the different conf files (qlr, qml, symbol.xml
> > etc etc) that can be loaded nowadays in QGIS)?
> >
> > Regards,
> >
> > Richard
> >
> > _______________________________________________
> > Qgis-developer mailing list
> > Qgis-developer at lists.osgeo.org
> > List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> > Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160512/1a8319ac/attachment.html>


More information about the Qgis-developer mailing list