Code Monkey home page Code Monkey logo

Comments (6)

jesseeichar avatar jesseeichar commented on July 29, 2024

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.

jonathan-wcc avatar jonathan-wcc commented on July 29, 2024

I think this is the bit you want:

      #The Map
        - !map
          absoluteX: 32
          absoluteY: 819
          width: 535
          height: 700

from mapfish-print.

jesseeichar avatar jesseeichar commented on July 29, 2024

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:

https://oss.sonatype.org/content/repositories/snapshots/org/mapfish/print/print-servlet/2.0-SNAPSHOT/print-servlet-2.0-SNAPSHOT.war

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.

jonathan-wcc avatar jonathan-wcc commented on July 29, 2024

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.

jonathan-wcc avatar jonathan-wcc commented on July 29, 2024

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.

jonathan-wcc avatar jonathan-wcc commented on July 29, 2024

Hi Jesse,
Did you ever get a chance to look at this further?
Cheers,
Jonathan

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.