MCPcopy Create free account
hub / github.com/OSGeo/gdal / ProcessGeometry

Method ProcessGeometry

swig/java/apps/GDALGrid.java:99–116  ·  view source on GitHub ↗
(Geometry point, Geometry clipSrc,
            int burnField, double burnValue, List<Double> X, List<Double> Y,
            List<Double> Z)

Source from the content-addressed store, hash-verified

97 * processing.
98 */
99 public static void ProcessGeometry(Geometry point, Geometry clipSrc,
100 int burnField, double burnValue, List<Double> X, List<Double> Y,
101 List<Double> Z) {
102
103 if (clipSrc != null && point.Within(clipSrc) == false)
104 return;
105
106 X.add(point.GetX());
107 Y.add(point.GetY());
108
109 if (burnField < 0) {
110
111 Z.add(point.GetZ());
112 } else {
113
114 Z.add(burnValue);
115 }
116 }
117
118 /*
119 * Process all the features in a layer selection, collecting geometries and

Callers 1

ProcessLayerMethod · 0.95

Calls 4

WithinMethod · 0.45
addMethod · 0.45
GetXMethod · 0.45
GetYMethod · 0.45

Tested by

no test coverage detected