|
|
|
@ -290,8 +290,8 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|
|
|
|
? new ZAxis(layerZAxis.getUnits(), layerZAxis.isPositive(), layerZAxis.getValues())
|
|
|
|
|
: null;
|
|
|
|
|
|
|
|
|
|
return new GeoInformationForWMSRequest(wmsServiceServiceEndpoint, validWMSRequest, layerName, versionWms, crs,
|
|
|
|
|
mapWmsNotStandard, styles, styles.isNcWms(), zAxis);
|
|
|
|
|
return new GeoInformationForWMSRequest(wmsServiceServiceEndpoint, validWMSRequest, layerName, versionWms,
|
|
|
|
|
crs, mapWmsNotStandard, styles, styles.isNcWms(), zAxis);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
String msg = "An error occurred during wms request validation for layer: " + layerName;
|
|
|
|
|
LOG.error(msg, e);
|
|
|
|
@ -706,7 +706,7 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|
|
|
|
GCubeSDILayer indexLayer = index.getLayer();
|
|
|
|
|
HashMap<String, String> ogcLinks = indexLayer.getOgcLinks();
|
|
|
|
|
String wmsLink = ogcLinks.get("wms");
|
|
|
|
|
LOG.info("wms link is {}", StringUtil.ellipsize(wmsLink, 150));
|
|
|
|
|
LOG.info("wms link is {}", StringUtil.ellipsize(wmsLink, 150));
|
|
|
|
|
int lastCharOfthePath = wmsLink.indexOf("?");
|
|
|
|
|
String wmsPath = wmsLink.substring(0, lastCharOfthePath);
|
|
|
|
|
for (GeoServerPlatformInfoDV geoserver : indexLayer.getPlatformInfos()) {
|
|
|
|
@ -1863,4 +1863,19 @@ public class GeoportalDataViewerServiceImpl extends RemoteServiceServlet impleme
|
|
|
|
|
return HTTPRequestUtil.getResponse(url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Integer getCountFor(String profileID, String phase, String status) {
|
|
|
|
|
LOG.debug("getCountFor profileID: " + profileID + ", phase: " + phase + ", status: " + status + "called");
|
|
|
|
|
Integer integer = null;
|
|
|
|
|
try {
|
|
|
|
|
new GeoportalServiceIdentityProxy(this.getThreadLocalRequest());
|
|
|
|
|
integer = GeoportalClientCaller.projects().getCountByPhaseFor(profileID, phase, status);
|
|
|
|
|
LOG.info("getCountFor profileID: " + profileID + ", phase: " + phase + ", status: " + status
|
|
|
|
|
+ " returning: " + integer);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
LOG.error("Error occurred in getCountFor for profileID: " + profileID, e);
|
|
|
|
|
}
|
|
|
|
|
return integer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|