Message posté par : pmakowski (philippe.makowski(a)rtech.fr)
----------------------------------------
Bonjour,
J'ai un problème avec la fonction st_makeline au passage du meridien.
Nous avons des trajectoires qui font le tour de la terre et st_makeline m'affiche une
ligne horizontale qui ne devrait pas exister.
La requête :
-----------------
Code :
WITH ptm AS (
SELECT b.idprocess,
ST_ShiftLongitude(ST_SetSRID(st_makepoint(
b.longitude,
b.latitude
),4326)) AS pt,
b.date_utc t
FROM alberix_data.process_tm_data b
JOIN alberix_data.process p on p.idprocess = b.idprocess
JOIN alberix_data.flight f on f.idflight = p.idflight
WHERE f.idflight=288
)
SELECT ptm.idprocess,
st_makeline(ptm.pt ORDER BY ptm.t) AS st_makeline
FROM ptm
GROUP BY ptm.idprocess
-----------------
Voici l'image dans pgAdmin :
https://drop.infini.fr/r/8JUNB0nLPc#Bn4F/aasAfxdqFzdbdLIJ/Jarv8buJJI6g9UYJh…
Comment supprimer cette méchante ligne horizontale ?
Merci
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=334709#p334709
Pour y répondre : geobd(a)ml.georezo.net ou reply de votre messagerie
Pour vous désabonner connectez-vous sur le forum puis Profil / Abonnement
--
Association GeoRezo - le portail géomatique
https://georezo.net