Examples of prefixedName()


Examples of org.geoserver.catalog.CoverageInfo.prefixedName()

        CoverageInfo ci = (CoverageInfo) context;
        DimensionInfo time = ci.getMetadata().get(ResourceInfo.TIME, DimensionInfo.class);
        if (time == null) {
            LOGGER.log(Level.FINE, "We received a coverage info that has no " +
                "associated time, cannot add EO metadata to it: "+ ci.prefixedName());
            return;
        }
        GridCoverage2DReader reader = (GridCoverage2DReader) ci.getGridCoverageReader(null, null);
        String coverageId = NCNameResourceCodec.encode(ci);
        WCSDimensionsHelper dimensionHelper = new WCSDimensionsHelper(time, reader, coverageId);
View Full Code Here

Examples of org.geoserver.catalog.CoverageInfo.prefixedName()

                    handleCoverageSummary(cv);
                    commit();
                } catch (Exception e) {
                    if (skipMisconfigured) {
                        reset();
                        LOGGER.log(Level.SEVERE, "Skipping coverage " + cv.prefixedName()
                                + " as its capabilities generation failed", e);
                    } else {
                        throw new RuntimeException("Capabilities document generation failed on coverage "
                                + cv.prefixedName(), e);
                    }
View Full Code Here

Examples of org.geoserver.catalog.CoverageInfo.prefixedName()

                        reset();
                        LOGGER.log(Level.SEVERE, "Skipping coverage " + cv.prefixedName()
                                + " as its capabilities generation failed", e);
                    } else {
                        throw new RuntimeException("Capabilities document generation failed on coverage "
                                + cv.prefixedName(), e);
                    }
                }
            }
           
            if(extensions != null && extensions.size() > 0) {
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.prefixedName()

                if (aliasIdx >= 0) {
                    result.add(aliasIdx);
                } else {
                    for (int i = 0; i < featureTypes.size(); i++) {
                        FeatureTypeInfo ft = featureTypes.get(i);
                        if (typeName.equals(ft.prefixedName()) || typeName.equals(ft.getName())) {
                            result.add(i);
                            break;
                        }
                    }
                }
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.prefixedName()

        final List<FeatureTypeInfo> enabledTypes = getCatalog().getFeatureTypes();
        for (Iterator<FeatureTypeInfo> it = enabledTypes.iterator(); it.hasNext();) {
            FeatureTypeInfo ft = it.next();
            if (ft.enabled()) {
                String prefixedName = ft.prefixedName();

                String xpathExpr = "/wfs:WFS_Capabilities/wfs:FeatureTypeList/"
                        + "wfs:FeatureType/wfs:Name[text()=\"" + prefixedName + "\"]";

                XMLAssert.assertXpathExists(xpathExpr, doc);
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.prefixedName()

            // for each enabled type, check we added the otherSRS
            final List<FeatureTypeInfo> enabledTypes = getCatalog().getFeatureTypes();
            for (Iterator<FeatureTypeInfo> it = enabledTypes.iterator(); it.hasNext();) {
                FeatureTypeInfo ft = it.next();
                if (ft.enabled()) {
                    String prefixedName = ft.prefixedName();
   
                    String base = "/wfs:WFS_Capabilities/wfs:FeatureTypeList/"
                            + "wfs:FeatureType[wfs:Name =\"" + prefixedName + "\"]";
                    XMLAssert.assertXpathExists(base, doc);
                    // we generate the other SRS only if it's not equal to native
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.prefixedName()

            // for each enabled type, check we added the otherSRS
            final List<FeatureTypeInfo> enabledTypes = getCatalog().getFeatureTypes();
            for (Iterator<FeatureTypeInfo> it = enabledTypes.iterator(); it.hasNext();) {
                FeatureTypeInfo ft = it.next();
                if (ft.enabled()) {
                    String prefixedName = ft.prefixedName();
   
                    String base = "//wfs:FeatureType[wfs:Name =\"" + prefixedName + "\"]";
                    XMLAssert.assertXpathExists(base, doc);
                    // we generate the other SRS only if it's not equal to native
                    boolean wgs84Native = "EPSG:4326".equals(ft.getSRS());
View Full Code Here

Examples of org.geoserver.catalog.FeatureTypeInfo.prefixedName()

        @Override
        public void marshal(Object source, HierarchicalStreamWriter writer,
                MarshallingContext context) {
            FeatureTypeInfo ft = (FeatureTypeInfo) source;
            writer.startNode("name");
            writer.setValue(ft.prefixedName());
            writer.endNode();
            StoreInfo store = ft.getStore();
            WorkspaceInfo ws = store.getWorkspace();
            encodeLink(
                    "/workspaces/" + encode(ws.getName()) + "/datastores/"
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.prefixedName()

        LayerGroupInfo localGroup = factory.createLayerGroup();
        localGroup.setName("localGroup");
        localGroup.setWorkspace(workspace);
        localGroup.getLayers().add(catalog.getLayerByName("GenericEntity"));
        catalog.add(localGroup);
        String localName = localGroup.prefixedName();
        assertEquals("sf:localGroup", localName);

        assertEquals(2, catalog.getLayerGroups().size());

        LocalWorkspace.set(workspace2);
View Full Code Here

Examples of org.geoserver.catalog.LayerGroupInfo.prefixedName()

        group.setTitle("This is the title");
        group.setAbstract("This is the abstract");
        getCatalog().add(group);
        try {
            PreviewLayerProvider provider = new PreviewLayerProvider();
            PreviewLayer pl = getPreviewLayer(provider, group.prefixedName());
            assertNotNull(pl);
            assertEquals("This is the title", pl.getTitle());
            assertEquals("This is the abstract", pl.getAbstract());
        } finally {
            getCatalog().remove(group);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.