[Geoserver-users] GeoWebCache custom grid

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 true, 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

CBMTILE

0

4

4

3

3

1

6

6

6

6

2

11

11

10

10

3

19

19

17

17

4

33

33

29

29

5

58

58

51

51

6

96

96

85

85

7

165

165

146

146

8

290

290

255

255

9

483

483

426

426

10

829

829

730

730

11

1381

1381

1218

1218

12

2321

2321

2046

2046

13

4002

4002

3528

3528

14

6827

6827

6019

6019

15

11607

11607

10232

10232

16

19345

19345

17054

17054

17

33163

33163

29237

29237

18

58036

58036

51164

51164

ows:IdentifierCBMTILE</ows:Identifier>

ows:SupportedCRSurn:ogc:def:crs:EPSG::3978</ows:SupportedCRS>

ows:Identifier0</ows:Identifier>

1.3701664308090523E8

-3.46558E7 3.931E7

256

256

5

8

ows:Identifier1</ows:Identifier>

8.032010111639273E7

-3.46558E7 3.931E7

256

256

8

14

ows:Identifier2</ows:Identifier>

4.7247118303760424E7

-3.46558E7 3.931E7

256

256

14

24

ows:Identifier3</ows:Identifier>

2.8348270982256256E7

-3.46558E7 3.931E7

256

256

22

39

ows:Identifier4</ows:Identifier>

1.653649140631615E7

-3.46558E7 3.931E7

256

256

38

67

ows:Identifier5</ows:Identifier>

9449423.660752086

-3.46558E7 3.931E7

256

256

66

116

ows:Identifier6</ows:Identifier>

5669654.196451251

-3.46558E7 3.931E7

256

256

110

193

ows:Identifier7</ows:Identifier>

3307298.28126323

-3.46558E7 3.931E7

256

256

189

331

ows:Identifier8</ows:Identifier>

1889884.732150417

-3.46558E7 3.931E7

256

256

330

579

ows:Identifier9</ows:Identifier>

1133930.8392902503

-3.46558E7 3.931E7

256

256

550

964

ows:Identifier10</ows:Identifier>

661459.656252646

-3.46558E7 3.931E7

256

256

942

1652

ows:Identifier11</ows:Identifier>

396875.79375158757

-3.46558E7 3.931E7

256

256

1570

2753

ows:Identifier12</ows:Identifier>

236235.59151880213

-3.46558E7 3.931E7

256

256

2638

4625

ows:Identifier13</ows:Identifier>

137016.64308090523

-3.46558E7 3.931E7

256

256

4547

7974

ows:Identifier14</ows:Identifier>

80320.10111639272

-3.46558E7 3.931E7

256

256

7757

13602

ows:Identifier15</ows:Identifier>

47247.11830376043

-3.46558E7 3.931E7

256

256

13186

23123

ows:Identifier16</ows:Identifier>

28348.270982256254

-3.46558E7 3.931E7

256

256

21977

38539

ows:Identifier17</ows:Identifier>

16536.49140631615

-3.46558E7 3.931E7

256

256

37674

66066

ows:Identifier18</ows:Identifier>

9449.423660752085

-3.46558E7 3.931E7

256

256

65929

115615

1.15.0 120 CBMTILE Canada Base Map 3978 -3.46558E7 -3.9E7 1.0E7 3.931E7 true 38364.660062653464 22489.62831258996 13229.193125052918 7937.5158750317505 4630.2175937685215 2645.8386250105837 1587.5031750063501 926.0435187537042 529.1677250021168 317.50063500127004 185.20870375074085 111.12522225044451 66.1459656252646 38.36466006265346 22.48962831258996 13.229193125052918 7.9375158750317505 4.6302175937685215 2.6458386250105836 1.0 2.8E-4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 256 256 false

I forgot to say the version I’m using is built from the master branch with all the snapshot artifacts etc., so I hope that isnt why I ran into this. If so, apology for the wasted time.

Thanks
Peter

On Sat, Jul 6, 2019, 12:02 PM Peter Rushforth <peter.rushforth@anonymised.com> wrote:

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 true, 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

CBMTILE

0

4

4

3

3

1

6

6

6

6

2

11

11

10

10

3

19

19

17

17

4

33

33

29

29

5

58

58

51

51

6

96

96

85

85

7

165

165

146

146

8

290

290

255

255

9

483

483

426

426

10

829

829

730

730

11

1381

1381

1218

1218

12

2321

2321

2046

2046

13

4002

4002

3528

3528

14

6827

6827

6019

6019

15

11607

11607

10232

10232

16

19345

19345

17054

17054

17

33163

33163

29237

29237

18

58036

58036

51164

51164

ows:IdentifierCBMTILE</ows:Identifier>

ows:SupportedCRSurn:ogc:def:crs:EPSG::3978</ows:SupportedCRS>

ows:Identifier0</ows:Identifier>

1.3701664308090523E8

-3.46558E7 3.931E7

256

256

5

8

ows:Identifier1</ows:Identifier>

8.032010111639273E7

-3.46558E7 3.931E7

256

256

8

14

ows:Identifier2</ows:Identifier>

4.7247118303760424E7

-3.46558E7 3.931E7

256

256

14

24

ows:Identifier3</ows:Identifier>

2.8348270982256256E7

-3.46558E7 3.931E7

256

256

22

39

ows:Identifier4</ows:Identifier>

1.653649140631615E7

-3.46558E7 3.931E7

256

256

38

67

ows:Identifier5</ows:Identifier>

9449423.660752086

-3.46558E7 3.931E7

256

256

66

116

ows:Identifier6</ows:Identifier>

5669654.196451251

-3.46558E7 3.931E7

256

256

110

193

ows:Identifier7</ows:Identifier>

3307298.28126323

-3.46558E7 3.931E7

256

256

189

331

ows:Identifier8</ows:Identifier>

1889884.732150417

-3.46558E7 3.931E7

256

256

330

579

ows:Identifier9</ows:Identifier>

1133930.8392902503

-3.46558E7 3.931E7

256

256

550

964

ows:Identifier10</ows:Identifier>

661459.656252646

-3.46558E7 3.931E7

256

256

942

1652

ows:Identifier11</ows:Identifier>

396875.79375158757

-3.46558E7 3.931E7

256

256

1570

2753

ows:Identifier12</ows:Identifier>

236235.59151880213

-3.46558E7 3.931E7

256

256

2638

4625

ows:Identifier13</ows:Identifier>

137016.64308090523

-3.46558E7 3.931E7

256

256

4547

7974

ows:Identifier14</ows:Identifier>

80320.10111639272

-3.46558E7 3.931E7

256

256

7757

13602

ows:Identifier15</ows:Identifier>

47247.11830376043

-3.46558E7 3.931E7

256

256

13186

23123

ows:Identifier16</ows:Identifier>

28348.270982256254

-3.46558E7 3.931E7

256

256

21977

38539

ows:Identifier17</ows:Identifier>

16536.49140631615

-3.46558E7 3.931E7

256

256

37674

66066

ows:Identifier18</ows:Identifier>

9449.423660752085

-3.46558E7 3.931E7

256

256

65929

115615

1.15.0 120 CBMTILE Canada Base Map 3978 -3.46558E7 -3.9E7 1.0E7 3.931E7 true 38364.660062653464 22489.62831258996 13229.193125052918 7937.5158750317505 4630.2175937685215 2645.8386250105837 1587.5031750063501 926.0435187537042 529.1677250021168 317.50063500127004 185.20870375074085 111.12522225044451 66.1459656252646 38.36466006265346 22.48962831258996 13.229193125052918 7.9375158750317505 4.6302175937685215 2.6458386250105836 1.0 2.8E-4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 256 256 false

Hi Peter,
I’m not sure, I’ve just tried with my current checkout of GeoServer, and I get increasing ranges,
see the caps document attached, retrieved calling http://localhost:8080/geoserver/topp/states/gwc/service/wmts?REQUEST=GetCapabilities

Wondering if maybe the states layer bbox got ruined in the configuration, and it’s a very small
one now? That would explain why a single tile always manages to cover it.

Cheers

Andrea

cbmtile_capabilities.xml (112 KB)

···

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.