Package org.geotools.util

Examples of org.geotools.util.SimpleInternationalString


         * @param type
         * @param description
         * @param required
         */
        public WFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue) {
            super(key, type, new SimpleInternationalString(title), new SimpleInternationalString(description), false, -1, -1, defaultValue, null);
            this.defaultValue = defaultValue;
        }
View Full Code Here


            this.defaultValue = defaultValue;
        }

        public WFSFactoryParam(String key, Class<T> type, String title, String description, T defaultValue,
                Object... metadata) {
            super(key, type, new SimpleInternationalString(title), new SimpleInternationalString(description), false, -1, -1, defaultValue, new KVP(metadata));
            this.defaultValue = defaultValue;
        }
View Full Code Here

      final GridSampleDimension[] sampleDimensions = coverage.getSampleDimensions();
      final HashSet<SampleDimension> samples = new HashSet<SampleDimension>(Arrays.asList(sampleDimensions));
      final WavelengthAxis<Double> axis=WavelengthAxis.RGB;
      final List<Axis<?,?>> axes= new ArrayList<Axis<?,?>>();
      axes.add(axis);
      final FieldType field = new DefaultFieldType( new NameImpl("RGB-FiledType"), new SimpleInternationalString("RGB image field"), Dimensionless.UNIT,axes, samples);
      final DefaultRangeType range = new DefaultRangeTypenew NameImpl("RGB-RangeType")new SimpleInternationalString("RGB range field"), Collections.singleton(field) )
      return range;
    }
View Full Code Here

        return null;
    }

    private static SimpleScalarAxis createSimpleScalarAxis(final Name productName, final InternationalString productDescription) {
        return new SimpleScalarAxis(new NameImpl(new StringBuilder("axis:").append(productName.toString()).toString()),
                new SimpleInternationalString(new StringBuilder("axis for product:").append(
                        productDescription.toString()).toString()));
    }
View Full Code Here

    }

    private BaseFieldType wrappedFieldType;

    public HDF4ProductFieldType(final String productName, final SampleDimension sd) {
        this(new NameImpl(productName), new SimpleInternationalString(getProduct(productName).getDescription()), getProduct(productName).getUoM(), sd);
    }
View Full Code Here

    // exampleResourceInternationalString end
}

private void exampleSimpleInternationalStirng() {
    // exampleSimpleInternationalStirng start
    SimpleInternationalString greeting = new SimpleInternationalString("Hello World");
   
    System.out.println(greeting); // will output best match to current
    System.out.println(greeting.toString(Locale.FRENCH)); // but since there is only one...
    // exampleSimpleInternationalStirng end
}
View Full Code Here

                                        final String        abbreviation,
                                        final AxisDirection direction,
                                        final Unit<?>       unit)
    {
        this(name>=0 ? Vocabulary.formatInternational(name) :
                new SimpleInternationalString(abbreviation), abbreviation, direction, unit);
        PREDEFINED[PREDEFINED_COUNT++] = this;
    }
View Full Code Here

        if (coverage instanceof AbstractCoverage) {
            final AbstractCoverage source = (AbstractCoverage) coverage;
            this.name = (n != null) ? n : source.name;
            this.crs  = source.crs;
        } else {
            this.name = (n != null) ? n : new SimpleInternationalString(coverage.toString());
            this.crs  = coverage.getCoordinateReferenceSystem();
        }
    }
View Full Code Here

        }
        GregorianCalendar gc = new GregorianCalendar(-4713, 1, 1);
        gc.set(GregorianCalendar.ERA, GregorianCalendar.BC);
        final int julianGre = 15 + 31 * (10 + 12 * 1582);
        Number coordinateValue = 0;
        TemporalCoordinateSystem refSystem = new DefaultTemporalCoordinateSystem(new NamedIdentifier(Citations.CRS, new SimpleInternationalString("Julian calendar")),
                null, gc.getTime(), new SimpleInternationalString("day"));
        if (calDate != null) {
            int[] cal = calDate.getCalendarDate();
            int year = 0;
            int month = 0;
            int day = 0;
View Full Code Here

    public JulianDate dateTrans(DateAndTime dateAndTime) {
        JulianDate response;
        GregorianCalendar gc = new GregorianCalendar(-4713, 1, 1);
        gc.set(GregorianCalendar.ERA, GregorianCalendar.BC);
        final int julianGre = 15 + 31 * (10 + 12 * 1582);
        TemporalCoordinateSystem refSystem = new DefaultTemporalCoordinateSystem(new NamedIdentifier(Citations.CRS, new SimpleInternationalString("Julian calendar")),
                null, gc.getTime(), new SimpleInternationalString("day"));
        Number coordinateValue = 0;
        int year = 0, month = 0, day = 0;
        Number hour = 0, minute = 0, second = 0;
        if (dateAndTime == null) {
            throw new IllegalArgumentException("The DateAndTime cannot be null ! ");
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.