Revision 5389 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/shp/write/SHPMultiLine.java
SHPMultiLine.java | ||
---|---|---|
81 | 81 |
* |
82 | 82 |
* @param type Tipo de multil?nea. |
83 | 83 |
* |
84 |
* @throws ShapefileException
|
|
84 |
* @throws ShapefileException |
|
85 | 85 |
*/ |
86 | 86 |
public SHPMultiLine(int type) throws ShapefileException { |
87 | 87 |
if ((type != FConstant.SHAPE_TYPE_POLYLINE) && |
... | ... | |
177 | 177 |
buffer.putDouble(z); |
178 | 178 |
} |
179 | 179 |
} |
180 |
|
|
180 |
|
|
181 | 181 |
} |
182 | 182 |
if (m_type == FConstant.SHAPE_TYPE_POLYLINEM) { |
183 | 183 |
buffer.putDouble(-10E40); |
... | ... | |
186 | 186 |
buffer.putDouble(-10E40); |
187 | 187 |
} |
188 | 188 |
} |
189 |
|
|
189 |
|
|
190 | 190 |
} |
191 | 191 |
|
192 | 192 |
/** |
... | ... | |
263 | 263 |
// GeneralPathX object. |
264 | 264 |
//Process the current segment to populate a new |
265 | 265 |
// segment of the new GeneralPathX object. |
266 |
|
|
266 |
|
|
267 | 267 |
switch (theType) { |
268 | 268 |
case PathIterator.SEG_MOVETO: |
269 | 269 |
|
... | ... | |
276 | 276 |
} |
277 | 277 |
|
278 | 278 |
numParts++; |
279 |
|
|
279 |
|
|
280 | 280 |
arrayPoints.add(new FPoint2D(theData[0], theData[1])); |
281 | 281 |
|
282 | 282 |
break; |
... | ... | |
310 | 310 |
} //end switch |
311 | 311 |
|
312 | 312 |
theIterator.next(); |
313 |
}
|
|
313 |
} |
|
314 | 314 |
|
315 | 315 |
Integer[] integers = (Integer[]) arrayParts.toArray(new Integer[0]); |
316 | 316 |
parts = new int[integers.length]; |
... | ... | |
321 | 321 |
points = (FPoint2D[]) arrayPoints.toArray(new FPoint2D[0]); |
322 | 322 |
|
323 | 323 |
} |
324 |
|
|
325 |
public void setFlatness(double flatness) { |
|
326 |
this.flatness=flatness; |
|
327 |
} |
|
324 | 328 |
} |
Also available in: Unified diff