Search in sources :

Example 1 with MetacardFactory

use of org.codice.alliance.transformer.nitf.MetacardFactory in project alliance by codice.

the class NitfGmtiTransformerTest method setUp.

@Before
public void setUp() {
    this.metacardFactory = new MetacardFactory();
    metacardFactory.setMetacardType(new MetacardTypeImpl(GMTI_METACARD, metacardTypeList));
    this.nitfHeaderTransformer = new NitfHeaderTransformer();
    this.nitfGmtiTransformer = new NitfGmtiTransformer();
    this.nitfGmtiTransformer.setGeometryFactory(new GeometryFactory());
    TreUtilityTest.createFileIfNecessary(GMTI_TEST_NITF, TreUtilityTest::createNitfNoImageTres);
    NitfTestCommons.setupNitfUtilities("US", Collections.singletonList("USA"));
}
Also used : MetacardFactory(org.codice.alliance.transformer.nitf.MetacardFactory) GeometryFactory(com.vividsolutions.jts.geom.GeometryFactory) MetacardTypeImpl(ddf.catalog.data.impl.MetacardTypeImpl) TreUtilityTest(org.codice.alliance.transformer.nitf.TreUtilityTest) NitfHeaderTransformer(org.codice.alliance.transformer.nitf.common.NitfHeaderTransformer) Before(org.junit.Before)

Example 2 with MetacardFactory

use of org.codice.alliance.transformer.nitf.MetacardFactory in project alliance by codice.

the class NitfHeaderTransformerTest method setUp.

@Before
public void setUp() {
    nitfHeaderTransformer = new NitfHeaderTransformer();
    metacardFactory = new MetacardFactory();
    metacardFactory.setMetacardType(new ImageMetacardType());
}
Also used : MetacardFactory(org.codice.alliance.transformer.nitf.MetacardFactory) ImageMetacardType(org.codice.alliance.transformer.nitf.image.ImageMetacardType) Before(org.junit.Before)

Example 3 with MetacardFactory

use of org.codice.alliance.transformer.nitf.MetacardFactory in project alliance by codice.

the class ImageInputTransformerTest method createTransformer.

@Before
public void createTransformer() throws UnsupportedQueryException, SourceUnavailableException, FederationException {
    transformer = new NitfImageTransformer();
    metacardFactory = new MetacardFactory();
    metacardFactory.setMetacardType(new ImageMetacardType());
    headerTransformer = new NitfHeaderTransformer();
    NitfTestCommons.setupNitfUtilities(TEST_CLASSIFICATION_SYSTEM, Collections.singletonList("USA"));
}
Also used : MetacardFactory(org.codice.alliance.transformer.nitf.MetacardFactory) NitfHeaderTransformer(org.codice.alliance.transformer.nitf.common.NitfHeaderTransformer) Before(org.junit.Before)

Aggregations

MetacardFactory (org.codice.alliance.transformer.nitf.MetacardFactory)3 Before (org.junit.Before)3 NitfHeaderTransformer (org.codice.alliance.transformer.nitf.common.NitfHeaderTransformer)2 GeometryFactory (com.vividsolutions.jts.geom.GeometryFactory)1 MetacardTypeImpl (ddf.catalog.data.impl.MetacardTypeImpl)1 TreUtilityTest (org.codice.alliance.transformer.nitf.TreUtilityTest)1 ImageMetacardType (org.codice.alliance.transformer.nitf.image.ImageMetacardType)1