Skip to content

Suppression de code non utilisé dans processPatchAsync de gdal_processing.js#451

Merged
ACornuIGN merged 1 commit into
ign-packo:2Opifrom
ACornuIGN:refactor_gdal_process
Jun 9, 2026
Merged

Suppression de code non utilisé dans processPatchAsync de gdal_processing.js#451
ACornuIGN merged 1 commit into
ign-packo:2Opifrom
ACornuIGN:refactor_gdal_process

Conversation

@ACornuIGN

@ACornuIGN ACornuIGN commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Re-factorisation de :

  • processPatchAsync: Correction de ce que fait la fonction en supprimant le code mort dedans. Fonction utilisé que dans le cas d'une saisie manuelle (Polygone), elle a été modifié pour prendre en compte les opi sec dans le cas ou le paramètre isAuto = True. Le paramatre isAuto est toujours False car la méthode est appelée qu'une fois, dans une condition quand isAuto = False.
  • renommage de la méthode en processPatchPolygonAsync

@ACornuIGN ACornuIGN requested a review from ftoromanoff June 4, 2026 08:11
@ACornuIGN ACornuIGN self-assigned this Jun 4, 2026
@ACornuIGN ACornuIGN added the wip Travail en cours (ne pas merger) label Jun 4, 2026
@ACornuIGN ACornuIGN changed the title Re-factorisation de 2 fonctions dans gdal_processing.js Suppression de code non utilisé dans processPatchAsync de gdal_processing.js Jun 4, 2026
@ACornuIGN ACornuIGN force-pushed the refactor_gdal_process branch from 5e60f80 to 0b85725 Compare June 4, 2026 08:59
@ACornuIGN ACornuIGN removed the wip Travail en cours (ne pas merger) label Jun 4, 2026
@ACornuIGN

ACornuIGN commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

@ftoromanoff c'est bon pour review

Comment thread gdal_processing.js Outdated
Comment thread gdal_processing.js Outdated
Comment thread gdal_processing.js Outdated
Comment thread gdal_processing.js
urlOpiSecIr = path.join(dnameSec, fnameSec);
}
}
const { urlOpiRefRgb, urlOpiRefIr } = patch;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rgb avant Ref ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je peux inversé mais ça va grossir la refactor car je vais devoir changer en amont et plus bas à tout les endroits qu'ils sont utilisé.

Je propose de le mettre dans la re-factorisation global, pour pas que la PR prennent trop de temps

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Celle parlé en réunion où j'ai une branche de re-factorisation sur laquelle j'applique ou vais appliquer les re-factorisations que l'on parle pendant les PR et les réunions, qui passera en plusieurs petites PR pour pas avoir un truc énorme quand les priorités sur les deux autres PR (#450 et #449) et la saisie de block seront fait

@ACornuIGN ACornuIGN added the wip Travail en cours (ne pas merger) label Jun 5, 2026
@ACornuIGN ACornuIGN force-pushed the refactor_gdal_process branch from b280a4c to 674afa1 Compare June 5, 2026 08:29
@ACornuIGN ACornuIGN removed the wip Travail en cours (ne pas merger) label Jun 5, 2026
@ACornuIGN ACornuIGN requested a review from ftoromanoff June 5, 2026 08:37
Comment thread gdal_processing.js Outdated
Comment thread gdal_processing.js Outdated
Comment thread gdal_processing.js Outdated
@ACornuIGN ACornuIGN added wip Travail en cours (ne pas merger) and removed wip Travail en cours (ne pas merger) labels Jun 9, 2026
@ACornuIGN ACornuIGN requested a review from ftoromanoff June 9, 2026 09:48
@ACornuIGN ACornuIGN added the wip Travail en cours (ne pas merger) label Jun 9, 2026
@ACornuIGN

Copy link
Copy Markdown
Collaborator Author

Nettoyage des commits

@ACornuIGN ACornuIGN force-pushed the refactor_gdal_process branch from b5168db to 80dc6df Compare June 9, 2026 13:21
@ACornuIGN ACornuIGN removed the wip Travail en cours (ne pas merger) label Jun 9, 2026
@ACornuIGN ACornuIGN merged commit 74dfdeb into ign-packo:2Opi Jun 9, 2026
4 checks passed
@ACornuIGN ACornuIGN deleted the refactor_gdal_process branch June 9, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants