public function jsonSerialize()
    {
        $bounds = $this->getBounds();

        // No rectangle support of geojson, so create a polygon
        return array(
            'type'        => 'Polygon',
            'coordinates' => array(
                array(
                    $bounds->getNorthEast()->toGeoJson(),
                    $bounds->getNorthWest()->toGeoJson(),
                    $bounds->getSouthWest()->toGeoJson(),
                    $bounds->getSouthEast()->toGeoJson()
                )
            )
        );
    }
public function jsonSerialize()
    {
        $bounds = $this->getBounds();

        // No rectangle support of geojson, so create a polygon
        return array(
            'type'        => 'Polygon',
            'coordinates' => array(
                array(
                    $bounds->getNorthEast()->toGeoJson(),
                    $bounds->getNorthWest()->toGeoJson(),
                    $bounds->getSouthWest()->toGeoJson(),
                    $bounds->getSouthEast()->toGeoJson()
                )
            )
        );
    }
public function jsonSerialize ( ) { $ bounds = $ this -> getBounds ( ) ; // No rectangle support of geojson, so create a polygon return array ( 'type' => 'Polygon' , 'coordinates' => array ( array ( $ bounds -> getNorthEast ( ) -> toGeoJson ( ) , $ bounds -> getNorthWest ( ) -> toGeoJson ( ) , $ bounds -> getSouthWest ( ) -> toGeoJson ( ) , $ bounds -> getSouthEast ( ) -> toGeoJson ( ) ) ) ) ; }
Get definition as feature collection.

@return Feature|FeatureCollection
Get definition as feature collection .