This is more of a GDAL question, and might be better asked on a list more
targeted to that. In particular, just because its XML doesn’t mean that there
is any relationship between GDAL configuration files and GeoServer
configuration files. They do different things using different schemas.
That said, you could construct some of the GDAL_WMS files by parsing the WMS
GetCapabilities response (say in a python script), but some of it depends on
your specific needs. I’m not aware of any available tools.
Brad
From: Julierme Pinheiro [mailto:juliermeopensourcedevelo...@gmail.com]
Sent: Wednesday, 7 February 2018 3:52 AM
To: GeoServer Mailing List List <geoserver-users@lists.sourceforge.net>
Subject: [Geoserver-users] Converting Geoserver TMS to <GDAL_WMS> <Service
name="TMS"></Service></GDAL_WMS>
Hi all,
I need to have a GDAL_WMS (Service name = "TMS") XML file for each TMS layer
in Geoserver.
Does Geoserver create these GDAL_WMS automatically or is it necessary to use a
GDAL function to convert from Geoserver TMS (xml) to GDAL_WMS (xml)?
One thing I got confused is about finding the path for every Geoserver TMS file:
First, looking in the geoserver directory
(/var/lib/tomcat7/webapps/geoserver/data/workspaces), I found the layer.xml
files, but I could not find the xml for the TMS layer.
Secondly, I tried saving the the xml in
http://localhost:8080/geoserver/gwc/service/tms/1.0.0/ and I got the file
"tms-getcapabilities.xml", but I did the same for a TMS layer in
http://localhost:8080/geoserver/gwc/service/tms/1.0.0/amazoniasar_amapa_covmingrad%3ACSKS4_20161124093252_CSKS3_20170124093228_3_CovMinGrad_rgb@EPSG%3A4326@png
and I got the file "tms-getcapabilities.xml".
Last, I looked for the file "tms-getcapabilities.xml" find . -name
'tms-getcapabilites.xml' in the geoserver directory and I did not find any.
So, if geoserver does not create automatically the GDAL_WMS (Service
name="TMS"), I need some how to convert geoserver TMS layer to GDAL_WMS.
Any help would be greatly received.
Thank you for your time in advance.
Best Regards
Julierme
------------------------------------------------------------------------------
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