Search in sources :

Example 1 with GPGeoserverLatLonBoundingBox

use of org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox in project geo-platform by geosdi.

the class GPGeoserverLayerGroupsConnectorStoreV22XTest method toBody.

/**
 * @return {@link GPGeoserverLayerGroupBody}
 */
GPGeoserverLayerGroupBody toBody(String theName, String theTitle) {
    GPGeoserverLayerGroupBody layerGroupBody = new GPGeoserverLayerGroupBody();
    layerGroupBody.setName(theName);
    layerGroupBody.setTitle(theTitle);
    layerGroupBody.setMode(CONTAINER);
    // layerGroupBody.setWorkspace(new GeoserverCreateWorkspaceBody("topp"));
    layerGroupBody.setBounds(new GPGeoserverLatLonBoundingBox() {

        {
            super.setMaxx(-73.907005);
            super.setMaxy(40.882078);
            super.setMinx(-74.047185);
            super.setMiny(40.679648);
            super.setCrs("EPSG:4326");
        }
    });
    GPGeoserverLayerGroupPublishables layerGroupBodyPublishables = new GPGeoserverLayerGroupPublishables();
    List<GPGeoserverLayerPublished> layers = Lists.newArrayList();
    layers.add(new GPGeoserverLayerPublished() {

        {
            super.setLayerName("tiger:giant_polygon");
        }
    });
    // layers.add(new GPGeoserverLayerPublished() {
    // {
    // super.setLayerName("topp:states");
    // }
    // });
    layers.add(new GPGeoserverLayerPublished() {

        {
            super.setLayerName("tiger:poly_landmarks");
        }
    });
    layerGroupBodyPublishables.setLayers(layers);
    layerGroupBody.setLayers(layerGroupBodyPublishables);
    return layerGroupBody;
}
Also used : GPGeoserverLayerGroupPublishables(org.geosdi.geoplatform.connector.geoserver.model.layergroups.publishables.GPGeoserverLayerGroupPublishables) GPGeoserverLayerGroupBody(org.geosdi.geoplatform.connector.geoserver.model.layergroups.GPGeoserverLayerGroupBody) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox) GPGeoserverLayerPublished(org.geosdi.geoplatform.connector.geoserver.model.layergroups.publishables.GPGeoserverLayerPublished)

Example 2 with GPGeoserverLatLonBoundingBox

use of org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox in project geo-platform by geosdi.

the class GeoserverConnectorLayersTest method o_publishDBLayer.

@Ignore
@Test
public void o_publishDBLayer() throws Exception {
    GeoserverCreateFeatureTypeRequest createFeatureTypeRequest = this.geoserverConnectorStore.createFeatureTypeRequest();
    createFeatureTypeRequest.withWorkspace("sf").withStore("store_vito");
    IGPGeoserverFeatureTypeInfo featureTypeBody = new GPGeoserverFeatureTypeInfo();
    featureTypeBody.setNativeCRS("GEOGCS[&quot;WGS 84&quot;, \n" + "  DATUM[&quot;World Geodetic System 1984&quot;, \n" + "    SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], \n" + "    AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], \n" + "  PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], \n" + "  UNIT[&quot;degree&quot;, 0.017453292519943295], \n" + "  AXIS[&quot;Geodetic longitude&quot;, EAST], \n" + "  AXIS[&quot;Geodetic latitude&quot;, NORTH], \n" + "  AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]");
    featureTypeBody.setSrs("EPSG:4326");
    featureTypeBody.setEnabled(TRUE);
    featureTypeBody.setTitle("layer_test");
    featureTypeBody.setName("test");
    GPGeoserverNativeBoundingBox nativeBoundingBox = new GPGeoserverNativeBoundingBox();
    nativeBoundingBox.setMinx(-74.0118315772888);
    nativeBoundingBox.setMaxx(-74.00153046439813);
    nativeBoundingBox.setMiny(40.70754683896324);
    nativeBoundingBox.setMaxy(40.719885123828675);
    nativeBoundingBox.setCrs("EPSG:4326");
    featureTypeBody.setNativeBoundingBox(nativeBoundingBox);
    GPGeoserverLatLonBoundingBox latLonBoundingBox = new GPGeoserverLatLonBoundingBox();
    latLonBoundingBox.setMinx(-74.0118315772888);
    latLonBoundingBox.setMaxx(-74.00857344353275);
    latLonBoundingBox.setMiny(40.70754683896324);
    latLonBoundingBox.setMaxy(40.711945649065406);
    latLonBoundingBox.setCrs("EPSG:4326");
    featureTypeBody.setLatLonBoundingBox(latLonBoundingBox);
    IGPFeatureTypeAttribute featureTypeAttribute = new GPFeatureTypeAttribute();
    featureTypeAttribute.setName("the_geom");
    featureTypeAttribute.setBinding("org.locationtech.jts.geom.Point");
    featureTypeAttribute.setNillable(TRUE);
    featureTypeAttribute.setMinOccurs(0);
    featureTypeAttribute.setMinOccurs(1);
    IGPFeatureTypeAttributes featureTypeAttributes = new GPFeatureTypeAttributes();
    featureTypeAttributes.setValues(asList(featureTypeAttribute));
    featureTypeBody.setAttributes(featureTypeAttributes);
    createFeatureTypeRequest.withFeatureTypeBody(featureTypeBody);
    logger.info("################{}\n", createFeatureTypeRequest.getResponse());
}
Also used : GPGeoserverNativeBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverNativeBoundingBox) GPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttribute) IGPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttribute) IGPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.IGPGeoserverFeatureTypeInfo) GPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.GPGeoserverFeatureTypeInfo) IGPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttributes) IGPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttribute) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox) IGPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.IGPGeoserverFeatureTypeInfo) GPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttributes) IGPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttributes) GeoserverCreateFeatureTypeRequest(org.geosdi.geoplatform.connector.geoserver.request.featuretypes.GeoserverCreateFeatureTypeRequest) Ignore(org.junit.Ignore) GeoserverConnectorTest(org.geosdi.geoplatform.geoserver.GeoserverConnectorTest) Test(org.junit.Test)

Example 3 with GPGeoserverLatLonBoundingBox

use of org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox in project geo-platform by geosdi.

the class GPGeoserverCoverageInfoJacksonTest method toCoverageInfo.

/**
 * @return {@link GPGeoserverCoverageInfo}
 */
public static GPGeoserverCoverageInfo toCoverageInfo() {
    GPGeoserverCoverageInfo coverageInfo = new GPGeoserverCoverageInfo();
    coverageInfo.setAbstractText("Digital elevation model for the Spearfish region. nsfdem is a Tagged Image File Format with Geographic information");
    coverageInfo.setDefaultInterpolationMethod("nearest neighbor");
    coverageInfo.setEnabled(TRUE);
    coverageInfo.setTitle("Spearfish elevation");
    coverageInfo.setGrid(toCoverageGrid());
    IGPCoverageInterpolationMethod interpolationMethod = new GPCoverageInterpolationMethod();
    interpolationMethod.setValues(iterate(0, n -> n + 1).limit(15).boxed().map(String::valueOf).collect(toList()));
    coverageInfo.setInterpolationMethod(interpolationMethod);
    GPGeoserverLatLonBoundingBox latLonBoundingBox = new GPGeoserverLatLonBoundingBox();
    latLonBoundingBox.setMinx(-74.0118315772888);
    latLonBoundingBox.setMaxx(-74.00857344353275);
    latLonBoundingBox.setMiny(40.70754683896324);
    latLonBoundingBox.setMaxy(40.711945649065406);
    latLonBoundingBox.setCrs("EPSG:4326");
    coverageInfo.setLatLonBoundingBox(latLonBoundingBox);
    coverageInfo.setNativeBoundingBox(toNativeBoundingBox());
    coverageInfo.setKeywords(toKeyword());
    coverageInfo.setMetadata(toMapParams());
    coverageInfo.setNativeCRS(new GPGeoserverCRS("PROJCS[\\\"NAD27 / UTM zone 13N\\\", \\n  GEOGCS[\\\"NAD27\\\", \\n   " + " DATUM[\\\"North American Datum 1927\\\", \\n      " + "SPHEROID[\\\"Clarke 1866\\\", 6378206.4, 294.9786982138982, AUTHORITY[\\\"EPSG\\\",\\\"7008\\\"]], \\n   " + "   TOWGS84[2.478, 149.752, 197.726, 0.526, -0.498, 0.501, 0.685], \\n    " + "  AUTHORITY[\\\"EPSG\\\",\\\"6267\\\"]], \\n    " + "PRIMEM[\\\"Greenwich\\\", 0.0, AUTHORITY[\\\"EPSG\\\",\\\"8901\\\"]], \\n   " + " UNIT[\\\"degree\\\", 0.017453292519943295], \\n    AXIS[\\\"Geodetic longitude\\\", EAST], \\n   " + " AXIS[\\\"Geodetic latitude\\\", NORTH], \\n    AUTHORITY[\\\"EPSG\\\",\\\"4267\\\"]], \\n " + " PROJECTION[\\\"Transverse_Mercator\\\"], \\n  PARAMETER[\\\"central_meridian\\\", -105.0], \\n" + "  PARAMETER[\\\"latitude_of_origin\\\", 0.0], \\n  PARAMETER[\\\"scale_factor\\\", 0.9996], \\n " + " PARAMETER[\\\"false_easting\\\", 500000.0], \\n  PARAMETER[\\\"false_northing\\\", 0.0], \\n " + " UNIT[\\\"m\\\", 1.0], \\n  AXIS[\\\"Easting\\\", EAST], \\n  AXIS[\\\"Northing\\\", NORTH], \\n " + " AUTHORITY[\\\"EPSG\\\",\\\"26713\\\"]]", "projected"));
    coverageInfo.setNativeFormat("GeoTIFF");
    coverageInfo.setNativeName("sfdem");
    coverageInfo.setSrs("EPSG:26713");
    coverageInfo.setResponseSRS(toResponseSRS());
    GPGeoserverRequestSRS requestSRS = new GPGeoserverRequestSRS();
    requestSRS.setValues(iterate(0, n -> n + 1).limit(15).boxed().map(String::valueOf).collect(toList()));
    coverageInfo.setRequestSRS(requestSRS);
    GPGeoserverCoverageStoreInfo coverageStoreInfo = new GPGeoserverCoverageStoreInfo();
    coverageStoreInfo.setHref("http://localhost:/geoserver/restng/workspaces/sf/coveragestores/sfdem.json");
    coverageStoreInfo.setName("sf:sfdem");
    coverageInfo.setStore(coverageStoreInfo);
    IGPGeoserverSupportedFormat supportedFormat = new GPGeoserverSupportedFormat();
    supportedFormat.setFormats(of("ARCGRID", "IMAGEMOSAIC", "GTOPO30", "GEOTIFF", "GIF", "PNG", "JPEG", "TIFF").collect(toList()));
    coverageInfo.setSupportedFormats(supportedFormat);
    coverageInfo.setPolicy(FORCE_DECLARED);
    return coverageInfo;
}
Also used : MethodSorters(org.junit.runners.MethodSorters) GPGeoserverMetadataParamJacksonTest.toMapParams(org.geosdi.geoplatform.connector.jackson.GPGeoserverMetadataParamJacksonTest.toMapParams) LoggerFactory(org.slf4j.LoggerFactory) GPGeoserverCoverageInfo(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.GPGeoserverCoverageInfo) IGPCoverageInterpolationMethod(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.interpolation.IGPCoverageInterpolationMethod) FORCE_DECLARED(org.geosdi.geoplatform.connector.geoserver.model.projection.GPProjectionPolicy.FORCE_DECLARED) GPGeoserverNativeBoundingBoxJacksonTest.toNativeBoundingBox(org.geosdi.geoplatform.connector.jackson.GPGeoserverNativeBoundingBoxJacksonTest.toNativeBoundingBox) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox) GPGeoserverSupportedFormat(org.geosdi.geoplatform.connector.geoserver.model.format.GPGeoserverSupportedFormat) GPGeoserverCRS(org.geosdi.geoplatform.connector.geoserver.model.crs.GPGeoserverCRS) File.separator(java.io.File.separator) GPGeoserverCoverageStoreInfo(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.store.GPGeoserverCoverageStoreInfo) Logger(org.slf4j.Logger) GPCoverageInterpolationMethod(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.interpolation.GPCoverageInterpolationMethod) Stream.of(java.util.stream.Stream.of) Test(org.junit.Test) GPCoverageGridJacksonTest.toCoverageGrid(org.geosdi.geoplatform.connector.jackson.GPCoverageGridJacksonTest.toCoverageGrid) GPGeoserverResponseSRSJacksonTest.toResponseSRS(org.geosdi.geoplatform.connector.jackson.GPGeoserverResponseSRSJacksonTest.toResponseSRS) JACKSON_JAXB_XML_SUPPORT(org.geosdi.geoplatform.connector.geoserver.styles.sld.GeoserverStyleSLDV100Request.JACKSON_JAXB_XML_SUPPORT) GPGeoserverJacksonTest.jacksonSupport(org.geosdi.geoplatform.connector.jackson.GPGeoserverJacksonTest.jacksonSupport) File(java.io.File) Collectors.joining(java.util.stream.Collectors.joining) IGPGeoserverSupportedFormat(org.geosdi.geoplatform.connector.geoserver.model.format.IGPGeoserverSupportedFormat) Collectors.toList(java.util.stream.Collectors.toList) GPGeoserverKeywordJacksonTest.toKeyword(org.geosdi.geoplatform.connector.jackson.GPGeoserverKeywordJacksonTest.toKeyword) IntStream.iterate(java.util.stream.IntStream.iterate) FixMethodOrder(org.junit.FixMethodOrder) TRUE(java.lang.Boolean.TRUE) GPGeoserverRequestSRS(org.geosdi.geoplatform.connector.geoserver.model.srs.GPGeoserverRequestSRS) IGPGeoserverSupportedFormat(org.geosdi.geoplatform.connector.geoserver.model.format.IGPGeoserverSupportedFormat) GPGeoserverCoverageInfo(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.GPGeoserverCoverageInfo) GPGeoserverCoverageStoreInfo(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.store.GPGeoserverCoverageStoreInfo) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox) GPGeoserverRequestSRS(org.geosdi.geoplatform.connector.geoserver.model.srs.GPGeoserverRequestSRS) IGPCoverageInterpolationMethod(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.interpolation.IGPCoverageInterpolationMethod) GPCoverageInterpolationMethod(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.interpolation.GPCoverageInterpolationMethod) GPGeoserverSupportedFormat(org.geosdi.geoplatform.connector.geoserver.model.format.GPGeoserverSupportedFormat) IGPGeoserverSupportedFormat(org.geosdi.geoplatform.connector.geoserver.model.format.IGPGeoserverSupportedFormat) IGPCoverageInterpolationMethod(org.geosdi.geoplatform.connector.geoserver.model.workspace.coverages.interpolation.IGPCoverageInterpolationMethod) GPGeoserverCRS(org.geosdi.geoplatform.connector.geoserver.model.crs.GPGeoserverCRS)

Example 4 with GPGeoserverLatLonBoundingBox

use of org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox in project geo-platform by geosdi.

the class GPGeoserverFeatureTypeInfoJacksonTest method toFeatureTypeInfo.

/**
 * @return {@link GPGeoserverFeatureTypeInfo}
 */
public static GPGeoserverFeatureTypeInfo toFeatureTypeInfo() {
    GPGeoserverFeatureTypeInfo featureType = new GPGeoserverFeatureTypeInfo();
    featureType.setNativeCRS("GEOGCS[&quot;WGS 84&quot;, \n" + "  DATUM[&quot;World Geodetic System 1984&quot;, \n" + "    SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], \n" + "    AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], \n" + "  PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], \n" + "  UNIT[&quot;degree&quot;, 0.017453292519943295], \n" + "  AXIS[&quot;Geodetic longitude&quot;, EAST], \n" + "  AXIS[&quot;Geodetic latitude&quot;, NORTH], \n" + "  AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]");
    featureType.setSrs("EPSG:4326");
    featureType.setEnabled(TRUE);
    featureType.setTitle("layer_test");
    featureType.setName("test");
    featureType.setAbstractText("ABSTRACT_TEXT");
    featureType.setNativeBoundingBox(toNativeBoundingBox());
    GPGeoserverLatLonBoundingBox latLonBoundingBox = new GPGeoserverLatLonBoundingBox();
    latLonBoundingBox.setMinx(-74.0118315772888);
    latLonBoundingBox.setMaxx(-74.00857344353275);
    latLonBoundingBox.setMiny(40.70754683896324);
    latLonBoundingBox.setMaxy(40.711945649065406);
    latLonBoundingBox.setCrs("EPSG:4326");
    featureType.setLatLonBoundingBox(latLonBoundingBox);
    featureType.setAttributes(toFeatureTypeAttributes(15));
    featureType.setDataLinks(toDataLinks(20));
    featureType.setMetadataLinks(toMetadataLinks(25));
    featureType.setMetadata(toMapParams());
    featureType.setProjectionPolicy(FORCE_DECLARED);
    featureType.setMaxFeatures(40);
    featureType.setKeywords(toKeyword());
    GPGeoserverFeatureTypesStoreInfo featureTypesStoreInfo = new GPGeoserverFeatureTypesStoreInfo();
    featureTypesStoreInfo.setName("tiger:nyc");
    featureTypesStoreInfo.setHref("http://localhost:8080/geoserver/rest/workspaces/tiger/datastores/nyc.xml");
    featureType.setStore(featureTypesStoreInfo);
    featureType.setResponseSRS(toResponseSRS());
    return featureType;
}
Also used : GPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.GPGeoserverFeatureTypeInfo) GPGeoserverFeatureTypesStoreInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.GPGeoserverFeatureTypesStoreInfo) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox)

Example 5 with GPGeoserverLatLonBoundingBox

use of org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox in project geo-platform by geosdi.

the class GPGeoserverFeatureTypesConnectorTest method f_createFeatureTypeTest.

@Test
public void f_createFeatureTypeTest() throws Exception {
    GeoserverCreateFeatureTypeRequest createFeatureTypeRequest = geoserverConnectorStoreV2_21_x.createFeatureTypeRequest();
    createFeatureTypeRequest.withWorkspace("topp").withStore("Test");
    IGPGeoserverFeatureTypeInfo featureTypeBody = new GPGeoserverFeatureTypeInfo();
    featureTypeBody.setNativeCRS("GEOGCS[&quot;WGS 84&quot;, \n" + "  DATUM[&quot;World Geodetic System 1984&quot;, \n" + "    SPHEROID[&quot;WGS 84&quot;, 6378137.0, 298.257223563, AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]], \n" + "    AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]], \n" + "  PRIMEM[&quot;Greenwich&quot;, 0.0, AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]], \n" + "  UNIT[&quot;degree&quot;, 0.017453292519943295], \n" + "  AXIS[&quot;Geodetic longitude&quot;, EAST], \n" + "  AXIS[&quot;Geodetic latitude&quot;, NORTH], \n" + "  AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]");
    featureTypeBody.setSrs("EPSG:4326");
    featureTypeBody.setEnabled(TRUE);
    featureTypeBody.setTitle("layer_test");
    featureTypeBody.setName("test");
    GPGeoserverNativeBoundingBox nativeBoundingBox = new GPGeoserverNativeBoundingBox();
    nativeBoundingBox.setMinx(-74.0118315772888);
    nativeBoundingBox.setMaxx(-74.00153046439813);
    nativeBoundingBox.setMiny(40.70754683896324);
    nativeBoundingBox.setMaxy(40.719885123828675);
    nativeBoundingBox.setCrs("EPSG:4326");
    featureTypeBody.setNativeBoundingBox(nativeBoundingBox);
    GPGeoserverLatLonBoundingBox latLonBoundingBox = new GPGeoserverLatLonBoundingBox();
    latLonBoundingBox.setMinx(-74.0118315772888);
    latLonBoundingBox.setMaxx(-74.00857344353275);
    latLonBoundingBox.setMiny(40.70754683896324);
    latLonBoundingBox.setMaxy(40.711945649065406);
    latLonBoundingBox.setCrs("EPSG:4326");
    featureTypeBody.setLatLonBoundingBox(latLonBoundingBox);
    IGPFeatureTypeAttribute featureTypeAttribute = new GPFeatureTypeAttribute();
    featureTypeAttribute.setName("the_geom");
    featureTypeAttribute.setBinding("org.locationtech.jts.geom.Point");
    featureTypeAttribute.setNillable(TRUE);
    featureTypeAttribute.setMinOccurs(0);
    featureTypeAttribute.setMinOccurs(1);
    IGPFeatureTypeAttributes featureTypeAttributes = new GPFeatureTypeAttributes();
    featureTypeAttributes.setValues(asList(featureTypeAttribute));
    featureTypeBody.setAttributes(featureTypeAttributes);
    createFeatureTypeRequest.withFeatureTypeBody(featureTypeBody);
    logger.info("@@@@@@@@@@@@@@@@@@@@@@@@@@@@CREATE_FEATURE_TYPE_RESPONSE : {}\n", createFeatureTypeRequest.getResponse());
}
Also used : GPGeoserverNativeBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverNativeBoundingBox) GPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttribute) IGPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttribute) IGPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.IGPGeoserverFeatureTypeInfo) GPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.GPGeoserverFeatureTypeInfo) IGPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttributes) IGPFeatureTypeAttribute(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttribute) GPGeoserverLatLonBoundingBox(org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox) IGPGeoserverFeatureTypeInfo(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.IGPGeoserverFeatureTypeInfo) GPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttributes) IGPFeatureTypeAttributes(org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttributes) GeoserverCreateFeatureTypeRequest(org.geosdi.geoplatform.connector.geoserver.request.featuretypes.GeoserverCreateFeatureTypeRequest) Test(org.junit.Test) GPBaseGeoserverConnectorStoreTest(org.geosdi.geoplatform.connector.store.GPBaseGeoserverConnectorStoreTest)

Aggregations

GPGeoserverLatLonBoundingBox (org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverLatLonBoundingBox)8 GPGeoserverFeatureTypeInfo (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.GPGeoserverFeatureTypeInfo)5 Test (org.junit.Test)5 GPGeoserverNativeBoundingBox (org.geosdi.geoplatform.connector.geoserver.model.bbox.GPGeoserverNativeBoundingBox)4 IGPGeoserverFeatureTypeInfo (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.IGPGeoserverFeatureTypeInfo)4 GPFeatureTypeAttribute (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttribute)4 GPFeatureTypeAttributes (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.GPFeatureTypeAttributes)4 IGPFeatureTypeAttribute (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttribute)4 IGPFeatureTypeAttributes (org.geosdi.geoplatform.connector.geoserver.model.featuretypes.attribute.IGPFeatureTypeAttributes)4 GeoserverCreateFeatureTypeRequest (org.geosdi.geoplatform.connector.geoserver.request.featuretypes.GeoserverCreateFeatureTypeRequest)4 GPGeoserverLayerGroupBody (org.geosdi.geoplatform.connector.geoserver.model.layergroups.GPGeoserverLayerGroupBody)2 GPGeoserverLayerGroupPublishables (org.geosdi.geoplatform.connector.geoserver.model.layergroups.publishables.GPGeoserverLayerGroupPublishables)2 GPGeoserverLayerPublished (org.geosdi.geoplatform.connector.geoserver.model.layergroups.publishables.GPGeoserverLayerPublished)2 File (java.io.File)1 File.separator (java.io.File.separator)1 TRUE (java.lang.Boolean.TRUE)1 Collectors.joining (java.util.stream.Collectors.joining)1 Collectors.toList (java.util.stream.Collectors.toList)1 IntStream.iterate (java.util.stream.IntStream.iterate)1 Stream.of (java.util.stream.Stream.of)1