/** Returns the direct {@linkplain Factory factory} dependencies. */ @Override Collection<? super AuthorityFactory> dependencies() { if (factories != null) { final Set<Object> dependencies = new LinkedHashSet<Object>(8); dependencies.add(factories.getCRSFactory()); dependencies.add(factories.getCSFactory()); dependencies.add(factories.getDatumFactory()); return dependencies; } return super.dependencies(); } }
/** * Forces the initialisation of all factories. Implementation note: we try to create the * factories in typical dependency order (CRS all because it has the greatest chances to depends * on other factories). */ private void initialize() { mtFactory = getMathTransformFactory(); datumFactory = getDatumFactory(); csFactory = getCSFactory(); crsFactory = getCRSFactory(); }
/** * Constructs a parser for the specified set of symbols using the specified set of factories. * * @param symbols The symbols for parsing and formatting numbers. * @param factories The factories to use. */ public Parser(final Symbols symbols, final ReferencingFactoryContainer factories) { this( symbols, factories.getDatumFactory(), factories.getCSFactory(), factories.getCRSFactory(), factories.getMathTransformFactory()); }
try { return FACTORY_CONTAINER .getCSFactory() .createCoordinateSystemAxis(map, axisName, direction, unit); } catch (FactoryException e) {
.getCSFactory() .createTimeCS( csMap,
VerticalCS verticalCS = NetCDFCRSUtilities.FACTORY_CONTAINER .getCSFactory() .createVerticalCS( csMap,
final Map<String, Object> properties = createProperties(an.name, epsg, an.description); final CSFactory factory = factories.getCSFactory(); final CoordinateSystemAxis axis = factory.createCoordinateSystemAxis(
final TimeCS timeCS = NetCDFCRSUtilities.FACTORY_CONTAINER .getCSFactory() .createTimeCS( csMap, getAxis(axisName, getDirection(direction), units));
final int dimension = axis.length; final ReferencingFactoryContainer factories = getFactoryContainer(false); final CSFactory csFactory = factories.getCSFactory(); if (CartesianCS.class.isAssignableFrom(type)) { switch (dimension) {
final Map<String, Object> properties = generateProperties(an.name, epsg, an.description); final CSFactory factory = factories.getCSFactory(); final CoordinateSystemAxis axis = factory.createCoordinateSystemAxis(
final Map<String, Object> properties = final CSFactory factory = factories.getCSFactory(); CoordinateSystem cs = null; if (type.equals("ellipsoidal")) {
final Map<String, Object> properties = final CSFactory factory = factories.getCSFactory(); CoordinateSystem cs = null; if (type.equals("ellipsoidal")) {
final CSFactory csFactory = factories.getCSFactory(); final Map properties = getProperties(axis); axis =
assertSame(csFactory, container.getCSFactory()); assertSame(crsFactory, container.getCRSFactory()); assertSame(mtFactory, container.getMathTransformFactory());
crsName = getTemporaryName(horizontal); final CSFactory csFactory = getCSFactory(); final CRSFactory crsFactory = getCRSFactory(); if (horizontal instanceof GeographicCRS) {
try { return FACTORY_CONTAINER .getCSFactory() .createCoordinateSystemAxis(map, axisName, direction, unit); } catch (FactoryException e) {
final Map<String, String> map = Collections.singletonMap("name", axisName); try { return FACTORY_CONTAINER.getCSFactory().createCoordinateSystemAxis(map, axisName, direction, unit); } catch (FactoryException e) { throw new FactoryException(e.getLocalizedMessage());
VerticalCS verticalCS = UnidataCRSUtilities.FACTORY_CONTAINER.getCSFactory().createVerticalCS(csMap, getAxis(zAxis.getShortName(), getDirection(direction), units));
.getCSFactory() .createTimeCS( csMap,
final TimeCS timeCS = UnidataCRSUtilities.FACTORY_CONTAINER.getCSFactory().createTimeCS(csMap, getAxis(axisName, getDirection(direction), units));