Comments (6)
Hi Jonathan,
Could you give me the size of the map defined in the config.yaml?
Jesse
On Thu, Dec 19, 2013 at 6:17 PM, jonathan-wcc [email protected]:
I am making the following request (this is to our live external system, so
should work for you too):{"units":"m","srs":"EPSG:27700","layout":"A4 Portrait","dpi":300,"mapTitle":"Printed with Compass","mapComment":"","mapFooter":"","layers":[{"baseURL":"http://maps.warwickshire.gov.uk/gs/gwc/service/tms/","opacity":0.7,"singleTile":false,"type":"TMS","layer":"z_OS_Raster_Basemap","maxExtent":[0,0,700000,1300000],"tileSize":[256,256],"resolutions":[2800,1400,700,350,175,84,42,21,11.2,5.6,2.8,1.4,0.7,0.35,0.14,0.07],"format":"png"}],"pages":[{"center":[430552.3,265431.9],"scale":75000,"rotation":0}]}
However, while the map size is correct, the TMS tiles requested are the
wrong scale. MFP is requests tiles at zoom level 9 (which is 1:20,000). It
is supposed to be requesting tiles at zoom level 7 (1:75,000).Prior to the fix in issue 68, it was requesting the correct zoom level.
You can use the application at: http://maps.warwickshire.gov.uk/inspire/(change the basemap to "Ordnance Survey - Rasters") to see what the map
style is supposed to be like at each zoom level - they're very different
(1:75,000 is a bright garish affair, 1:20k is a washed out thing).—
Reply to this email directly or view it on GitHubhttps://github.com//issues/103
.
from mapfish-print.
I think this is the bit you want:
#The Map
- !map
absoluteX: 32
absoluteY: 819
width: 535
height: 700
from mapfish-print.
I have uploaded a potential fix but am not completely sure of it. I would
appreciate it if you could try it out. In your example it seems to be
requesting at level 8, not 7 like you want. However when I make a map with
wms (no resolutions) they line up perfectly.
The uploaded servlet is:
Jesse
On Fri, Dec 20, 2013 at 11:15 AM, jonathan-wcc [email protected]:
I think this is the bit you want:
#The Map - !map absoluteX: 32 absoluteY: 819 width: 535 height: 700
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/103#issuecomment-31000351
.
from mapfish-print.
Hi Jesse,
Sorry but no change. The requests are still being made to level 9 (not sure why you think it's level 8 - it's definitely level 9).
MFP log request:
2013-12-23 12:06:40,012 DEBUG [org.mapfish.print.PDFUtils] - loaded image: http://wppgeog3/gs/gwc/service/tms/1.0.0/z_OS_Raster_Basemap/04/8/7.png
Geoserver action request:
127.0.0.1 - - [23/Dec/2013:12:06:39 +0000] "GET /gs/gwc/service/tms/1.0.0/z_OS_Raster_Basemap/04/8/7.png HTTP/1.1" 200 116234 "-" "Jakarta Commons-HttpClient/3.1"
(I'm not entirely clear how Geoserver is logging the request before MFP, but ah well).
from mapfish-print.
This is still happening in the 2.0.0 release.
A side effect of this is that a single A4 map request (the request above actually) ends up asking for ~158 tiles! It should be a small fraction of that.
from mapfish-print.
Hi Jesse,
Did you ever get a chance to look at this further?
Cheers,
Jonathan
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.