Changeset 994
- Timestamp:
- 01/02/08 15:25:30
- Files:
-
- Shapely/trunk/manual/manual.txt (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Shapely/trunk/manual/manual.txt
r993 r994 107 107 108 108 >>> polygon = Polygon((a1, ..., aM), [(b1, ..., bN), ...]) 109 110 Rings *must* be non-crossing, ordered coordinate sequences. The order may be 111 clockwise or counter-clockwise. The resulting topology is independent of the 112 order. 109 113 110 114 Multipart Geometry Factories … … 182 186 ++++++ 183 187 184 .buffer(distance, quadsegs=16) : geometry 185 Buffers the geometry by a unitless *distance*. The *quadsegs* parameter is 186 the number of segments per quadrant in resulting geometries. The default 187 result of buffering a point is a 66-gon approximation of a circle: 188 .buffer(width, quadsegs=16) : geometry 189 Returns a buffer region having the given width and with a specified number of 190 segments used to approximate curves. 191 192 The default result of buffering a point is an N-gon approximation of a circle: 188 193 189 194 .. code-block:: python … … 250 255 251 256 .difference(other) : geometry 252 Returns the difference of one geometry from the *other* geometry. Note that 253 A.difference(B) is not equal to B.difference(A). 257 Returns a geometry representing the points making up this geometry that do 258 not make up *other*. Note that A.difference(B) is not necessarily equal to 259 B.difference(A). 254 260 255 261 .. code-block:: python … … 274 280 275 281 .symmetric_difference(other) : geometry 276 Returns the symmetric difference of one geometry from the *other* geometry. 282 Returns a geometry combining the points in this geometry not in *other*, and 283 the points in *other* not in this geometry. 277 284 278 285 .. code-block:: python … … 431 438 The inverse of *contains*. 432 439 440 General Methods 441 --------------- 442 443 Distance 444 ++++++++ 445 446 .distance(other) : geometry 447 The minimum distance from one geometry to the other. 448 449 .. code-block:: python 450 451 >>> Point(0,0).distance(Point(1,1)) 452 1.4142135623730951 453 454 433 455 Scalar Properties 434 456 ----------------- … … 437 459 ++++ 438 460 439 area : float461 .area : float 440 462 Area of the geometry, unitless. Non-zero only for surfaces (polygons, 441 463 multi-polygons). … … 444 466 ++++++ 445 467 446 length : float468 .length : float 447 469 Length of the geometry, unitless. Non-zero only for linear geometries 448 470 (line strings, rings, polygon boundaries)
