1 package org
.argeo
.app
.geo
;
3 import org
.argeo
.api
.cms
.CmsLog
;
4 import org
.geotools
.api
.filter
.FilterFactory
;
5 import org
.geotools
.api
.style
.StyleFactory
;
6 import org
.geotools
.factory
.CommonFactoryFinder
;
9 * Factories initialisation and workarounds for the GeoTools library. The idea
10 * is to code defensively around factory initialisation, API changes, and issues
11 * related to running in an OSGi environment. Rather see {@link GeoUtils} for
12 * functional static utilities.
14 public class GeoTools
{
15 private final static CmsLog log
= CmsLog
.getLog(GeoTools
.class);
17 public final static StyleFactory STYLE_FACTORY
;
18 public final static FilterFactory FILTER_FACTORY
;
22 STYLE_FACTORY
= CommonFactoryFinder
.getStyleFactory();
23 FILTER_FACTORY
= CommonFactoryFinder
.getFilterFactory();
24 } catch (RuntimeException e
) {
25 log
.error("Basic GeoTools initialisation failed, geographical utilities are probably not available", e
);