Hi,

The units used are postscript points. See 
http://en.wikipedia.org/wiki/Point_(typography). This question is probably 
better suited for the mapfish-users list though.

Regards,
Andreas.

On Jan 21, 2011, at 11:00 , Andreas Neumann wrote:

> Hi,
> 
> I am trying to integrate QGIS Server with the GeoExt printing modules. 
> I
> want to implement it in a compatible way with the mapfish/geoserver 
> printing, if possible.
> 
> I am struggling a bit with the units for the map width/height 
> dimensions. I am refering to
> the print module documentation at
> http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleDoc [1]
> 
> and the following sample structure:
> 
> var printConfig = {
>  "scales":[
>  {"name":"25000"},
>  {"name":"50000"},
>  {"name":"100000"}
>  ],
>  "dpis":[
>  {"name":"190"},
>  {"name":"254"}
>  ],
>  "layouts":[
>  {
>  "name":"A4 portrait",
>  "map":{
>  "width":440,
>  "height":483
>  }
>  }
>  ],
>  "printURL":"http://localhost:5000/print/print.pdf";,
>  "createURL":"http://localhost:5000/print/create.json";
>  }
> 
> What units are used in the map width and height? Obviously they are not 
> mm,
> but what are they? In QGIS layouts everything is defined in mm and I 
> need
> to translate the values.
> 
> Thanks for a hint,
> Andreas
> 
> --
> Andreas Neumann
> Böschacherstrasse 10A
> 8624 Grüt (Gossau ZH)
> Switzerland
> 
> 
> Links:
> ------
> [1] http://trac.mapfish.org/trac/mapfish/wiki/PrintModuleDoc
> _______________________________________________
> Dev mailing list
> [email protected]
> http://www.geoext.org/cgi-bin/mailman/listinfo/dev



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.

_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to