Jukka and Brad,
I appreciate your time to respond. Thanks!
I had been building out the URL as you suggested. :) I hadn't been using
the demo layer before. Now, I am working with it as a known base.
It does help to see the log (using powershell to tail the file in
VERBOSE_LOGGING).
I am getting the following in the log:
>>> start >>>
2018-05-07 07:49:38,653 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/5.png]
are [/gwc/service/**]
2018-05-07 07:49:38,653 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/j_spring_security_check'
2018-05-07 07:49:38,654 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/5.png]
are {}
2018-05-07 07:49:38,655 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/5.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,654 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/'
2018-05-07 07:49:38,656 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/j_spring_security_check'
2018-05-07 07:49:38,656 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/j_spring_security_check/'
2018-05-07 07:49:38,657 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/j_spring_security_logout'
2018-05-07 07:49:38,657 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/j_spring_security_logout/'
2018-05-07 07:49:38,654 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/j_spring_security_check/'
2018-05-07 07:49:38,658 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/j_spring_security_logout'
2018-05-07 07:49:38,658 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/j_spring_security_logout/'
2018-05-07 07:49:38,657 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/rest/**'
2018-05-07 07:49:38,657 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain
2018-05-07 07:49:38,659 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/6.png]
are [/gwc/service/**]
2018-05-07 07:49:38,659 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/gwc/rest/**'
2018-05-07 07:49:38,659 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/rest/**'
2018-05-07 07:49:38,660 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png,
QueryString: null'; against '/**'
2018-05-07 07:49:38,661 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2018-05-07 07:49:38,660 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:49:38,660 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/6.png]
are {}
2018-05-07 07:49:38,662 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/6.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,662 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/8.png, QueryString:
null with /**
2018-05-07 07:49:38,661 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/gwc/rest/**'
2018-05-07 07:49:38,663 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png,
QueryString: null'; against '/**'
2018-05-07 07:49:38,664 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2018-05-07 07:49:38,664 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain
2018-05-07 07:49:38,664 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/2.png, QueryString:
null with /**
2018-05-07 07:49:38,665 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:49:38,668 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/8.png]
are [/gwc/service/**]
2018-05-07 07:49:38,669 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/8.png]
are {}
2018-05-07 07:49:38,669 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/8.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,671 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/2.png]
are [/gwc/service/**]
2018-05-07 07:49:38,671 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain
2018-05-07 07:49:38,671 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/2.png]
are {}
2018-05-07 07:49:38,672 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/2.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,672 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:49:38,673 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain
2018-05-07 07:49:38,674 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:49:38,770 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/web/**'
2018-05-07 07:49:38,770 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/web/**'
2018-05-07 07:49:38,771 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/gwc/rest/web/**'
2018-05-07 07:49:38,771 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/gwc/rest/web/**'
2018-05-07 07:49:38,772 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/'
2018-05-07 07:49:38,772 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/'
2018-05-07 07:49:38,773 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/j_spring_security_check'
2018-05-07 07:49:38,773 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/j_spring_security_check'
2018-05-07 07:49:38,773 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/j_spring_security_check/'
2018-05-07 07:49:38,774 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/j_spring_security_check/'
2018-05-07 07:49:38,774 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/j_spring_security_logout'
2018-05-07 07:49:38,774 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/j_spring_security_logout'
2018-05-07 07:49:38,775 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/j_spring_security_logout/'
2018-05-07 07:49:38,775 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/j_spring_security_logout/'
2018-05-07 07:49:38,775 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/rest/**'
2018-05-07 07:49:38,776 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/rest/**'
2018-05-07 07:49:38,776 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/gwc/rest/**'
2018-05-07 07:49:38,776 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/gwc/rest/**'
2018-05-07 07:49:38,777 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png,
QueryString: null'; against '/**'
2018-05-07 07:49:38,778 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2018-05-07 07:49:38,777 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png,
QueryString: null'; against '/**'
2018-05-07 07:49:38,778 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Request matched by
universal pattern '/**'
2018-05-07 07:49:38,778 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/9.png, QueryString:
null with /**
2018-05-07 07:49:38,778 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/gwc/service/tms/1.0.0/topp:states@epsg:4326@png/4/6/10.png, QueryString:
null with /**
2018-05-07 07:49:38,784 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/9.png]
are [/gwc/service/**]
2018-05-07 07:49:38,784 DEBUG [ows.OWSHandlerMapping] - Matching patterns
for request [/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/10.png]
are [/gwc/service/**]
2018-05-07 07:49:38,785 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/9.png]
are {}
2018-05-07 07:49:38,785 DEBUG [ows.OWSHandlerMapping] - URI Template
variables for request
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/10.png]
are {}
2018-05-07 07:49:38,785 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/9.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,785 DEBUG [ows.OWSHandlerMapping] - Mapping
[/gwc/service/tms/1.0.0/topp:states@EPSG:4326@png/4/6/10.png] to
HandlerExecutionChain with handler [org.geoserver.ows.Dispatcher@b692c1]
and 1 interceptor
2018-05-07 07:49:38,787 DEBUG [geotools.util] -
InterpolationConverterFactory can be applied from Strings to Interpolation
only.
2018-05-07 07:49:38,787 DEBUG [geoserver.filters] - Compressing output for
mimetype: text/plain
2018-05-07 07:49:38,788 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:49:38,788 DEBUG [geoserver.filters] - Not compressing output
for mimetype: image/png
2018-05-07 07:49:38,790 DEBUG
[filter.GeoServerSecurityContextPersistenceFilter$1] -
SecurityContextHolder now cleared, as request processing completed
2018-05-07 07:50:09,851 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Checking match of
request : 'Path: /web/wicket/bookmarkable/org.geoserver.web.admin.logpage,
QueryString: 7-1.IFormSubmitListener-form&lines=1000'; against '/web/**'
2018-05-07 07:50:09,852 DEBUG
[security.IncludeQueryStringAntPathRequestMatcher] - Matched Path:
/web/wicket/bookmarkable/org.geoserver.web.admin.logpage, QueryString:
7-1.IFormSubmitListener-form&lines=1000 with /web/**
<<<< end <<<
The piece of the log that has me confused is:
URI Template variables for request [/gwc/service/tms/1.0.0/topp:states@EPSG
:4326@png/4/6/5.png] are {}
It would seem to me that the braces should have the parameters inside.?.?
I looked in the file system on this machine, and I can find the tiles that
correspond to these tiles. I can open up the PNG, and I can view them.
Would you have any other thoughts or recommendations?
Thanks again for the time to look over this!
Barbara
On Mon, May 7, 2018 at 2:29 AM, Rahkonen Jukka (MML) <
jukka.rahko...@maanmittauslaitos.fi> wrote:
> Hi,
>
> The TMS service in Geowebcache should follow the TMS specification.
> https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification. Start by
> making a test with the top:states demo layer before trying your own layers.
>
> For checking which layers (TileMaps) are available through TMS make request
> http://localhost:8080/geoserver/gwc/service/tms/1.0.0
> Then select your TileMap and check the levels
> http://localhost:8080/geoserver/gwc/service/tms/1.0.
> 0/topp%3Astates@EPSG%3A4326@jpeg
> Now you know the available zoom levels and corresponding base URL and you
> can build the request for a tile
> http://localhost:8080/geoserver/gwc/service/tms/1.0.
> 0/topp%3Astates@EPSG%3A4326@jpeg/0/0/0.jpeg
>
> -Jukka Rahkonen-
>
>
> -----Alkuperäinen viesti-----
> Lähettäjä: Barbara Pilbin [mailto:barbara.pil...@gmail.com]
> Lähetetty: 6. toukokuuta 2018 5:09
> Vastaanottaja: br...@frogmouth.net
> Kopio: geoserver-users@lists.sourceforge.net
> Aihe: Re: [Geoserver-users] Geoserver to serve tiles in {z}/{x}/{y}
>
> Hi Brad,
>
> Thanks for your response. I am now feeling a tad bit silly. Is there a log
> you can point me to in order to see the requests that the TMS server on
> GeoServer/ geowebcache?
> When I say that I fail to get a result, I am basically switching out
> URLs. I can get a Mapbox URL to work, but whenever I swap in the TMS
> service (bear with my language - it could be wrong) formatted in Z,X,Y I
> don’t see anything.
>
> A log location will probably help me figure out something. It is always
> possible that I have missed something in the documentation.
>
> Yes, the demo page shows the layers. In QGIS, I can reach the WMTS URL. I
> just need to get to the XYZ (or {z}/{x}/{y} format.
>
> Thanks,
> Barbara
>
> > On May 4, 2018, at 7:44 PM, <br...@frogmouth.net> <br...@frogmouth.net>
> wrote:
> >
> > When you say "failed to get a result", can you say what happens instead?
> Do you get an error message? Is there anything in the logs?
> >
> > We have some documentation. In particular, the part on GeoWebCache
> http://docs.geoserver.org/latest/en/user/geowebcache/webadmin/index.html
> may be useful. Does the "Demo page" show the layers you are trying to serve
> up?
> >
> > Brad
> >
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most engaging
> tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> 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
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users