Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(map): normalize the dpi to 96 #468

Merged
merged 2 commits into from
Oct 11, 2019
Merged

feat(map): normalize the dpi to 96 #468

merged 2 commits into from
Oct 11, 2019

Conversation

mbarbeau
Copy link
Member

What is the current behavior? (You can also link to an open issue here)

The dpi of the layers depends on the data source:

  • WMS 1.3 standard specifies the pixel width : 0.28 mm. That value gives a resolution of 25.4/0.28 = 90.71 dpi approximately.
  • Only GeoServer respect this standard
  • MapServer by default has a dpi of 72 but can be modified in the mapfiles
  • ArcGIS Server / Qgis Server by default has a dpi of 96

Some visibility issues are present due to poor resolution.

What is the new behavior?

Popular WMS servers extend WMS service with dpi parameters:

  • MapServer with MAP_RESOLUTION=value
  • GeoServer with FORMAT_OPTIONS=dpi:value
  • ArcGIS Server / QGIS Server with DPI=value

Common GIS softwares works with a resolution of 96 dpi. For example, QGIS adds all those parameters at the end of WMS/GetMap queries.

IGO is now doing the same way.

@mbarbeau mbarbeau merged commit 6f86377 into master Oct 11, 2019
@mbarbeau mbarbeau deleted the dpi branch October 11, 2019 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants