Re: [mapserver-users] QGIS vs Mapserver someone use wrong scale ?
Hi Andrea, the inaccuracy may rest upon the resolution defined in your mapfile. By default, MapServer uses RESOLUTION 72, I think. This is not quite correct for OGC WMS, because this standard assumes a pixelsize of 0.28 x 0.28 mm² which is ~90.7 dpi. Not sure if you can set floating point resolutions in MapServer. Try setting RESOLUTION 90.7 or 91 in your mapfile. Best regards, Martin 2013/2/11 Andrea Peri > Hi, > > I set a class rule to show the label in this interval scale: > > LABEL > COLOR 175 109 134 > OUTLINECOLOR 255 255 255 > OUTLINEWIDTH 1 > MAXSCALEDENOM 300100 > MINSCALEDENOM 1 > > > After I try to test it with QGIS, but I see calling it with qgis the > show of labels in the scale are not so linear as I could guess. > > infact > > the label ARE NOT SHOWED at 1:299.990 > the label ARE NOT SHOWED at 1:300.000 > the label are showed at 1:300.001 > the label are showed at 1:300.010 > the label ARE NOT SHOWED at 1:300.050 > the label are showed at 1:300.090 > the label ARE NOT SHOWED at 1:300.100 > the label ARE NOT SHOWED at 1:300.110 > the label ARE NOT SHOWED at 1:300.150 > > So seem the limit of > 1:300.100 I set in the mapfile is not so exactly used. > > But I'm not able to understand if is a wrong QGIS calculation of scale > value or is a MapServer trouble. > > Any hint is welcome > > -- > - > Andrea Peri > . . . . . . . . . > qwerty àèìòù > - > ___ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] QGIS vs Mapserver someone use wrong scale ?
Andrea, I'm having the same problem with scales working with a WMS layer and QGIS. I've defined my layer like this: LAYER NAME "2011" TYPE RASTER STATUS DEFAULT ... MINSCALEDENOM 25 MAXSCALEDENOM 500 END I can't get the image when I set the scale to 1:25. Trying with some discrete scales upwards, I find that the image finally shows at 1:335000. So I don't know if is a QGIS or Mapserver problem, I'm performing some tests to see where the problem is, maybe that could help to find a solution. Cheers from México IC Carlos Ruiz From: Andrea Peri To: mapserver-users@lists.osgeo.org Sent: Monday, February 11, 2013 4:40 PM Subject: [mapserver-users] QGIS vs Mapserver someone use wrong scale ? Hi, I set a class rule to show the label in this interval scale: LABEL COLOR 175 109 134 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 300100 MINSCALEDENOM 1 After I try to test it with QGIS, but I see calling it with qgis the show of labels in the scale are not so linear as I could guess. infact the label ARE NOT SHOWED at 1:299.990 the label ARE NOT SHOWED at 1:300.000 the label are showed at 1:300.001 the label are showed at 1:300.010 the label ARE NOT SHOWED at 1:300.050 the label are showed at 1:300.090 the label ARE NOT SHOWED at 1:300.100 the label ARE NOT SHOWED at 1:300.110 the label ARE NOT SHOWED at 1:300.150 So seem the limit of 1:300.100 I set in the mapfile is not so exactly used. But I'm not able to understand if is a wrong QGIS calculation of scale value or is a MapServer trouble. Any hint is welcome -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
[mapserver-users] QGIS vs Mapserver someone use wrong scale ?
Hi, I set a class rule to show the label in this interval scale: LABEL COLOR 175 109 134 OUTLINECOLOR 255 255 255 OUTLINEWIDTH 1 MAXSCALEDENOM 300100 MINSCALEDENOM 1 After I try to test it with QGIS, but I see calling it with qgis the show of labels in the scale are not so linear as I could guess. infact the label ARE NOT SHOWED at 1:299.990 the label ARE NOT SHOWED at 1:300.000 the label are showed at 1:300.001 the label are showed at 1:300.010 the label ARE NOT SHOWED at 1:300.050 the label are showed at 1:300.090 the label ARE NOT SHOWED at 1:300.100 the label ARE NOT SHOWED at 1:300.110 the label ARE NOT SHOWED at 1:300.150 So seem the limit of 1:300.100 I set in the mapfile is not so exactly used. But I'm not able to understand if is a wrong QGIS calculation of scale value or is a MapServer trouble. Any hint is welcome -- - Andrea Peri . . . . . . . . . qwerty àèìòù - ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users