Skip to content

Commit

Permalink
v3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaspare Sganga committed Nov 10, 2019
1 parent 7e1013e commit 491367b
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 15 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/)
and this project adheres to [Semantic Versioning](https://semver.org/).


## v3.1.1 - 2019-11-10
### Fixed
- Truncate *PRJ* and *CPG* files before writing them to prevent content to be appended when `Shapefile::OPTION_EXISTING_FILES_MODE` is set to `Shapefile::MODE_APPEND`
- Increased maximum number of fields in *DBF* files to 255



## v3.1.0 - 2019-10-30
### Added
- Writing buffer in `ShapefileWriter`. It allows up to a 50% reduction in writing time
Expand All @@ -30,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
- Decoupling field names sanitization and `Shapefile::OPTION_DBF_FORCE_ALL_CAPS` option
- `Shapefile::ERR_GEOM_MISSING_FIELD` exception was erroneously raised when a field had an explicit `null` value and `Shapefile::OPTION_ENFORCE_GEOMETRY_DATA_STRUCTURE` was enabled
- Suppress PHP warnings in `fread()` and `fwrite()` calls: a `ShapefileException` is thrown anyways
- Bug causing a corrupted DBF file when a `Shapefile::ERR_GEOM_MISSING_FIELD` is raised
- Bug causing a corrupted *DBF* file when a `Shapefile::ERR_GEOM_MISSING_FIELD` is raised
- Bug causing wrong record number to be written in SHP record headers (count starts from `1`, not from `0`)
- Corner case bug affecting `ShapefileWriter` destructor when no record has been written yet

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.1.1
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/Geometry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/GeometryCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/Linestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/MultiLinestring.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/MultiPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/MultiPolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/Point.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Geometry/Polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/Shapefile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/ShapefileAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/ShapefileException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/ShapefileReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Shapefile/ShapefileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Shapefile
* @author Gaspare Sganga
* @version 3.1.0
* @version 3.1.1
* @license MIT
* @link https://gasparesganga.com/labs/php-shapefile/
*/
Expand Down

0 comments on commit 491367b

Please sign in to comment.