Package org.geotools.referencing.cs

Examples of org.geotools.referencing.cs.DefaultCoordinateSystemAxis


    static CoordinateSystemAxis getAxis( final String axisName, final AxisDirection direction, final String unitName )
            throws FactoryException {
        if (axisName == null) {
            return null;
        }
        final DefaultCoordinateSystemAxis axisFound = DefaultCoordinateSystemAxis.getPredefined(axisName, direction);
        if (axisFound != null) {
            return axisFound;
        }
   
        /*
 
View Full Code Here


    final Map<String,String> props= new HashMap<String, String>();
    props.put("name", Vocabulary.formatInternational(VocabularyKeys.PROJECTED).toString());
    props.put("alias", Vocabulary.formatInternational(VocabularyKeys.PROJECTED).toString());
    return new DefaultCartesianCS(
                    props,
        new DefaultCoordinateSystemAxis(Vocabulary
            .formatInternational(VocabularyKeys.EASTING), "E",
            AxisDirection.EAST, linearUnit),
        new DefaultCoordinateSystemAxis(Vocabulary
            .formatInternational(VocabularyKeys.NORTHING), "N",
            AxisDirection.NORTH, linearUnit));
  }
View Full Code Here

    /**
     * This test uses use the default implementations to express 7 bands of a landsat image.
     */
    @Test
    public void testLandsatAxis() {
        CoordinateSystemAxis csAxis = new DefaultCoordinateSystemAxis(
                new SimpleInternationalString("light"), "light", AxisDirection.OTHER,
                SI.MICRO(SI.METER));

        DefaultLinearCS lightCS = new DefaultLinearCS("light", csAxis);
        Map<String, Object> datumProperties = new HashMap<String, Object>();
View Full Code Here

    /**
     * This test uses use the default implementations to express 7 bands of a landsat image.
     */
    @Test
    public void testLandsatAxis() {
        CoordinateSystemAxis csAxis = new DefaultCoordinateSystemAxis(
                new SimpleInternationalString("light"), "light", AxisDirection.OTHER,
                SI.MICRO(SI.METER));

        DefaultLinearCS lightCS = new DefaultLinearCS("light", csAxis);
        Map<String, Object> datumProperties = new HashMap<String, Object>();
View Full Code Here

    @Test
    public void testScaleAndSwapAxis() {
        final Unit<Length> cm = SI.CENTI(SI.METER);
        final Unit<Length> mm = SI.MILLI(SI.METER);
        final AbstractCS cs = new DefaultCartesianCS("Test",
              new DefaultCoordinateSystemAxis("y", SOUTH, cm),
              new DefaultCoordinateSystemAxis("x", EAST,  mm));
        Matrix matrix;
        matrix = AbstractCS.swapAndScaleAxis(DefaultCartesianCS.GENERIC_2D, cs);
        assertEquals(new GeneralMatrix(new double[][] {
            {0,  -100,    0},
            {10000,    0},
View Full Code Here

        assertSame(GEODETIC_LATITUDE, getPredefined(GEODETIC_LATITUDE));

        // Tests all constants.
        final DefaultCoordinateSystemAxis[] values = DefaultCoordinateSystemAxis.values();
        for (int i=0; i<values.length; i++) {
            final DefaultCoordinateSystemAxis axis = values[i];
            final String message = "values[" + i + ']';
            assertNotNull(message, axis);
            assertSame(message, axis, getPredefined(axis));
        }
    }
View Full Code Here

      throw new IllegalArgumentException(
          "Error when trying to create a PCS using this linear UoM "
              + linearUnit.toString());
    return new DefaultCartesianCS(Vocabulary.formatInternational(
        VocabularyKeys.PROJECTED).toString(),
        new DefaultCoordinateSystemAxis(Vocabulary
            .formatInternational(VocabularyKeys.EASTING), "E",
            AxisDirection.EAST, linearUnit),
        new DefaultCoordinateSystemAxis(Vocabulary
            .formatInternational(VocabularyKeys.NORTHING), "N",
            AxisDirection.NORTH, linearUnit));
  }
View Full Code Here

TOP

Related Classes of org.geotools.referencing.cs.DefaultCoordinateSystemAxis

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.