Package org.geoserver.web.wicket

Examples of org.geoserver.web.wicket.CRSPanel$WKTPanel


        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"));
        nativeCRS.setReadOnly(true);
        refForm.add(nativeCRS);
        declaredCRS = new CRSPanel("declaredSRS",
                new SRSToCRSModel(new PropertyModel(model, "sRS")));
        declaredCRS.setRequired(true);
        refForm.add(declaredCRS);

        projectionPolicy = new DropDownChoice("srsHandling", new PropertyModel(model,
View Full Code Here


        envelopePanel.setOutputMarkupId( true );
       
        CoordinateReferenceSystem crs = layerGroup.getBounds() != null
            ? layerGroup.getBounds().getCoordinateReferenceSystem() : null;

        form.add(crsPanel = (crs != null) ? new CRSPanel( "crs", crs ) : new CRSPanel( "crs", new Model() ));
        crsPanel.setOutputMarkupId( true );
        crsPanel.setRequired(true);
       
        form.add(new GeoServerAjaxFormLink( "generateBounds") {
            @Override
View Full Code Here

                    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);
                } else {
                    ComplexInputPanel input = new ComplexInputPanel("paramValue", pv, 0);
                    item.add(input);
View Full Code Here

        sizeContainer.setVisible(String.class.equals(attribute.getBinding()));

        crsContainer = new WebMarkupContainer("crsContainer");
        crsContainer.setOutputMarkupId(true);
        form.add(crsContainer);
        crsContainer.add(crsField = new CRSPanel("crs"));
        crsContainer.setVisible(attribute.getBinding() != null
                && Geometry.class.isAssignableFrom(attribute.getBinding()));

        SubmitLink submit = new SubmitLink("save") {
            @Override
View Full Code Here

        // the format chooser
        formats = new DropDownChoice<String>("format", new PropertyModel(getCoverage, "outputFormat"), GetCoverageRequest.FORMATS);
        details.add(formats);
       
        // the target CRS
        targetCRS = new CRSPanel("targetCRS", new PropertyModel(getCoverage, "targetCRS"));
        details.add(targetCRS);
       
        // the target grid to world (for WCS 1.1 ones)
        buildAffinePanel();
       
View Full Code Here

        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"));
        nativeCRS.setReadOnly(true);
        refForm.add(nativeCRS);
        declaredCRS = new CRSPanel("declaredSRS",
                new SRSToCRSModel(new PropertyModel(model, "sRS")));
        declaredCRS.setRequired(true);
        refForm.add(declaredCRS);

        projectionPolicy = new DropDownChoice("srsHandling", new PropertyModel(model,
View Full Code Here

                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()) {
                    EnumPanel panel = new EnumPanel("paramValue", ((Class<Enum>) pv.getParameter().type),
                            property);
                    item.add(panel);
View Full Code Here

        super(id);
        server = addTextPanel(paramsModel, "server", true);
       
        port = addTextPanel(paramsModel, "port", true);
        SRSToCRSModel srsModel = new SRSToCRSModel(new PropertyModel(paramsModel, "ESPG:4326"));
        epsgcode = new CRSPanel("epsgcode", srsModel);
        epsgcode.setModelObject(DEFAULT_CRS);
        add(epsgcode);
       
        user = addTextPanel(paramsModel, "user", "Postgis user", true);
        password = addPasswordPanel(paramsModel, "password");
View Full Code Here

        public ReprojectionPanel(String id, ReprojectTransform transform) {
            super(id);

            this.transform = transform;

            add(new CRSPanel("from", new PropertyModel(transform, "source")));
            add(new CRSPanel("to", new PropertyModel(transform, "target")));
        }
View Full Code Here

            super(id, model);

            Form form = new Form("form");
            add(form);

            form.add(new CRSPanel("crs",
                new SRSToCRSModel(new PropertyModel(model, "layer.resource.sRS"))) {
                @Override
                protected CoordinateReferenceSystem fromSRS(String srs) {
                    try {
                        return CRS.decode(srs);
View Full Code Here

TOP

Related Classes of org.geoserver.web.wicket.CRSPanel$WKTPanel

Copyright © 2018 www.massapicom. 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.