use of org.geosdi.geoplatform.connector.geoserver.request.layers.GeoserverLoadLayerRequest in project geo-platform by geosdi.
the class GPGeoserverConnectorStoreV22XTest method n_layerRasterGeoserverConnectorTest.
@Test
public void n_layerRasterGeoserverConnectorTest() throws Exception {
GeoserverLoadLayerRequest layerRequest = geoserverConnectorStoreV2_20_x.loadLayerRequest();
layerRequest.withName("Arc_Sample");
logger.info("############RASTER_LAYER_GEOSERVER_CONNECTOR_RESPONSE : \n{}\n", layerRequest.getResponseAsString());
}
use of org.geosdi.geoplatform.connector.geoserver.request.layers.GeoserverLoadLayerRequest in project geo-platform by geosdi.
the class GeoserverConnectorLayersTest method b_getLayer.
@Test
public void b_getLayer() throws Exception {
RESTLayer restLayer = this.restReader.getLayer("poi");
GeoserverLoadLayerRequest geoserverLoadLayerRequest = this.geoserverConnectorStore.loadLayerRequest().withName("poi");
GeoserverLayer geoserverLayer = geoserverLoadLayerRequest.getResponse();
logger.info("##########################RESOURCE_URL_REST_READER {}\n", restLayer.getResourceUrl());
logger.info("##########################RESOURCE_URL_GEOSERVER_CONNECTOR {}\n", geoserverLayer.getLayerResource().getHref());
logger.info("#######################GEOSERVER_LAYER: {}\n", geoserverLayer);
List<String> styleNames = geoserverLoadLayerRequest.getResponse().getLayerStyle().getStyles().stream().map(s -> s.getName()).collect(Collectors.toList());
assertTrue("###################STYLES_LENGTH", styleNames.size() == restLayer.getStyles().getNames().size());
if (restLayer.getStyles() != null) {
for (String styleName : restLayer.getStyles().getNames()) {
logger.info("#######################STYLE_NAME: {}\n", styleName);
assertTrue("###################STYLE NAME:", styleNames.contains(styleName));
}
}
}
use of org.geosdi.geoplatform.connector.geoserver.request.layers.GeoserverLoadLayerRequest in project geo-platform by geosdi.
the class GeoserverConnectorLayersTest method c_getLayerWithWorkspace.
@Test
public void c_getLayerWithWorkspace() throws Exception {
RESTLayer restLayer = this.restReader.getLayer("tiger", "poi");
GeoserverLoadWorkspaceLayerRequest geoserverLoadLayerRequest = this.geoserverConnectorStore.loadWorkspaceLayerRequest().withLayerName("poi").withWorkspaceName("tiger");
GeoserverLayer geoserverLayer = geoserverLoadLayerRequest.getResponse();
logger.info("##########################STYLES_REST_READER {}\n", restLayer.getStyles().getNames());
logger.info("#######################GEOSERVER_LAYER: {}\n", geoserverLayer);
List<String> styleNames = geoserverLoadLayerRequest.getResponse().getLayerStyle().getStyles().stream().map(s -> s.getName()).collect(Collectors.toList());
logger.info("#######################GEOSERVER_STYLE_NAMES: {}\n", styleNames);
assertTrue("###################STYLES_LENGTH", styleNames.size() == restLayer.getStyles().getNames().size());
if (restLayer.getStyles() != null) {
for (String styleName : restLayer.getStyles().getNames()) {
logger.info("#######################STYLE_NAME: {}\n", styleName);
assertTrue("###################STYLE NAME:", styleNames.contains(styleName));
}
}
}
use of org.geosdi.geoplatform.connector.geoserver.request.layers.GeoserverLoadLayerRequest in project geo-platform by geosdi.
the class GPGeoserverConnectorStoreV220XTest method n_layerRasterGeoserverConnectorTest.
@Test
public void n_layerRasterGeoserverConnectorTest() throws Exception {
GeoserverLoadLayerRequest layerRequest = geoserverConnectorStoreV2_20_x.loadLayerRequest();
layerRequest.withName("Arc_Sample");
logger.info("############RASTER_LAYER_GEOSERVER_CONNECTOR_RESPONSE : \n{}\n", layerRequest.getResponseAsString());
}
use of org.geosdi.geoplatform.connector.geoserver.request.layers.GeoserverLoadLayerRequest in project geo-platform by geosdi.
the class GPGeoserverConnectorStoreTest method m_layerVectorGeoserverConnectorTest.
@Test
public void m_layerVectorGeoserverConnectorTest() throws Exception {
GeoserverLoadLayerRequest layerRequest = geoserverConnectorStoreV2_21_x.loadLayerRequest();
layerRequest.withName("giant_polygon");
logger.info("##############VECTOR_LAYER_GEOSERVER_CONNECTOR_RESPONSE : \n{}\n", layerRequest.getResponseAsString());
}
Aggregations