Search in sources :

Example 1 with SosCacheFeederHandler

use of org.n52.sos.ds.SosCacheFeederHandler in project SOS by 52North.

the class SosCacheFeederDAOTest method initCacheFeeder.

@Before
public void initCacheFeeder() {
    instance = new SosCacheFeederHandler();
    SOSHibernateSessionHolder holder = new SOSHibernateSessionHolder();
    holder.setConnectionProvider(this);
    instance.setConnectionProvider(holder);
    GeometryHandler geometryHandler = new GeometryHandler();
    geometryHandler.setAuthority("EPSG");
    geometryHandler.setStorageEpsg(4326);
    geometryHandler.setSpatialDatasource(true);
    geometryHandler.init();
    instance.setGeometryHandler(geometryHandler);
}
Also used : GeometryHandler(org.n52.sos.util.GeometryHandler) SosCacheFeederHandler(org.n52.sos.ds.SosCacheFeederHandler) SOSHibernateSessionHolder(org.n52.series.db.da.sos.SOSHibernateSessionHolder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 SOSHibernateSessionHolder (org.n52.series.db.da.sos.SOSHibernateSessionHolder)1 SosCacheFeederHandler (org.n52.sos.ds.SosCacheFeederHandler)1 GeometryHandler (org.n52.sos.util.GeometryHandler)1