Package org.geotools.referencing.factory

Examples of org.geotools.referencing.factory.ReferencingFactoryContainer


          parameters.parameter("central_meridian").setValue(0.0);
          parameters.parameter("latitude_of_origin").setValue(-71.0);
          parameters.parameter("scale_factor").setValue(1);
          parameters.parameter("false_easting").setValue(0.0);
          parameters.parameter("false_northing").setValue(0.0);
          final ReferencingFactoryContainer factories =
              ReferencingFactoryContainer.instance(null);
          final Map<String,String> properties = Collections.singletonMap("name",
              "WGS 84 / Antartic Polar Stereographic");

          return factories.createProjectedCRS(properties, geoCRS,null, parameters, cartCS);
        }

        if (crsDescription.endsWith("GEOGRAPHIC")) {
          // in case I do not have a polar stereographic I build my
          // own CRS using either the supplied wkt
View Full Code Here


        hints.put(Hints.DATUM_FACTORY,          datumFactory);
        hints.put(Hints.CS_FACTORY,             csFactory);
        hints.put(Hints.CRS_FACTORY,            crsFactory);
        hints.put(Hints.MATH_TRANSFORM_FACTORY, mtFactory);

        final ReferencingFactoryContainer container = new ReferencingFactoryContainer(hints);
        assertSame(datumFactory, container.getDatumFactory());
        assertSame(csFactory,    container.getCSFactory());
        assertSame(crsFactory,   container.getCRSFactory());
        assertSame(mtFactory,    container.getMathTransformFactory());

        final Conversion conversion = new DefiningConversion("GBN grid", param);
        final ProjectedCRS projCRS = crsFactory.createProjectedCRS(
                name("Great_Britian_National_Grid"), geogCRS, conversion, cartCS);
        out.println();
View Full Code Here

TOP

Related Classes of org.geotools.referencing.factory.ReferencingFactoryContainer

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.