Commit 0e75543
committed
Add ShpReader and ShxReader
Add ShxReader
Add ShpReader
Can combine ._shape too if rec length yielded/cached (as well as pos)
Is it still necessary to support out of spec shapefiles, with next_shape_pos?
Cache iterator in ShpReader
Use a cached generator
Passes pytest, mypy and ruff check
Reformat and run hooks
Update test_shapefile.py
Swap out Nones in MBox part of header
Update shapefile.py
Add ISDATA_LOWER_BOUND =-1e38 to differentiate from NODATA = -1e39 (as per legacy)
Add zbox and mbox properties1 parent 7e14702 commit 0e75543
4 files changed
Lines changed: 667 additions & 448 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
514 | 519 | | |
515 | 520 | | |
516 | 521 | | |
517 | | - | |
| 522 | + | |
518 | 523 | | |
519 | 524 | | |
520 | 525 | | |
| |||
1473 | 1478 | | |
1474 | 1479 | | |
1475 | 1480 | | |
1476 | | - | |
| 1481 | + | |
1477 | 1482 | | |
1478 | 1483 | | |
1479 | 1484 | | |
| |||
1506 | 1511 | | |
1507 | 1512 | | |
1508 | 1513 | | |
1509 | | - | |
| 1514 | + | |
1510 | 1515 | | |
1511 | 1516 | | |
1512 | 1517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
0 commit comments