Package org.geotools.referencing.cs

Examples of org.geotools.referencing.cs.DefaultCartesianCS


          "Error when trying to create a PCS using this linear UoM "
              + linearUnit.toString());
    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
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[][] {
View Full Code Here

          "Error when trying to create a PCS using this linear UoM ");
    if (!linearUnit.isCompatible(SI.METER))
      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
View Full Code Here

TOP

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

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.