public function geometryN(int $n) : Geometry
    {
        if (! isset($this->geometries[$n - 1])) {
            throw new NoSuchGeometryException('There is no Geometry in this GeometryCollection at index ' . $n);
        }

        return $this->geometries[$n - 1];
    }
public function geometryN(int $n) : Geometry
    {
        if (! isset($this->geometries[$n - 1])) {
            throw new NoSuchGeometryException('There is no Geometry in this GeometryCollection at index ' . $n);
        }

        return $this->geometries[$n - 1];
    }
public function geometryN ( int $ n ) : Geometry { if ( ! isset ( $ this -> geometries [ $ n - 1 ] ) ) { throw new NoSuchGeometryException ( 'There is no Geometry in this GeometryCollection at index ' . $ n ) ; } return $ this -> geometries [ $ n - 1 ] ; }
Returns the specified geometry N in this GeometryCollection.

@param int $n The geometry number, 1-based.

@return Geometry

@throws NoSuchGeometryException If there is no Geometry at this index.
Returns the specified geometry N in this GeometryCollection .