public class GDALParser
extends org.apache.tika.parser.AbstractParser
gdalinfo tool used to extract geospatial
information out of hundreds of geo file formats.
The parser requires the installation of GDAL and for gdalinfo to
be located on the path.
Basic information (Size, Coordinate System, Bounding Box, Driver, and
resource info) are extracted as metadata, and the remaining metadata patterns
are extracted and added.
The output of the command is available from the provided
ContentHandler in the
parse(InputStream, ContentHandler, Metadata, ParseContext) method.| Constructor and Description |
|---|
GDALParser() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommand() |
Set<org.apache.tika.mime.MediaType> |
getSupportedTypes(org.apache.tika.parser.ParseContext context) |
void |
parse(InputStream stream,
ContentHandler handler,
org.apache.tika.metadata.Metadata metadata,
org.apache.tika.parser.ParseContext context) |
String |
processCommand(InputStream stream) |
void |
setCommand(String command) |
public void setCommand(String command)
public String getCommand()
public String processCommand(InputStream stream)
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
public void parse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context) throws IOException, SAXException, org.apache.tika.exception.TikaException
IOExceptionSAXExceptionorg.apache.tika.exception.TikaExceptionCopyright © 2007–2018 The Apache Software Foundation. All rights reserved.