WIP: Add GeoImage (georeferenced image)

This commit is contained in:
2025-06-16 17:33:19 +02:00
parent e5810d94c6
commit 726772ed75
3 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
use App\Entity\GeoImage;
use Doctrine\ORM\EntityManagerInterface;
class GeoImageController extends AbstractController
{
#[Route('/geoimage', name: 'app_geo_image')]
public function index(EntityManagerInterface $em): JsonResponse
{
$repo = $em->getRepository(GeoImage::class);
$geoImages = $repo->findAllWithGeometry();
return $this->json($geoImages);
}
}