diff --git a/lib/CrEOF/Geo/WKB/Parser.php b/lib/CrEOF/Geo/WKB/Parser.php index ce30e38..e5a6a2d 100644 --- a/lib/CrEOF/Geo/WKB/Parser.php +++ b/lib/CrEOF/Geo/WKB/Parser.php @@ -154,7 +154,9 @@ private function readGeometry() } $this->dimensions = $this->getDimensions($this->type); - $this->pointSize = 2 + strlen($this->getDimensionType($this->dimensions)); + $dimensionType = this->getDimensionType($this->dimensions); + if($dimensionType === null) $dimensionType = ''; + $this->pointSize = 2 + strlen($dimensionType); $typeName = $this->getTypeName($this->type);