public class GeoJsonInputTransformer extends Object implements InputTransformer
BasicTypes.BASIC_METACARD MetacardType.| Constructor and Description |
|---|
GeoJsonInputTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAttributeRegistry(AttributeRegistry attributeRegistry) |
void |
setMetacardTypes(List<MetacardType> metacardTypes) |
String |
toString() |
Metacard |
transform(InputStream input)
Transforms GeoJson (http://www.geojson.org/) into a
Metacard |
Metacard |
transform(InputStream input,
String id)
|
public Metacard transform(InputStream input) throws IOException, CatalogTransformerException
Metacardtransform in interface InputTransformerinput - the binary InputStream to transformMetacardIOException - if an I/O exception occurs when reading the InputStreamCatalogTransformerException - if an error occurs during transformationpublic Metacard transform(InputStream input, String id) throws IOException, CatalogTransformerException
InputTransformertransform in interface InputTransformerinput - the binary InputStream to transformid - the attribute value for the Metacard.ID attribute that should be set in the
generated MetacardMetacardIOException - if an I/O exception occurs when reading the InputStreamCatalogTransformerException - if an error occurs during transformationpublic void setMetacardTypes(List<MetacardType> metacardTypes)
public void setAttributeRegistry(AttributeRegistry attributeRegistry)
This work is licensed under a Creative Commons Attribution 4.0 International License.