gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / javadocs / scripting / geom.java @ 487
History | View | Annotate | Download (2.97 KB)
1 |
|
---|---|
2 |
import org.gvsig.fmap.geom.Geometry; |
3 |
import org.gvsig.fmap.geom.primitive.Envelope; |
4 |
|
5 |
|
6 |
|
7 |
/**
|
8 |
*
|
9 |
* Utility functions to manage gvSIG geometries
|
10 |
*/
|
11 |
public class geom { |
12 |
|
13 |
// GeometryTypes
|
14 |
public static final int AGGREGATE = Geometry.TYPES.AGGREGATE; |
15 |
public static final int ARC = Geometry.TYPES.ARC; |
16 |
public static final int CIRCLE = Geometry.TYPES.CIRCLE; |
17 |
public static final int CURVE = Geometry.TYPES.CURVE; |
18 |
public static final int ELLIPSE = Geometry.TYPES.ELLIPSE; |
19 |
public static final int ELLIPTICARC = Geometry.TYPES.ELLIPTICARC; |
20 |
public static final int GEOMETRY = Geometry.TYPES.GEOMETRY; |
21 |
public static final int MULTICURVE = Geometry.TYPES.MULTICURVE; |
22 |
public static final int MULTIPOINT = Geometry.TYPES.MULTIPOINT; |
23 |
public static final int MULTISOLID = Geometry.TYPES.MULTISOLID; |
24 |
public static final int MULTISURFACE = Geometry.TYPES.MULTISURFACE; |
25 |
public static final int NULL = Geometry.TYPES.NULL; |
26 |
public static final int POINT = Geometry.TYPES.POINT; |
27 |
public static final int SOLID = Geometry.TYPES.SOLID; |
28 |
public static final int SPLINE = Geometry.TYPES.SPLINE; |
29 |
public static final int SURFACE = Geometry.TYPES.SURFACE; |
30 |
|
31 |
// Common named geometry types
|
32 |
public static final int POLYGON = Geometry.TYPES.SURFACE; |
33 |
public static final int LINE = Geometry.TYPES.CURVE; |
34 |
public static final int MULTILINE = Geometry.TYPES.MULTICURVE; |
35 |
public static final int MULTIPOLYGON = Geometry.TYPES.MULTISURFACE; |
36 |
|
37 |
// geometrySubTypes
|
38 |
public static final int D2 = Geometry.SUBTYPES.GEOM2D; |
39 |
public static final int D2M = Geometry.SUBTYPES.GEOM2DM; |
40 |
public static final int D3 = Geometry.SUBTYPES.GEOM3D; |
41 |
public static final int D3M = Geometry.SUBTYPES.GEOM3DM; |
42 |
public static final int UNKNOWN = Geometry.SUBTYPES.UNKNOWN; |
43 |
|
44 |
/**
|
45 |
*
|
46 |
* @param type
|
47 |
* @param subtype, optional, default 2D
|
48 |
* @return
|
49 |
*/
|
50 |
public static Geometry createGeometry(int type, int subtype) { |
51 |
return null; |
52 |
} |
53 |
|
54 |
/**
|
55 |
*
|
56 |
* @param x
|
57 |
* @param y
|
58 |
* @param subtype, optional, defiult 2D
|
59 |
* @return
|
60 |
*/
|
61 |
public static Geometry createPoint(double x, double y, int subtype) { |
62 |
return null; |
63 |
} |
64 |
|
65 |
/**
|
66 |
*
|
67 |
* @param subtype, optional, defiult 2D
|
68 |
*/
|
69 |
public static Geometry createMultiPoint(int subtype, ...) { |
70 |
return null; |
71 |
} |
72 |
|
73 |
public static Geometry createPolygon(int subtype, ...) { |
74 |
return null; |
75 |
} |
76 |
|
77 |
public static Geometry createMultiPolygon(int subtype, ...) { |
78 |
return null; |
79 |
} |
80 |
|
81 |
public static Geometry createLine(int subtype, ...) { |
82 |
return null; |
83 |
} |
84 |
|
85 |
public static Geometry createMultiLine(int subtype, ...) { |
86 |
return null; |
87 |
} |
88 |
|
89 |
/**
|
90 |
*
|
91 |
* @param pointMax
|
92 |
* @param pointMin
|
93 |
* @param dimension
|
94 |
* @return
|
95 |
*/
|
96 |
public static Envelope createEnvelope(Object pointMax, Object pointMin, int dimension) { |
97 |
return null; |
98 |
} |
99 |
|
100 |
} |