openpcrs / pcrs-scanner

MIT License
0 stars 0 forks source link

Permet d'analyser un fichier distant #6

Closed cedric-famibelle-pronzola closed 11 months ago

cedric-famibelle-pronzola commented 12 months ago

Exemple de résultat :

{
  fileName: '71-2020-0850-6631-LA93-0M05-RVB.jp2',
  driver: 'JP2OpenJPEG',
  extension: 'jp2',
  size: '20000x20000',
  bands: [
    {
      id: 1,
      colorInterpretation: 'Red',
      dataType: 'Byte',
      blockSize: '1024x1024',
      size: '20000x20000'
    },
    {
      id: 2,
      colorInterpretation: 'Green',
      dataType: 'Byte',
      blockSize: '1024x1024',
      size: '20000x20000'
    },
    {
      id: 3,
      colorInterpretation: 'Blue',
      dataType: 'Byte',
      blockSize: '1024x1024',
      size: '20000x20000'
    }
  ],
  compression: 'LOSSLESS',
  feature: {
    type: 'Feature',
    properties: {},
    geometry: { type: 'Polygon', coordinates: [Array] }
  },
  projection: { name: 'RGF93 v1 / Lambert-93', code: 'EPSG:2154' },
  pixelSize: '0.05x0.05'
}
jdesboeufs commented 11 months ago

On en reparle demain mais la sortie JSON est très GDAL. On devrait simplifier au maximum pour le front, et dé-spécifier.

jdesboeufs commented 11 months ago

Il faut revoir les dimensions, on peut pas garder des chaînes de caractères "XxY" mais on peut remplacer par {height: 2000, width: 2000}

jdesboeufs commented 11 months ago

Pour le format il faut le normaliser en JPEG2000 et pas donner le nom du driver qui est un point technique lié à GDAL.