Skip to content

Releases: GeospatialPython/pyshp

v3.1.3 speed up encoding of utf8 and ascii text

25 Jun 16:42
d31bd8f

Choose a tag to compare

Merge pull request #427 from JamesParrott/Slightly_faster

v3.1.3 speed up encoding of utf8 and ascii text

v3.1.2 In strict mode, raise error if whole chars encoded to pad bytes

24 Jun 19:18
12c1034

Choose a tag to compare

Merge pull request #425, Raise error when strings end in code points …

v3.1.1 Warn if encoded text ends in pad bytes. Minimise pad bytes used in decodings.

24 Jun 16:49
9649c5d

Choose a tag to compare

Merge pull request #424 from JamesParrott/Test_utf16_encoded_field_names

v3.1.1 Warn if text encoding ends in pad bytes.  Minimise pad bytes used in decodings.

v3.1.0. Strict mode. Atomic Records. Robust(er) unicode handling

23 Jun 20:01
493534a

Choose a tag to compare

Unicode support made more robust and encoding bugs fixed

  • Truncation of field names and text fields now respects unicode code point boundaries (fixes issues -
    416 and 148).
  • Warnings raised if truncation, or replacing b" " with b"_" would corrupt encoded field names, -
    both if they would either be undecodable, or would silently decode to incorrect data (warns users
    if issue 421 applies).
  • Correctly truncated field names are now stored in field instances, as would actually be seen in the file.
  • New strict mode. Writer(strict=True) raises errors or refuse to create fields and text records with data that -
    would be truncated or cannot be correctly decoded back again by PyShp, exactly as given by the user.
  • In strict mode, ascii spaces in encoded names are no longer replaced by ascii underscores at all
    (work around to avoid corrupting unicode field names - provides opt-in fix for issue 421).
  • BREAKING. When reading .dbf files, Trailing ascii spaces in text fields before a null terminator char (in the -
    decoded string) is now removed (i.e. instead of .strip().rstrip('\x00') we now do: .rstrip("\x00").rstrip(" ")).
  • BREAKING. Enclosing Whitespace other than trailing ascii spaces (0x20) after null chars in text fields is now -
    preserved, when reading .dbf files (fixes issue 418 - James feels this was a bug. Let him know if you think otherwise).
  • BREAKING Trailing null chars other than null terminators & null padding bytes, followed by whitespace other than
    ascii spaces, are now preserved.
  • Writing dbf records is now atomic.

ShpWriter.shape API Tweak (small breaking change).

  • Make ShpWriter.shape return shape length in bytes (the
    same as for offset) not in 16 bit words.

Testing

  • Include NullShapes in shp round trip test.
  • En/decoding of Dbf files and Fields round trips correctly.

v3.0.13 Bug fix (read empty shp files)

19 Jun 14:53
e3b2040

Choose a tag to compare

Merge pull request #413 from JamesParrott/Test_shp_files_roundtrip

v3.0.13. Don't error when reading empty shp files (bug fix).

v2.4.2. Don't run Pylint, and update docs

06 Jun 16:42
158be67

Choose a tag to compare

v3.0.12 points_3D ! Polylines and Polygons pass round trip tests

05 Jun 18:49
f86097d

Choose a tag to compare

Merge pull request #409 from JamesParrott/Polylines_and_Polygons

v3.0.12. 3D Point coords

v3.0.11 Stricter shapes. PointZ and Multipoints round trip.

05 Jun 12:51
a5bba23

Choose a tag to compare

Merge pull request #408 v3.0.11 Stricter shapes. PointZ and Multipoin…

Bug fix - convert out of bounds m values to None.

04 Jun 16:08
d62307c

Choose a tag to compare

Merge pull request #407 from JamesParrott/Hypothesis

v3.0.10 Bugfix. Ensure m < ISDATA becomes None on PointM. Add round tri…

v3.0.9 ShpReader, ShpWriter, ShxReader, and ShxWriter

27 May 17:06

Choose a tag to compare

What's Changed

  • Make Reader and Writer stricter about their args. Use pathlib.Paths … by @JamesParrott in #401
  • Add ShpReader, ShxReader, ShpWriter and ShxWriter. Reduce clutter from tests, by using temp dirs for writing shapefiles. by @JamesParrott in #402

Full Changelog: 3.0.8...3.0.9