Updated GetStyle comment in case of error
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/spatial-data/geo-utility@128358 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
00cb9527c0
commit
32bc3aaaec
|
@ -79,7 +79,7 @@ public class WmsGetStyles {
|
||||||
public List<String> getStylesFromWms(String urlConn, String layerName) {
|
public List<String> getStylesFromWms(String urlConn, String layerName) {
|
||||||
|
|
||||||
List<String> styles = new ArrayList<String>();
|
List<String> styles = new ArrayList<String>();
|
||||||
|
String query = "";
|
||||||
try {
|
try {
|
||||||
|
|
||||||
HashMap<String, String> parameters = new HashMap<String, String>();
|
HashMap<String, String> parameters = new HashMap<String, String>();
|
||||||
|
@ -88,7 +88,7 @@ public class WmsGetStyles {
|
||||||
parameters.put("service", "wms");
|
parameters.put("service", "wms");
|
||||||
parameters.put("version", "1.1.1");
|
parameters.put("version", "1.1.1");
|
||||||
|
|
||||||
String query = UrlEncoderUtil.encodeQuery(parameters);
|
query = UrlEncoderUtil.encodeQuery(parameters);
|
||||||
WmsServiceBaseUri geosever = foundWmsServiceBaseUri(urlConn);
|
WmsServiceBaseUri geosever = foundWmsServiceBaseUri(urlConn);
|
||||||
|
|
||||||
if(query==null || query.isEmpty())
|
if(query==null || query.isEmpty())
|
||||||
|
@ -105,11 +105,11 @@ public class WmsGetStyles {
|
||||||
styles = openConnectionGetStyles(newUrlConn, query);
|
styles = openConnectionGetStyles(newUrlConn, query);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.info("WMS GetStyles returning : "+styles.toString());
|
logger.info("WMS GetStyles returning: "+styles.toString());
|
||||||
return styles;
|
return styles;
|
||||||
|
|
||||||
}catch (Exception e) {
|
}catch (Exception e) {
|
||||||
logger.error("Error Exception with url " + urlConn);
|
logger.error("Error Exception getStylesFromWms from url:" + urlConn + ", query: "+query, e);
|
||||||
return styles;
|
return styles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue