/** * GetProj4 * @param string $repository Lizmap Repository * @param string $project Name of the project : mandatory * @param string $authid SRS or CRS authid like USER:* * @return Image rendered by the Map Server. */ function GetProj4() { // Get parameters if (!$this->getServiceParameters()) { return $this->serviceException(); } // Return response $rep = $this->getResponse('text'); $content = $this->project->getProj4($this->iParam('authid')); $content = (string) $content[0]; $rep->content = $content; $rep->setExpires("+300 seconds"); return $rep; }