Class GeoServiceHelper

java.lang.Object
org.tailormap.api.persistence.helper.GeoServiceHelper

@Service public class GeoServiceHelper extends Object
  • Constructor Details

  • Method Details

    • guessServerTypeFromUrl

      public Service.ServerTypeEnum guessServerTypeFromUrl(String url)
    • loadServiceCapabilities

      public void loadServiceCapabilities(GeoService geoService) throws Exception
      Throws:
      Exception
    • findRelatedWFS

      public Map<String,SimpleWFSLayerDescription> findRelatedWFS(GeoService geoService)
    • findAndSaveRelatedWFS

      public void findAndSaveRelatedWFS(GeoService geoService)
    • getLayerLegendUrlFromStyles

      public static URI getLayerLegendUrlFromStyles(GeoService service, GeoServiceLayer serviceLayer)
      Try to extract the legend url from the styles of the layer. This works by getting all styles for the layer and then removing any styles attached to other (parent) layers from the list of all styles. What remains is/are the legend url(s) for the layer. NOTE: when a layer has more than one -not an inherited style- style the first style is used.
      Parameters:
      service - the service that has the layer
      serviceLayer - the layer to get the legend url for
      Returns:
      a URI to the legend image or null if not found