Comments (1)
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)
- Getting error when there are spaces in an imageExpression file name HOT 2
- Can't start print app
- spring-security.xsd removed HOT 2
- Replace JAI by Java Image I/O API
- Why not upload the maven repository HOT 4
- Build multiple tables from json array
- Load-balancing MapFishPrint in kubernetes and shared-state
- Image layer broken HOT 2
- Remove magic number: 1 in ImageSimilarity
- feature request: Support map attribution printing HOT 2
- Can't find generated jar/war HOT 2
- SpringBoot3 / Springframework6 version HOT 1
- Index.html not available (404) on Tomcat HOT 1
- Incorrect Nbr pixels in CreateMapProcessor
- The example test "pdf_a_compliant" does not include a hyperlink in the report
- Multiple carriage returns in Text property get removed or ignored. HOT 2
- java.lang.NoClassDefFoundError: org/geotools/api/geometry/Position HOT 8
- Stop catching Throwable
- Incorrect spelling for referer header in MapPrinterServlet.java
- Stop hidding exceptions workfllow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapfish-print.