Hi,

I'm trying to create a custom grid, with the tile origin at the top left.
The grid I'm making should match this definition tile for tile, I hope:
https://geoappext.nrcan.gc.ca/arcgis/rest/services/BaseMaps/CBMT3978/MapServer

I created a grid with the GeoServer user interface, the geoWebCache.xml
file is below, which i modified to have <alignTopLeft>true</alignTopLeft>,
per the source definition.

However, I tried tiling the topp:states with that gridset, and I while the
TileMatrixSet (from the capabilities) looks ok, the TileMatrixSetLink the
doesn't seem correct, because the MinTileRow / MaxTileRow  and  MinTileCol
/ MaxTileCol are always equal or the same cell value, regardless of zoom
level, giving an extent of one cell wide by one cell high at every zoom
level:

I include the TileMatrixSet element at the end, which looks ok to me.  Does
anyone have some advice on what I've got wrong here?

I should mention that I can only get the one tile available  per MinTileRow /
MaxTileRow  and  MinTileCol / MaxTileCol  a GetTile request, all others
return an error document.

Thanks very much for looking, and your advice!

Cheers,
Peter

<TileMatrixSetLink>
<TileMatrixSet>CBMTILE</TileMatrixSet>
<TileMatrixSetLimits>
<TileMatrixLimits>
<TileMatrix>0</TileMatrix>
<MinTileRow>4</MinTileRow>
<MaxTileRow>4</MaxTileRow>
<MinTileCol>3</MinTileCol>
<MaxTileCol>3</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>1</TileMatrix>
<MinTileRow>6</MinTileRow>
<MaxTileRow>6</MaxTileRow>
<MinTileCol>6</MinTileCol>
<MaxTileCol>6</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>2</TileMatrix>
<MinTileRow>11</MinTileRow>
<MaxTileRow>11</MaxTileRow>
<MinTileCol>10</MinTileCol>
<MaxTileCol>10</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>3</TileMatrix>
<MinTileRow>19</MinTileRow>
<MaxTileRow>19</MaxTileRow>
<MinTileCol>17</MinTileCol>
<MaxTileCol>17</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>4</TileMatrix>
<MinTileRow>33</MinTileRow>
<MaxTileRow>33</MaxTileRow>
<MinTileCol>29</MinTileCol>
<MaxTileCol>29</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>5</TileMatrix>
<MinTileRow>58</MinTileRow>
<MaxTileRow>58</MaxTileRow>
<MinTileCol>51</MinTileCol>
<MaxTileCol>51</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>6</TileMatrix>
<MinTileRow>96</MinTileRow>
<MaxTileRow>96</MaxTileRow>
<MinTileCol>85</MinTileCol>
<MaxTileCol>85</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>7</TileMatrix>
<MinTileRow>165</MinTileRow>
<MaxTileRow>165</MaxTileRow>
<MinTileCol>146</MinTileCol>
<MaxTileCol>146</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>8</TileMatrix>
<MinTileRow>290</MinTileRow>
<MaxTileRow>290</MaxTileRow>
<MinTileCol>255</MinTileCol>
<MaxTileCol>255</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>9</TileMatrix>
<MinTileRow>483</MinTileRow>
<MaxTileRow>483</MaxTileRow>
<MinTileCol>426</MinTileCol>
<MaxTileCol>426</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>10</TileMatrix>
<MinTileRow>829</MinTileRow>
<MaxTileRow>829</MaxTileRow>
<MinTileCol>730</MinTileCol>
<MaxTileCol>730</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>11</TileMatrix>
<MinTileRow>1381</MinTileRow>
<MaxTileRow>1381</MaxTileRow>
<MinTileCol>1218</MinTileCol>
<MaxTileCol>1218</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>12</TileMatrix>
<MinTileRow>2321</MinTileRow>
<MaxTileRow>2321</MaxTileRow>
<MinTileCol>2046</MinTileCol>
<MaxTileCol>2046</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>13</TileMatrix>
<MinTileRow>4002</MinTileRow>
<MaxTileRow>4002</MaxTileRow>
<MinTileCol>3528</MinTileCol>
<MaxTileCol>3528</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>14</TileMatrix>
<MinTileRow>6827</MinTileRow>
<MaxTileRow>6827</MaxTileRow>
<MinTileCol>6019</MinTileCol>
<MaxTileCol>6019</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>15</TileMatrix>
<MinTileRow>11607</MinTileRow>
<MaxTileRow>11607</MaxTileRow>
<MinTileCol>10232</MinTileCol>
<MaxTileCol>10232</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>16</TileMatrix>
<MinTileRow>19345</MinTileRow>
<MaxTileRow>19345</MaxTileRow>
<MinTileCol>17054</MinTileCol>
<MaxTileCol>17054</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>17</TileMatrix>
<MinTileRow>33163</MinTileRow>
<MaxTileRow>33163</MaxTileRow>
<MinTileCol>29237</MinTileCol>
<MaxTileCol>29237</MaxTileCol>
</TileMatrixLimits>
<TileMatrixLimits>
<TileMatrix>18</TileMatrix>
<MinTileRow>58036</MinTileRow>
<MaxTileRow>58036</MaxTileRow>
<MinTileCol>51164</MinTileCol>
<MaxTileCol>51164</MaxTileCol>
</TileMatrixLimits>
</TileMatrixSetLimits>
</TileMatrixSetLink>

<TileMatrixSet>
<ows:Identifier>CBMTILE</ows:Identifier>
<ows:SupportedCRS>urn:ogc:def:crs:EPSG::3978</ows:SupportedCRS>
<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>1.3701664308090523E8</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>5</MatrixWidth>
<MatrixHeight>8</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>1</ows:Identifier>
<ScaleDenominator>8.032010111639273E7</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8</MatrixWidth>
<MatrixHeight>14</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>2</ows:Identifier>
<ScaleDenominator>4.7247118303760424E7</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>14</MatrixWidth>
<MatrixHeight>24</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>3</ows:Identifier>
<ScaleDenominator>2.8348270982256256E7</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>22</MatrixWidth>
<MatrixHeight>39</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>4</ows:Identifier>
<ScaleDenominator>1.653649140631615E7</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>38</MatrixWidth>
<MatrixHeight>67</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>5</ows:Identifier>
<ScaleDenominator>9449423.660752086</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>66</MatrixWidth>
<MatrixHeight>116</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>6</ows:Identifier>
<ScaleDenominator>5669654.196451251</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>110</MatrixWidth>
<MatrixHeight>193</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>3307298.28126323</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>189</MatrixWidth>
<MatrixHeight>331</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>1889884.732150417</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>330</MatrixWidth>
<MatrixHeight>579</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>1133930.8392902503</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>550</MatrixWidth>
<MatrixHeight>964</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>661459.656252646</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>942</MatrixWidth>
<MatrixHeight>1652</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>396875.79375158757</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1570</MatrixWidth>
<MatrixHeight>2753</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>236235.59151880213</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2638</MatrixWidth>
<MatrixHeight>4625</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>137016.64308090523</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4547</MatrixWidth>
<MatrixHeight>7974</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>14</ows:Identifier>
<ScaleDenominator>80320.10111639272</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>7757</MatrixWidth>
<MatrixHeight>13602</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>15</ows:Identifier>
<ScaleDenominator>47247.11830376043</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>13186</MatrixWidth>
<MatrixHeight>23123</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>16</ows:Identifier>
<ScaleDenominator>28348.270982256254</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>21977</MatrixWidth>
<MatrixHeight>38539</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>17</ows:Identifier>
<ScaleDenominator>16536.49140631615</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>37674</MatrixWidth>
<MatrixHeight>66066</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>18</ows:Identifier>
<ScaleDenominator>9449.423660752085</ScaleDenominator>
<TopLeftCorner>-3.46558E7 3.931E7</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>65929</MatrixWidth>
<MatrixHeight>115615</MatrixHeight>
</TileMatrix>
</TileMatrixSet>

<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://geowebcache.org/schema/1.15.0
http://geowebcache.org/schema/1.15.0/geowebcache.xsd"; xmlns="
http://geowebcache.org/schema/1.15.0";>
<version>1.15.0</version>
<backendTimeout>120</backendTimeout>
<blobStores/>
<gridSets>
<gridSet>
<name>CBMTILE</name>
<description>Canada Base Map</description>
<srs>
<number>3978</number>
</srs>
<extent>
<coords>
<double>-3.46558E7</double>
<double>-3.9E7</double>
<double>1.0E7</double>
<double>3.931E7</double>
</coords>
</extent>
<alignTopLeft>true</alignTopLeft>
<resolutions>
<double>38364.660062653464</double>
<double>22489.62831258996</double>
<double>13229.193125052918</double>
<double>7937.5158750317505</double>
<double>4630.2175937685215</double>
<double>2645.8386250105837</double>
<double>1587.5031750063501</double>
<double>926.0435187537042</double>
<double>529.1677250021168</double>
<double>317.50063500127004</double>
<double>185.20870375074085</double>
<double>111.12522225044451</double>
<double>66.1459656252646</double>
<double>38.36466006265346</double>
<double>22.48962831258996</double>
<double>13.229193125052918</double>
<double>7.9375158750317505</double>
<double>4.6302175937685215</double>
<double>2.6458386250105836</double>
</resolutions>
<metersPerUnit>1.0</metersPerUnit>
<pixelSize>2.8E-4</pixelSize>
<scaleNames>
<string>0</string>
<string>1</string>
<string>2</string>
<string>3</string>
<string>4</string>
<string>5</string>
<string>6</string>
<string>7</string>
<string>8</string>
<string>9</string>
<string>10</string>
<string>11</string>
<string>12</string>
<string>13</string>
<string>14</string>
<string>15</string>
<string>16</string>
<string>17</string>
<string>18</string>
</scaleNames>
<tileHeight>256</tileHeight>
<tileWidth>256</tileWidth>
<yCoordinateFirst>false</yCoordinateFirst>
</gridSet>
</gridSets>
<layers/>
</gwcConfiguration>
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to