Further to my previous post I am attempting to use the free to access OS Open Data using EPSG:27700 projection in AQ. The map tiles display in order but with a huge offset, cascading south-east from the BNG false origin.
I am assuming I have missed a probably very obvious step, possibly either transformation of coordinates, or not accounting for the north to south y-axis numbering of the OS tiles.
I would greatly appreciate some guidance as to how I can fix this.
Thanks in advance
Matt
Code: Select all
<?xml version="1.0" encoding="utf-8" ?>
<aqx version="12">
<name>OS Maps</name>
<description>© OSGB · www.ordnancesurvey.co.uk</description>
<param name="key">OS API KEY HERE</param>
<source id="ROAD_27700">
<name>OS Maps Test</name>
<copyright>Ordnance Survey</copyright>
<preview-location>-6.08681,57.22273,8</preview-location>
<type>Topo</type>
<zoom-levels z="1">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>448.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<tiles-bounds></tiles-bounds><!-- optional, expressed as "min x,min y,max x,max y" -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="2">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>224.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="3">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>112.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="4">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>56.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="5">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>28.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="6">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>14.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="7">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>7.0</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="8">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>3.5</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
<zoom-levels z="9">
<projection-code>EPSG:27700</projection-code>
<projection-resolution>1.75</projection-resolution>
<projection-offset-x>0</projection-offset-x><!-- optional, default is 0, -->
<projection-offset-y>0</projection-offset-y><!-- optional, default is 0, -->
<tiles-size>256</tiles-size><!-- optional, default is 256 -->
<referer></referer><!-- optional, default is empty -->
<server><![CDATA[https://api.os.uk/maps/raster/v1/wmts?key={$param:key}&service=WMTS&request=GetTile&version=2.0.0&height=256&width=256&outputFormat=image/png&style=default&layer=Road_27700&tileMatrixSet=EPSG:27700&tileMatrix={$z}&tileRow={$y}&tileCol={$x}]]></server>
</zoom-levels>
</source>
</aqx>