Message posté par : chowchow
----------------------------------------
CREATE OR REPLACE FUNCTION atd16_patrimoine_foncier.f_srid()
RETURNS trigger
LANGUAGE 'plpgsql'
COST 100
VOLATILE NOT LEAKPROOF
AS $BODY$
BEGIN
NEW.the_geom := st_Transform(st_SetSRID(NEW.the_geom,4326),0);
END;
$BODY$;
ALTER FUNCTION atd16_patrimoine_foncier.f_srid()
OWNER TO sditecgrp;
GRANT EXECUTE ON FUNCTION atd16_patrimoine_foncier.f_srid() TO sditecgrp;
GRANT EXECUTE ON FUNCTION atd16_patrimoine_foncier.f_srid() TO PUBLIC;
J ai testé ça et j ai le message d erreur suivant lors de l intégration d'une donnée
ERROR: ST_Transform: 0 is an invalid target SRID
CONTEXT: PL/pgSQL function atd16_patrimoine_foncier.f_srid() line 5 at assignment
État SQL : XX000
----------------------------------------
Le message est situé
https://georezo.net/forum/viewtopic.php?pid=351846#p351846
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