[Geoserver-users] what is the DPI (Dot Per Inch) of the PNG image output from geoserver?

Hi All,

I’d like to add the PNG image output from Geoserver on the web interface with a in a fixed scale.

My.question is What is the DPI of the PNG image generated by geoserver?
96 dpi or 72 dpi?

so that I can set the proper scale (width & height) on the web.

​Thank you very much in advance.​

Have a nice day!

Mr. Khun San Aung

default is 90 dpi

http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options

···

On Fri, Dec 5, 2014 at 11:42 AM, KhunSanAung <khunsanaung.gis@…84…> wrote:

Hi All,

I’d like to add the PNG image output from Geoserver on the web interface with a in a fixed scale.

My.question is What is the DPI of the PNG image generated by geoserver?
96 dpi or 72 dpi?

so that I can set the proper scale (width & height) on the web.

​Thank you very much in advance.​

Have a nice day!

Mr. Khun San Aung


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Many thanks, that was very useful to me.

Best regards

···

On Mon, Dec 8, 2014 at 8:04 AM, Ben Johnson <weagle08@anonymised.com…> wrote:

default is 90 dpi

http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#format-options

On Fri, Dec 5, 2014 at 11:42 AM, KhunSanAung <khunsanaung.gis@anonymised.com> wrote:

Hi All,

I’d like to add the PNG image output from Geoserver on the web interface with a in a fixed scale.

My.question is What is the DPI of the PNG image generated by geoserver?
96 dpi or 72 dpi?

so that I can set the proper scale (width & height) on the web.

​Thank you very much in advance.​

Have a nice day!

Mr. Khun San Aung


Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Have a nice day!

Mr. Khun San Aung

Hi,

You may wish to see this page of the docs:

http://docs.geoserver.org/latest/en/user/services/wms/vendor.html

There’s a section on DPI:

“dpi: sets the rendering DPI (dots-per-inch) for raster outputs. The OGC standard output resolution is 90 DPI. If you need to create high resolution images (e.g for printing) it is advisable to request a larger image size and specify a higher DPI. In general, the image size should be increased by a factor equal to targetDPI/90, with the target dpi set in the format options. For example, to print a 100x100 image at 300 DPI request a 333x333 image with the DPI value set to 300: &width=333&height=333&format_options=dpi:300”

Cheers,

Jonathan