Examples of EnvelopePanel


Examples of org.geoserver.web.wicket.EnvelopePanel

        final Form refForm = new Form("referencingForm");
        add(refForm);

        // native bbox
        PropertyModel nativeBBoxModel = new PropertyModel(model, "nativeBoundingBox");
        final EnvelopePanel nativeBBox = new EnvelopePanel("nativeBoundingBox", nativeBBoxModel);
        nativeBBox.setOutputMarkupId(true);
        refForm.add(nativeBBox);
        refForm.add(computeNativeBoundsLink(refForm, nativeBBox));

        // lat/lon bbox
        final EnvelopePanel latLonPanel = new EnvelopePanel("latLonBoundingBox", new PropertyModel(
                model, "latLonBoundingBox"));
        latLonPanel.setOutputMarkupId(true);
        latLonPanel.setRequired(true);
        refForm.add(latLonPanel);
        refForm.add(computeLatLonBoundsLink(refForm, nativeBBox, latLonPanel));

        // native srs , declared srs, and srs handling dropdown
        CRSPanel nativeCRS = new CRSPanel("nativeSRS", new PropertyModel(model, "nativeCRS"));
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        name.setRequired(true);
        name.add(new GroupNameValidator());
        form.add(name);
       
        //bounding box
        form.add(envelopePanel = new EnvelopePanel( "bounds" )/*.setReadOnly(true)*/);
        envelopePanel.setRequired(true);
        envelopePanel.setOutputMarkupId( true );
       
        CoordinateReferenceSystem crs = layerGroup.getBounds() != null
            ? layerGroup.getBounds().getCoordinateReferenceSystem() : null;
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

                    literal.setRequired(p.minOccurs > 0);
                    literal.setLabel(new Model(p.key));
                    f.add(literal);
                    item.add(f);
                } else if (pv.isBoundingBox()) {
                    EnvelopePanel envelope = new EnvelopePanel("paramValue", new PropertyModel(pv,
                            "values[0].value"));
                    envelope.setCRSFieldVisible(true);
                    item.add(envelope);
                } else if (pv.isCoordinateReferenceSystem()) {
                    CRSPanel crs = new CRSPanel("paramValue", new PropertyModel(pv,
                            "values[0].value"));
                    item.add(crs);
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        details.setOutputMarkupId(true);
        details.setVisible(false);
        add(details);

        // the envelope chooser
        envelope = new EnvelopePanel("envelope", new PropertyModel(getCoverage, "bounds"));
        envelope.setCRSFieldVisible(true);
        envelope.setCrsRequired(true);
        details.add(envelope);
       
        // the grid panel (for WCS 1.0 requests)
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        name.setRequired(true);
        name.add(new GroupNameValidator());
        form.add(name);
       
        //bounding box
        form.add(envelopePanel = new EnvelopePanel( "bounds" )/*.setReadOnly(true)*/);
        envelopePanel.setRequired(true);
        envelopePanel.setCRSFieldVisible(true);
        envelopePanel.setOutputMarkupId( true );
       
        form.add(new GeoServerAjaxFormLink( "generateBounds") {
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        final Form refForm = new Form("referencingForm");
        add(refForm);

        // native bbox
        PropertyModel nativeBBoxModel = new PropertyModel(model, "nativeBoundingBox");
        final EnvelopePanel nativeBBox = new EnvelopePanel("nativeBoundingBox", nativeBBoxModel);
        nativeBBox.setOutputMarkupId(true);
        refForm.add(nativeBBox);
        refForm.add(computeNativeBoundsLink(refForm, nativeBBox));

        // lat/lon bbox
        final EnvelopePanel latLonPanel = new EnvelopePanel("latLonBoundingBox", new PropertyModel(
                model, "latLonBoundingBox"));
        latLonPanel.setOutputMarkupId(true);
        latLonPanel.setRequired(true);
        refForm.add(latLonPanel);
        refForm.add(computeLatLonBoundsLink(refForm, nativeBBox, latLonPanel));

        // native srs , declared srs, and srs handling dropdown
        CRSPanel nativeCRS = new CRSPanel("nativeSRS", new PropertyModel(model, "nativeCRS"));
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

                item.add(new Label("paramDescription", p.description.toString(Locale.ENGLISH)));
                // TODO: roll out an extension point for these editors
                final PropertyModel property = new PropertyModel(pv,
                        "values[0].value");
                if (pv.isBoundingBox()) {
                    EnvelopePanel envelope = new EnvelopePanel("paramValue", property);
                    envelope.setCRSFieldVisible(true);
                    item.add(envelope);
                } else if (pv.isCoordinateReferenceSystem()) {
                    CRSPanel crs = new CRSPanel("paramValue", property);
                    item.add(crs);
                } else if (pv.isEnum()) {
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

            assertEquals(expected.getMinX(), minx, 1.0E-2);// cm resolution
            assertEquals(expected.getMinY(), miny, 1.0E-2);
            assertEquals(expected.getMaxX(), maxx, 1.0E-2);
            assertEquals(expected.getMaxY(), maxy, 1.0E-2);

            EnvelopePanel envPanel = (EnvelopePanel) tester
                    .getComponentFromLastRenderedPage("gridSetForm:bounds");
            assertNotNull(envPanel.getModelObject());

            ft.setValue("bounds:minX", "-1000000");
            ft.setValue("bounds:minY", "-1000000");
            ft.setValue("bounds:maxX", "1000000");
            ft.setValue("bounds:maxY", "1000000");
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        }

        form.add(wsChoice);

        //bounding box
        form.add(envelopePanel = new EnvelopePanel( "bounds" )/*.setReadOnly(true)*/);
        envelopePanel.setRequired(true);
        envelopePanel.setCRSFieldVisible(true);
        envelopePanel.setCrsRequired(true);
        envelopePanel.setOutputMarkupId( true );
       
View Full Code Here

Examples of org.geoserver.web.wicket.EnvelopePanel

        details.setOutputMarkupId(true);
        details.setVisible(false);
        add(details);

        // the envelope chooser
        envelope = new EnvelopePanel("envelope", new PropertyModel(getCoverage, "bounds"));
        envelope.setCRSFieldVisible(true);
        envelope.setCrsRequired(true);
        details.add(envelope);
       
        // the grid panel (for WCS 1.0 requests)
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.