Class KmzInputTransformer
java.lang.Object
org.codice.ddf.spatial.kml.transformer.KmzInputTransformer
- All Implemented Interfaces:
ddf.catalog.transform.InputTransformer
This class handles .kmz files by unzipping them and passing the first .kml file to the
KmlInputTransformer. All other files within the .kmz are ignored.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionddf.catalog.data.Metacardtransform(InputStream inputStream) ddf.catalog.data.Metacardtransform(InputStream inputStream, String id)
-
Field Details
-
KML_EXTENSION
- See Also:
-
-
Constructor Details
-
KmzInputTransformer
-
-
Method Details
-
transform
public ddf.catalog.data.Metacard transform(InputStream inputStream) throws IOException, ddf.catalog.transform.CatalogTransformerException - Specified by:
transformin interfaceddf.catalog.transform.InputTransformer- Throws:
IOExceptionddf.catalog.transform.CatalogTransformerException
-
transform
public ddf.catalog.data.Metacard transform(InputStream inputStream, String id) throws IOException, ddf.catalog.transform.CatalogTransformerException - Specified by:
transformin interfaceddf.catalog.transform.InputTransformer- Throws:
IOExceptionddf.catalog.transform.CatalogTransformerException
-