Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16b474f

Browse files
jmoujaeskarimbahgat
authored andcommitted
Clarification that Points dont have a bounding box, and fixed broken sentence.
1 parent a43dac0 commit 16b474f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ index which is 7.
219219
>>> ['%.3f' % coord for coord in s.bbox]
220220
['-122.450', '37.801', '-122.442', '37.808']
221221

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'.
223223

224224

225225
>>> for name in dir(shapes[3]):
@@ -373,7 +373,7 @@ that.
373373

374374
Calling the shapeRecords() method will return the geometry and attributes for
375375
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
377377
discussed in the first section "Reading Geometry". The record attribute is a
378378
list of field values as demonstrated in the "Reading Records" section.
379379

@@ -447,9 +447,7 @@ save and only file types with file names will be saved.
447447

448448
### Writing Shapefiles Using the Context Manager
449449

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.
453451
In case of a crash and to make the code more readable, it is nevertheless recommended
454452
you do this manually by calling the "close()" method:
455453

0 commit comments

Comments
 (0)