public class CatUnion
extends java.lang.Object
| Constructor and Description |
|---|
CatUnion() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static java.util.Map<java.lang.Integer,OGCGeometry> |
unionLocal(Path shapeFile,
Path categoryFile)
Calculates the union of a set of shapes categorized by some user defined
category.
|
static void |
unionMapReduce(Path shapeFile,
Path categoryFile,
Path output,
OperationsParams params)
Calculates the union of a set of shapes categorized by some user defined
category.
|
public static void unionMapReduce(Path shapeFile,
Path categoryFile,
Path output,
OperationsParams params)
throws java.io.IOException
shapeFile - - Input file that contains shapescategoryFile - - Category file that contains the category of each
shape.Shapes not appearing in this file are not generated in output.output - - An output file that contains each category and the union
of all shapes in it. Each line contains the category, then a comma,
then the union represented as text.java.io.IOExceptionpublic static java.util.Map<java.lang.Integer,OGCGeometry> unionLocal(Path shapeFile,
Path categoryFile)
throws java.io.IOException
fs - file - java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
args - java.io.IOException