voici la règle qui tourne et qui peut servir à tous. Merci Eric Bonne aprem steph Le 15/01/2024 à 11:05, Eric Chatellier a écrit :
Cela me semble ok.
J'aurais juste remplacé: File file = new File(myShpFolder+"/"+zName+".shp");
par : File file = new File(myShpFolder, zName+".shp");
Pour ne pas que le "/" pose problème sous windows.
Le 15/01/2024 à 10:50, Stephanie MAHEVAS a écrit :
Bonjour Eric
merci !
je ne peux pas lancer de suite mon script.
Peux-tu me dire si cela te semble correct ?
merci
bonne journée
Stephanie
Le 15/01/2024 à 09:37, Eric Chatellier a écrit :
import fr.ifremer.isisfish.map.GeoTools;
for (Zone zone : zones) { File file = new File(...); FisheryRegion fisheryRegion = zone.getFisheryRegion(); List<Cell> cells = zone.getCell(); GeoTools.setCellToShapefile(fisheryRegion, cells, zone.getName(), file); } -- ...................................................................... Stephanie MAHEVAS UMR MARBEC - site de Sète IFREMER/HM https://annuaire.ifremer.fr/cv/16343/
Tel: (33) 04 99 57 32 39 (8239) - 06 75 83 59 33
o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................
_______________________________________________ Isis-fish-users mailing list Isis-fish-users@list.isis-fish.org https://list.isis-fish.org/cgi-bin/mailman/listinfo/isis-fish-users Archives et moteur de recherche: http://list.isis-fish.org/pipermail/isis-fish-users/
-- ...................................................................... Stephanie MAHEVAS UMR MARBEC - site de Sète IFREMER/HM https://annuaire.ifremer.fr/cv/16343/ Tel: (33) 04 99 57 32 39 (8239) - 06 75 83 59 33 o \ o / _ o __| \ / |__ o _ \ o / o /|\ | /\ ___\o \o | o/ o/__ /\ | /|\ / \ / \ | \ /) | ( \ /o\ / ) | (\ / | / \ / \ ......................................................................