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

Skip to content

Commit 4279df9

Browse files
committed
Some test file cleanup
1 parent af6785b commit 4279df9

File tree

9 files changed

+3
-3
lines changed

9 files changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,15 +495,15 @@ To create a shapefile you begin by initiating a new Writer instance, passing it
495495
the file path and name to save to:
496496

497497

498-
>>> w = shapefile.Writer('shapefile')
498+
>>> w = shapefile.Writer('shapefiles/test/testfile')
499499

500500
File extensions are optional when reading or writing shapefiles. If you specify
501501
them PyShp ignores them anyway. When you save files you can specify a base
502502
file name that is used for all three file types. Or you can specify a name for
503503
one or more file types:
504504

505505

506-
>>> w = shapefile.Writer(dbf='onlydbf.dbf')
506+
>>> w = shapefile.Writer(dbf='shapefiles/test/onlydbf.dbf')
507507

508508
In that case, any file types not assigned will not
509509
save and only file types with file names will be saved.
@@ -557,7 +557,7 @@ There are three ways to set the shape type:
557557
To manually set the shape type for a Writer object when creating the Writer:
558558

559559

560-
>>> w = shapefile.Writer('shapefile', shapeType=3)
560+
>>> w = shapefile.Writer('shapefiles/test/shapetype', shapeType=3)
561561

562562
>>> w.shapeType
563563
3

shapefile.pyc

-4 Bytes
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

shapefiles/test/testfile.dbf

33 Bytes
Binary file not shown.

shapefiles/test/testfile.shp

100 Bytes
Binary file not shown.

shapefiles/test/testfile.shx

100 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)