Pyshp

Latest version: v2.3.1

Safety actively analyzes 621876 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

2.3.1

2022-07-28
Bug fixes:
* Fix recently introduced issue where Reader/Writer closes file-like objects provided by user (244)

2.3.0

2022-04-30
New Features:
* Added support for pathlib and path-like shapefile filepaths (mwtoews).
* Allow reading individual file extensions via filepaths.

Improvements:
* Simplified setup and deployment (mwtoews)
* Faster shape access when missing shx file
* Switch to named logger (see 240)

Bug fixes:
* More robust handling of corrupt shapefiles (fixes 235)
* Fix errors when writing to individual file-handles (fixes 237)
* Revert previous decision to enforce geojson output ring orientation (detailed explanation at https://github.com/SciTools/cartopy/issues/2012)
* Fix test issues in environments without network access (sebastic, musicinmybrain).

2.2.0

2022-02-02
New Features:
* Read shapefiles directly from zipfiles.
* Read shapefiles directly from urls.
* Allow fast extraction of only a subset of dbf fields through a `fields` arg.
* Allow fast filtering which shapes to read from the file through a `bbox` arg.

Improvements:
* More examples and restructuring of README.
* More informative Shape to geojson warnings (see 219).
* Add shapefile.VERBOSE flag to control warnings verbosity (default True).
* Shape object information when calling repr().
* Faster ring orientation checks, enforce geojson output ring orientation.

Bug fixes:
* Remove null-padding at end of some record character fields.
* Fix dbf writing error when the number of record list or dict entries didn't match the number of fields.
* Handle rare garbage collection issue after deepcopy (https://github.com/mattijn/topojson/issues/120)
* Fix bug where records and shapes would be assigned incorrect record number (karanrn)
* Fix typos in docs (timgates)

2.1.3

2021-01-14
Bug fixes:
* Fix recent bug in geojson hole-in-polygon checking (see 205)
* Misc fixes to allow geo interface dump to json (eg dates as strings)
* Handle additional dbf date null values, and return faulty dates as unicode (see 187)
* Add writer target typecheck
* Fix bugs to allow reading shp/shx/dbf separately
* Allow delayed shapefile loading by passing no args
* Fix error with writing empty z/m shapefile (mcuprjak)
* Fix signed_area() so ignores z/m coords
* Enforce writing the 11th field name character as null-terminator (only first 10 are used)
* Minor README fixes
* Added more tests

2.1.2

2020-09-10
Bug fixes:
* Fix issue where `warnings.simplefilter('always')` changes global warning behavior [see 203]

2.1.1

2020-09-09
Improvements:
* Handle shapes with no coords and represent as geojson with no coords (GeoJSON null-equivalent)
* Expand testing to Python 3.6, 3.7, 3.8 and PyPy; drop 3.3 and 3.4 [mwtoews]
* Added pytest testing [jmoujaes]

Bug fixes:
* Fix incorrect geo interface handling of multipolygons with complex exterior-hole relations [see 202]
* Enforce shapefile requirement of at least one field, to avoid writing invalid shapefiles [Jonty]
* Fix Reader geo interface including DeletionFlag field in feature properties [nnseva]
* Fix polygons not being auto closed, which was accidentally dropped
* Fix error for null geometries in feature geojson
* Misc docstring cleanup [fiveham]

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.