Package org.apache.tika.parser.gdal
Class GDALParser
- java.lang.Object
-
- org.apache.tika.parser.AbstractParser
-
- org.apache.tika.parser.gdal.GDALParser
-
- All Implemented Interfaces:
Serializable,org.apache.tika.parser.Parser
public class GDALParser extends org.apache.tika.parser.AbstractParserWraps execution of the Geospatial Data Abstraction Library (GDAL)gdalinfotool used to extract geospatial information out of hundreds of geo file formats. The parser requires the installation of GDAL and forgdalinfoto 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 providedContentHandlerin theparse(InputStream, ContentHandler, Metadata, ParseContext)method.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GDALParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCommand()Set<org.apache.tika.mime.MediaType>getSupportedTypes(org.apache.tika.parser.ParseContext context)voidparse(InputStream stream, ContentHandler handler, org.apache.tika.metadata.Metadata metadata, org.apache.tika.parser.ParseContext context)StringprocessCommand(InputStream stream)voidsetCommand(String command)
-
-
-
Method Detail
-
getCommand
public String getCommand()
-
setCommand
public void setCommand(String command)
-
processCommand
public String processCommand(InputStream stream)
-
getSupportedTypes
public Set<org.apache.tika.mime.MediaType> getSupportedTypes(org.apache.tika.parser.ParseContext context)
-
parse
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
- Throws:
IOExceptionSAXExceptionorg.apache.tika.exception.TikaException
-
-