pelicanmapping / rocky

3D Geospatial SDK (C++17 / Vulkan / VSG)
MIT License
91 stars 15 forks source link

Can rocky acess tms service provided by geoserver #12

Closed wwwronin closed 1 year ago

wwwronin commented 1 year ago

Hi, I try tms image layer provided by geoserver in rocky and URL like this: "http://localhost:10086/geoserver/gwc/service/tms/1.0.0/geodb%3Aspt_15@EPSG%3A4326@png/" but returned error: Failed to establish a profile for "http://localhost:10086/geoserver/gwc/service/tms/1.0.0/geodb%3Aspt_15@EPSG%3A4326@png/"

gwaldron commented 1 year ago

What does the TMS tilemap look like? Open that URL in your browser and post the XML here.

If you know the profile is global-geodetic or spherical-mercator, you can tell rocky:

layer->setProfile(rocky::Profile::GLOBAL_GEODETIC);
wwwronin commented 1 year ago

image

gwaldron commented 1 year ago

I do not have a dataset like that to test with, but I attempted to push a fix - give it a try. If it doesn't work we'll log this as a defect and try to reproduce it at some point. Thanks.

UPDATE: I tested the patch against GeoServer and it appears to work now. Please confirm.