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