svn-gvsig-desktop / branches / v02_desarrollo / libraries / sld / temp / org.gvsig.sldsupport.lib.api / src / main / java / org / gvsig / sldsupport / sld / filter / operator / spatial / SLDDistanceBufferOperator.java @ 40790
History | View | Annotate | Download (2.03 KB)
1 |
package org.gvsig.sldsupport.sld.filter.operator.spatial; |
---|---|
2 |
|
3 |
import org.gvsig.sldsupport.sld.filter.operator.SLDSpatialOperator; |
4 |
|
5 |
public class SLDDistanceBufferOperator extends SLDSpatialOperator { |
6 |
|
7 |
public static String DISTANCE_BUFFER_OPERATOR_DWITHIN = "DWithin"; |
8 |
public static String DISTANCE_BUFFER_OPERATOR_BEYOND = "Beyond"; |
9 |
|
10 |
public static String DISTANCE_BUFFER_OPERATOR_UNIT_METER = "Meter"; |
11 |
public static String DISTANCE_BUFFER_OPERATOR_UNIT_KILOMETER = "Kilometer"; |
12 |
public static String DISTANCE_BUFFER_OPERATOR_UNIT_INCH = "Inch"; |
13 |
|
14 |
protected String distOpName = null; |
15 |
protected String literalGeometry = null; |
16 |
protected double distance = 0; |
17 |
protected String uom = null; |
18 |
|
19 |
public SLDDistanceBufferOperator(
|
20 |
String dist_op_name,
|
21 |
String literal_geometry,
|
22 |
double dist,
|
23 |
String _unit) {
|
24 |
|
25 |
distOpName = dist_op_name; |
26 |
literalGeometry = literal_geometry; |
27 |
distance = dist; |
28 |
uom = _unit; |
29 |
} |
30 |
|
31 |
/**
|
32 |
* Geometry in GML format used in the operation
|
33 |
* (not the feature's geometry)
|
34 |
* @return
|
35 |
*/
|
36 |
public String getGeometry() { |
37 |
return literalGeometry;
|
38 |
} |
39 |
|
40 |
public double getDistance() { |
41 |
return distance;
|
42 |
} |
43 |
|
44 |
/**
|
45 |
* Can be a URI to use a measure unit from a dictionary
|
46 |
*
|
47 |
* Unit of measure. Recommended strings:
|
48 |
*
|
49 |
* "http://www.opengeospatial.org/sld/units/metre"
|
50 |
* "http://www.opengeospatial.org/sld/units/feet"
|
51 |
* "http://www.opengeospatial.org/sld/units/pixel"
|
52 |
*
|
53 |
* If null is returned, pixel will be used
|
54 |
*
|
55 |
* @return
|
56 |
*/
|
57 |
public String getUnit() { |
58 |
return uom;
|
59 |
} |
60 |
|
61 |
public String getDistOpName() { |
62 |
return distOpName;
|
63 |
} |
64 |
|
65 |
public void setDistOpName(String distOpName) { |
66 |
this.distOpName = distOpName;
|
67 |
} |
68 |
|
69 |
public String getLiteralGeometry() { |
70 |
return literalGeometry;
|
71 |
} |
72 |
|
73 |
public void setLiteralGeometry(String literalGeometry) { |
74 |
this.literalGeometry = literalGeometry;
|
75 |
} |
76 |
|
77 |
public void setDistance(double distance) { |
78 |
this.distance = distance;
|
79 |
} |
80 |
|
81 |
public void setUom(String uom) { |
82 |
this.uom = uom;
|
83 |
} |
84 |
|
85 |
|
86 |
|
87 |
} |