/** * Returns the {@linkplain CSFactory CS factory} singleton. * * @throws FactoryNotFoundException if no factory was found for the requested type. * @throws FactoryRegistryException if the factory can't be obtained for an other reason. */ public CSFactory getCSFactory() throws FactoryRegistryException { return ReferencingFactoryFinder.getCSFactory(hints); }
/** * Returns the {@linkplain CoordinateSystem coordinate system} factory. * * @return The Coordinate System factory. */ public CSFactory getCSFactory() { if (csFactory == null) { synchronized (hints) { csFactory = ReferencingFactoryFinder.getCSFactory(hints()); } } return csFactory; }
/** * Constructs a parser for the specified set of symbols using default factories. * * @param symbols The symbols for parsing and formatting numbers. * @todo Pass hints in argument. */ public Parser(final Symbols symbols) { this( symbols, ReferencingFactoryFinder.getDatumFactory(null), ReferencingFactoryFinder.getCSFactory(null), ReferencingFactoryFinder.getCRSFactory(null), ReferencingFactoryFinder.getMathTransformFactory(null)); }
/** * Returns the {@linkplain CSFactory CS factory} singleton. * * @throws FactoryNotFoundException if no factory was found for the requested type. * @throws FactoryRegistryException if the factory can't be obtained for an other reason. */ public CSFactory getCSFactory() throws FactoryRegistryException { return ReferencingFactoryFinder.getCSFactory(hints); }
/** * Returns the {@linkplain CSFactory CS factory} singleton. * * @throws FactoryNotFoundException if no factory was found for the requested type. * @throws FactoryRegistryException if the factory can't be obtained for an other reason. */ public CSFactory getCSFactory() throws FactoryRegistryException { return ReferencingFactoryFinder.getCSFactory(hints); }
out.println("create Coodinate Reference System....1: "); final DatumFactory datumFactory = ReferencingFactoryFinder.getDatumFactory(null); final CSFactory csFactory = ReferencingFactoryFinder.getCSFactory(null); final CRSFactory crsFactory = ReferencingFactoryFinder.getCRSFactory(null); final MathTransformFactory mtFactory =
try { horizontalCS = ReferencingFactoryFinder.getCSFactory(null) .createEllipsoidalCS(properties, axis0, axis1); } catch (FactoryException e) {
/** * Creates a new instance of GeoTiffMetadata2CRSAdapter * * @param hints * a map of hints to locate the authority and object factories. * (can be null) */ public GeoTiffMetadata2CRSAdapter(Hints hints) { final Hints tempHints = hints != null ? new Hints(hints) : DEFAULT_HINTS; this.hints = (Hints) tempHints.clone(); allAuthoritiesFactory = hints != null ? new AllAuthoritiesFactory(this.hints): DEFAULT_ALLAUTHORITIES_FACTORY; // factory = new ThreadedEpsgFactory(hints); datumObjFactory = ReferencingFactoryFinder.getDatumFactory(this.hints); crsFactory = ReferencingFactoryFinder.getCRSFactory(this.hints); csFactory = ReferencingFactoryFinder.getCSFactory(this.hints); tempHints.put(Hints.DATUM_AUTHORITY_FACTORY, allAuthoritiesFactory); tempHints.put(Hints.CS_FACTORY, csFactory); tempHints.put(Hints.CRS_FACTORY, crsFactory); tempHints.put(Hints.MATH_TRANSFORM_FACTORY, mtFactory); factories = ReferencingFactoryContainer.instance(tempHints); }
final CSFactory csFactory = ReferencingFactoryFinder.getCSFactory(hints); final CRSFactory crsFactory = ReferencingFactoryFinder.getCRSFactory(hints); final DatumFactory datumFactory = ReferencingFactoryFinder.getDatumFactory(hints);