On Tue, Jan 21, 2014 at 10:05 AM, Jesse Eichar
<[email protected]>wrote:

> Hi,
>
> I have been writing integration tests for Mapfish-print.  For each type of
> protocol I have written a simple GeoExt based html page that prints layers.
>
> I use a default Geoserver.
>
> For each test page I display tiger-ny with the desired format (for example
> WMTS) and tiger:tiger_roads using WMS.  The idea is to ensure that the two
> layers line up in the html display and the output mapfish-print pdf file.
>
> WMTS, OSM, WMS and Vector all work correctly (both layers correctly align)
>
> However when I used TMS the two layers do not align.  The TMS layer is
> half way around the world to the west.
>
> The projection is EPSG:900913.
>
> The desired center is:
> -8236566.427097, 4976131.070529
>
> but to get the TMS layers to display I needed to put the center at:
>
> 3570451.1286428, 9077780.2262548
>
> Code is at:
>
>
> https://github.com/mapfish/mapfish-print-e2e-test/tree/master/src/main/webapp/data/www/geoext-print-examples/Print-TMS-Layers-Using-TMS-Version-1.0.0
>
> Any ideas what is going on here?
>

I have not checked, but did you consider that TMS uses a different
row/column counting direction and origin point, compared to WMTS?

Cheers
Andrea


-- 
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to