public static function fromArray(array $points)
    {
        $parsed_points = array_map(function($p){
            if( !is_array($p) or sizeof($p) != 2)
                throw new GeoSpatialException('Error: array of array containing lat, lon expected.');
            return new Point($p[0], $p[1]);
        }, $points);
        return new static($parsed_points);
    }