@@ -219,7 +219,7 @@ index which is 7.
219
219
>>> ['%.3f' % coord for coord in s.bbox]
220
220
['-122.450', '37.801', '-122.442', '37.808']
221
221
222
- Each shape record contains the following attributes:
222
+ Each shape record (except Points) contain the following attributes. Records of shapeType Point do not have a bounding box 'bbox'.
223
223
224
224
225
225
>>> for name in dir(shapes[3]):
@@ -373,7 +373,7 @@ that.
373
373
374
374
Calling the shapeRecords() method will return the geometry and attributes for
375
375
all shapes as a list of ShapeRecord objects. Each ShapeRecord instance has a
376
- "shape" and "record" attribute. The shape attribute is a ShapeRecord object as
376
+ "shape" and "record" attribute. The shape attribute is a Shape object as
377
377
discussed in the first section "Reading Geometry". The record attribute is a
378
378
list of field values as demonstrated in the "Reading Records" section.
379
379
@@ -447,9 +447,7 @@ save and only file types with file names will be saved.
447
447
448
448
### Writing Shapefiles Using the Context Manager
449
449
450
- After all the shapefiles are
451
- For the written shapefile to be considered valid, the "Writer" class automatically
452
- closes the open files and writes the final headers once it is garbage collected.
450
+ The "Writer" class automatically closes the open files and writes the final headers once it is garbage collected.
453
451
In case of a crash and to make the code more readable, it is nevertheless recommended
454
452
you do this manually by calling the "close()" method:
455
453
0 commit comments