public class ShapeFileCrop
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ShapeFile |
sfin
Input ShapeFile object.
|
ShapeFile |
sfout
Output ShapeFile object.
|
Constructor and Description |
---|
ShapeFileCrop(java.lang.String namein,
java.lang.String nameout)
Construct a
ShapeFileCrop object from a pair of file names. |
Modifier and Type | Method and Description |
---|---|
void |
cropShapeFile()
Read the input
ShapeFile object, and apply cropping rules to
the read entities. |
static void |
main(java.lang.String[] args)
The driver for the command line interface.
|
static void |
usage() |
public ShapeFile sfin
public ShapeFile sfout
public ShapeFileCrop(java.lang.String namein, java.lang.String nameout) throws java.io.IOException
ShapeFileCrop
object from a pair of file names.java.io.IOException
- if something goes wrong opening or reading the file.public void cropShapeFile() throws java.io.IOException
ShapeFile
object, and apply cropping rules to
the read entities. Writes the output ShapeFile
object, and
then invokes the ShapeFile
.verify method to fix the output
file header.java.io.IOException
- if something goes wrong opening or reading the file.public static void usage()
public static void main(java.lang.String[] args) throws java.io.IOException
See the file documentation for usage.
args
- the command line argumentsjava.io.IOException
- if something goes wrong reading or writing the fileCopyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details