Package org.geotools.util

Examples of org.geotools.util.SimpleInternationalString


    }

    public InternationalString getDescriptionText(String code) throws NoSuchAuthorityCodeException,
            FactoryException {
        if(code.equals("EPSG:" + GENERIC_2D_CODE)) {
        return new SimpleInternationalString(
                "A two-dimensional wildcard coordinate system with X,Y axis in meters");
        } else {
            throw noSuchAuthorityException(code);
        }
    }
View Full Code Here


    }

    public InternationalString getDescription(Name name) {
        DescribeProcess info = getProcessDescription(name);
        if (info != null) {
            return new SimpleInternationalString(info.description());
        } else {
            return null;
        }
    }
View Full Code Here

            fillParameterMetadata(meta, metadata);
        }

        int min = info.primary() ? 0 : 1;
        Parameter resultParam = new Parameter(info.name(), resultType,
                new SimpleInternationalString(info.name()), new SimpleInternationalString(
                        info.description()), min > 0, min, 1, null, metadata);
        result.put(resultParam.key, resultParam);
    }
View Full Code Here

    }

    public InternationalString getTitle(Name name) {
        DescribeProcess info = getProcessDescription(name);
        if (info != null) {
            return new SimpleInternationalString(info.title());
        } else {
            return null;
        }
    }
View Full Code Here

        }
       
       
        // finally build the parameter
        if (info != null) {
            return new Parameter(info.name(), type, new SimpleInternationalString(info.name()),
                    new SimpleInternationalString(info.description()), min > 0, min, max, defaultValue,
                    metadata);
        } else {
            return new Parameter("arg" + i, type, new SimpleInternationalString("Argument " + i),
                    new SimpleInternationalString("Input " + type.getName() + " value"), min > 0,
                    min, max, defaultValue, metadata);
        }
    }
View Full Code Here

                final Date   date    = result.getDate  (2);
                final String engine  = metadata.getDatabaseProductName();
                final CitationImpl c = new CitationImpl(Citations.EPSG);
                c.getAlternateTitles().add(Vocabulary.formatInternational(
                        VocabularyKeys.DATA_BASE_$3, "EPSG", version, engine));
                c.setEdition(new SimpleInternationalString(version));
                c.setEditionDate(date);
                authority = (Citation) c.unmodifiable();
                hints.put(Hints.VERSION, new Version(version))// For getImplementationHints()
            } else {
                authority = Citations.EPSG;
View Full Code Here

        IdentifiedObject identifiedObject = createObject(code);
    final Identifier identifier = identifiedObject.getName();
        if (identifier instanceof GenericName) {
            return ((GenericName) identifier).toInternationalString();
        }
        return new SimpleInternationalString( identifier.getCode() );
    }
View Full Code Here

            while (result.next()) {
                ExtentImpl extent = null;
                final String description = result.getString(1);
                if (description != null) {
                    extent = new ExtentImpl();
                    extent.setDescription(new SimpleInternationalString(description));
                }
                final double ymin = result.getDouble(2);
                if (!result.wasNull()) {
                    final double ymax = result.getDouble(3);
                    if (!result.wasNull()) {
View Full Code Here

       
        InternationalString title = null, abstrct = null;
       
        //<xsd:element minOccurs="0" name="Title" type="xsd:string"/>
        if (node.hasChild("Title")) {
            title = new SimpleInternationalString((String) node.getChildValue("Title"));
        }
        //<xsd:element minOccurs="0" name="Abstract" type="xsd:string"/>
        if (node.hasChild("Abstract")) {
            abstrct = new SimpleInternationalString((String) node.getChildValue("Abstract"));
        }
       
        return styleFactory.description(title, abstrct);
    }
View Full Code Here

    /**
     * Returns the CRS name for the given code.
     */
    public InternationalString getDescriptionText(final String code) throws FactoryException {
        final Code c = new Code(code, ProjectedCRS.class);
        return new SimpleInternationalString(findFactlet(c).getName());
    }
View Full Code Here

TOP

Related Classes of org.geotools.util.SimpleInternationalString

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.