com.metsci.glimpse.charts.vector.parser
Class OGRReader
java.lang.Object
com.metsci.glimpse.charts.vector.parser.OGRReader
public class OGRReader
- extends java.lang.Object
A very simple parser for the output of the sogrinfo program.
There is a list of shape names in shapeSet that may need to be augmented to handle additional shapes.
- Author:
- gboquet
Method Summary |
static java.util.List<GenericObject> |
read(java.io.BufferedReader reader)
|
static java.util.List<GenericObject> |
read(java.io.File file)
Parses the output of the s57dump program and produces a set of ENC Objects |
static java.util.List<GenericObject> |
read(java.lang.String resource)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OGRReader
public OGRReader()
read
public static java.util.List<GenericObject> read(java.io.File file)
throws java.io.IOException
- Parses the output of the s57dump program and produces a set of ENC Objects
- Parameters:
resource
- Path to file that is to parsed.
- Returns:
- A list of the objects contained in the file.
- Throws:
java.io.IOException
read
public static java.util.List<GenericObject> read(java.lang.String resource)
throws java.io.IOException
- Throws:
java.io.IOException
read
public static java.util.List<GenericObject> read(java.io.BufferedReader reader)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2012 Metron, Inc.. All Rights Reserved.