Recent Releases of pyshp
pyshp - More support for Paths, and no longer modifies the doctest module.
Improvements
- Reader(shp=, dbf=, shx=) now support pathlib.Paths, and any pathlike object (@mwtoews). ### Bug fixes
- PyShp 3 no longer modifies the global doctest module (@JamesParrott). ### Code quality
- isort replaced by Ruff check's I rule (@mwtoews).
- mypy --strict used in CI (@JamesParrott).
- LICENSE.TXT re-encoded in UTF-8 (@musicinmybrain).
- Python
Published by JamesParrott 10 months ago
pyshp - Python 3.9+ only. Type hints. Shape subtypes. Faster writes.
- Python
Published by JamesParrott 11 months ago
pyshp - Version 2.4.1. Faster shapefile writes.
What's Changed
- Add speed_test.py and .yml by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/336
- Add Writer speed tests by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/338
- Combine f.write(pack( "<d"etc., )) calls by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/341
Full Changelog: https://github.com/GeospatialPython/pyshp/compare/2.4.0...2.4.1
- Python
Published by JamesParrott 11 months ago
pyshp - Version 2.4.0. Iteration over subranges of records. Last support for Python 2 and Python 3.8
What's Changed
- Fix PyShp's CI, dropping actions/setup-python, running build.yml Action in Python Docker containers. by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/267
- Add spatial filtering for single points by @lgolston in https://github.com/GeospatialPython/pyshp/pull/259
- SyntaxWarning for identity checks in test_shapefile by @lgolston in https://github.com/GeospatialPython/pyshp/pull/260
- Fix recursion error when copying Record with deepcopy() by @midichef in https://github.com/GeospatialPython/pyshp/pull/257
- Added uppercase file extension compatibility for zip files by @bva-bme in https://github.com/GeospatialPython/pyshp/pull/250
- Run on workflow_dispatch (after manual trigger) by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/271
- *.py: Remove trailing empty spaces. by @schwehr in https://github.com/GeospatialPython/pyshp/pull/279
- changelog.txt: strip trailing spaces and keep as dos formatted file. by @schwehr in https://github.com/GeospatialPython/pyshp/pull/280
- build.yml: Allow all pushes to run the workflow. by @schwehr in https://github.com/GeospatialPython/pyshp/pull/277
- build.yml: Change python-versions to leave off patch version. by @schwehr in https://github.com/GeospatialPython/pyshp/pull/282
- README.md and changelog.txt: codespell by @schwehr in https://github.com/GeospatialPython/pyshp/pull/283
- Initial sorting of imports. by @schwehr in https://github.com/GeospatialPython/pyshp/pull/296
- Refactor workflows to support testing before deployment, and testing on Windows and MacOS. by @JamesParrott in https://github.com/GeospatialPython/pyshp/pull/300
- Run Pylint
- Add ruff format hook to pre-commit config
- Combine iter records range into iter records based on work by @lguez in https://github.com/GeospatialPython/pyshp/pull/310
New Contributors
- @lguez made their first contribution in https://github.com/GeospatialPython/pyshp/pull/310
- @lgolston made their first contribution in https://github.com/GeospatialPython/pyshp/pull/259
- @midichef made their first contribution in https://github.com/GeospatialPython/pyshp/pull/257
- @bva-bme made their first contribution in https://github.com/GeospatialPython/pyshp/pull/250
- @schwehr made their first contribution in https://github.com/GeospatialPython/pyshp/pull/279
Full Changelog: https://github.com/GeospatialPython/pyshp/compare/2.3.1...2.4.0
- Python
Published by JamesParrott 11 months ago
pyshp - PyShp 2.3.1
Bug fixes:
- Fix recently introduced issue where Reader/Writer closes file-like objects provided by user (#244)
- Python
Published by karimbahgat almost 4 years ago
pyshp - PyShp 2.3.0
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).
- Python
Published by karimbahgat about 4 years ago
pyshp - PyShp 2.2.0
New Features:
- Read shapefiles directly from zipfiles.
- Read shapefiles directly from urls.
- Allow fast extraction of only a subset of dbf fields through a
fieldsarg. - Allow fast filtering which shapes to read from the file through a
bboxarg.
Improvements:
- More examples and restructuring of README.
- More informative Shape to geojson warnings (see #219).
- 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)
- Python
Published by karimbahgat over 4 years ago
pyshp - PyShp 2.1.3
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
- Python
Published by karimbahgat over 5 years ago
pyshp - PyShp 2.1.2
Bug fixes:
- Fix issue where
warnings.simplefilter('always')changes global warning behavior [see #203]
- Python
Published by karimbahgat almost 6 years ago
pyshp - PyShp 2.1.1
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
- Added pytest testing
Bug fixes:
- Fix incorrect geo interface handling of multipolygons with complex exterior-hole relations
- Enforce shapefile requirement of at least one field, to avoid writing invalid shapefiles
- Fix Reader geo interface including DeletionFlag field in feature properties
- Fix polygons not being auto closed, which was accidentally dropped
- Fix error for null geometries in feature geojson
- Misc docstring cleanup
- Python
Published by karimbahgat almost 6 years ago
pyshp - PyShp 2.1.0
New Features:
- Added back read/write support for unicode field names.
- Improved Record representation
- More support for geojson on Reader, ShapeRecord, ShapeRecords, and shapes()
Bug fixes:
- Fixed error when reading optional m-values
- Fixed Record attribute autocomplete in Python 3
- Misc readme cleanup
- Python
Published by karimbahgat over 7 years ago
pyshp - PyShp 2.0.1
Fix pip install setup.py README decoding error.
- Python
Published by karimbahgat over 7 years ago
pyshp - PyShp 2.0.0
Major new version. See README or changelog.txt.
- Python
Published by karimbahgat over 7 years ago
pyshp - PyShp 1.2.12
- Fixed errors caused by strict value type checking, as introduced in v1.2.11. Now more lenient by attempting force conversion of values to match the field type.
- Allow reading file-like objects without seek method (such as ZipFile or urllib.urlopen).
- Python
Published by karimbahgat almost 9 years ago
pyshp - Pyshp 1.2.11
- Fixed bugs when reading and writing empty shapefiles.
- Fixed bug when writing null geometry.
- Fixed misc data type errors.
- Fixed error when reading files with wrong record length.
- Use max field precision when saving decimal numbers.
- Improved shapetype detection.
- Expanded docs on data types ++.
- Python
Published by karimbahgat about 9 years ago
pyshp - Pyshp 1.2.10
Bump version to fix pip install issue.
- Python
Published by karimbahgat almost 10 years ago
pyshp - Pyshp 1.2.9
- Revert back to fix #66
- Update changelog and version information
- Python
Published by karimbahgat almost 10 years ago
pyshp - Pyshp 1.2.5
- Reader speed up through batch unpacking bytes
- Merge README text into markdown file. Remove text version.
- Fixed parsing of number of points for some shapes (MULTIPOINTM, MULTIPOINTZ)
- Python
Published by GeospatialPython almost 10 years ago
pyshp - PyShp 1.2.3
Bugfix for Python3 with Reader.iterShapeRecords()
- Python
Published by GeospatialPython about 11 years ago
pyshp - PyShp 1.2.2
Adds Reader.iterShapeRecords() for reading large shapefiles
- Python
Published by GeospatialPython about 11 years ago