GeoNode / geonode

GeoNode is an open source platform that facilitates the creation, sharing, and collaborative use of geospatial data.
https://geonode.org/
Other
1.41k stars 1.11k forks source link

The ows_url property for ArcGIS harvested resource should reference the harvester remote url #12235

Closed giohappy closed 1 month ago

giohappy commented 1 month ago

The ArcGIS harvesting tasks generate the ows_url property by doing a (right) partitioning of the harvested resource identifier. This works fine for MapServer services, since they give each layer the base URL + "/" + a unique number for the layer. The result is that the final URL is equal to the base URL. However, the same is implemented for an ImageServer and in that case the partitioning truncate the URL, loosing the final path.

As an example, the ows_url for an ImageServer resource from the sample service https://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto/ImageServer, gets truncated to https://sampleserver6.arcgisonline.com/arcgis/rest/services/Toronto, breaking the visualization of the layer inside the GeoNode client.

A solution that should work for both cases is to use the harvester remote URL, rather then the harvested resource identifier.