/webportal/src/main/java/au/org/emii/portal/wms/RemoteMap.java

http://alageospatialportal.googlecode.com/ · Java · 82 lines · 25 code · 20 blank · 37 comment · 0 complexity · e18aa58b1d93e008c350b51e87c61b7d MD5 · raw file

  1. /*
  2. * To change this template, choose Tools | Templates
  3. * and open the template in the editor.
  4. */
  5. package au.org.emii.portal.wms;
  6. import au.org.emii.portal.menu.MapLayer;
  7. import au.org.emii.portal.config.xmlbeans.BaseLayer;
  8. import au.org.emii.portal.config.xmlbeans.Discovery;
  9. import au.org.emii.portal.config.xmlbeans.Service;
  10. import au.org.emii.portal.lang.LanguagePack;
  11. import java.util.Hashtable;
  12. /**
  13. *
  14. * @author geoff
  15. */
  16. public interface RemoteMap {
  17. /**
  18. * Create a MapLayer instance and test that an image can be read from
  19. * the URI.
  20. *
  21. * Image format, and wms layer name and wms type are automatically obtained from the
  22. * URI.
  23. *
  24. * If there is no version parameter in the uri, we use a sensible
  25. * default (v1.1.1)
  26. *
  27. * @param label Label to use for the menu system
  28. * @param uri URI to read the map layer from (a GetMap request)
  29. * @param opacity Opacity value for this layer
  30. */
  31. MapLayer createAndTestWMSLayer(String label, String uri, float opacity);
  32. MapLayer createAndTestWMSLayer(String label, String uri, float opacity, boolean queryable);
  33. MapLayer createGeoJSONLayer(String label, String uri, boolean points_type, int colour);
  34. MapLayer createGeoJSONLayer(String label, String uri, boolean points_type, Hashtable properties, int colour);
  35. String getJson(String uri);
  36. MapLayer createGeoJSONLayerWithGeoJSON(String label, String uri, String json);
  37. MapLayer createKMLLayer(String label, String name, String uri);
  38. MapLayer createWKTLayer(String wkt, String label);
  39. MapLayer createLocalLayer(int type, String label);
  40. MapLayer autoDiscover(String name, float opacity, String uri, String version);
  41. /**
  42. * Autodiscover a wms servers layers
  43. *
  44. * @param name
  45. * @param opacity
  46. * @param uri
  47. * @param version
  48. * @return
  49. */
  50. MapLayer autoDiscover(String id, String name, float opacity, String uri, String version);
  51. /**
  52. * Discovery of nested services
  53. *
  54. * @param discovery
  55. * @return
  56. */
  57. MapLayer discover(Discovery discovery, boolean displayAllChildren, boolean queryableDisabled, boolean quiet);
  58. String getDiscoveryErrorMessage();
  59. String getDiscoveryErrorMessageSimple();
  60. String getLastUriAttempted();
  61. int getLastWMSVersionAttempted();
  62. }