Giter Site home page Giter Site logo

Comments (1)

severo avatar severo commented on June 27, 2024

Note 1: GeoServer's default resolution is ~90dpi (25.4/0.28), and to print legend icons with the same size as corresponding map icons, the defaultScale parameter in config.yaml should be set to 0.7937 (72 dpi / ~90dpi), since scale = 1 corresponds to scaling 1px to 1pt (ie 1/72 inch).

Note 2: LEGEND_OPTIONS=dpi:${dpi} could be added by MapFish to the URL, and later ${dpi} value could be used to scale back to PDF dimensions space, the same way as it's done for the map. Three conditions:

  • only works for WMS layer,
  • only works if icon url corresponds to GetLegendGraphic request
  • only works with GeoServer

Note 3: MapServer does not give hints on default dpi of the images created with WMS GetLegendGraphic request - see http://mapserver.org/mapfile/legend.html. Neither there is a mention to a parameter equivalent to GeoServer's LEGEND_OPTIONS=dpi:${dpi}.

from mapfish-print.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.