manimaul / s57tiler

22 stars 3 forks source link

thread 'main' panicked on my ENC #7

Closed alexg-k closed 3 months ago

alexg-k commented 3 months ago

When using my custom chart with the following layer names: docker run -v $(pwd)/data:/data s57t s57tiler mbtiles -i /data/charts/DE110000/DE110000.000 -o /data -n DSID,ADMARE,BRIDGE,BUISGL,BUAARE,CANALS,COALNE,CONZNE,DWRTPT,DEPARE,DEPCNT,EXEZNE,ISTZNE,LAKARE,LNDARE,LNDRGN,LNDMRK,LIGHTS,MAGVAR,PILPNT,PRCARE,RCRTCL,RIVERS,SEAARE,SLCONS,SOUNDG,TESARE,TSELNE,TSSBND,TSSLPT,TSSRON,TSEZNE,TWRTPT,M_COVR,M_NSYS,M_QUAL this error occurs:

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:133:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error seems to occur independently on what combination of layer names I give to the command.

The is what I get when running ogrinfo data/charts/DE110000/DE110000.000:

INFO: Open of `data/charts/DE11000/DE110000.000'
      using driver `S57' successful.
1: DSID (None)
2: ADMARE (Polygon)
3: BRIDGE
4: BUISGL
5: BUAARE
6: CANALS
7: COALNE
8: CONZNE (Polygon)
9: DWRTPT (Polygon)
10: DEPARE
11: DEPCNT
12: EXEZNE (Polygon)
13: ISTZNE (Polygon)
14: LAKARE (Polygon)
15: LNDARE
16: LNDRGN
17: LNDMRK
18: LIGHTS (Point)
19: MAGVAR
20: PILPNT (Point)
21: PRCARE
22: RCRTCL
23: RIVERS
24: SEAARE
25: SLCONS
26: SOUNDG (3D Multi Point)
27: TESARE (Polygon)
28: TSELNE
29: TSSBND
30: TSSLPT (Polygon)
31: TSSRON (Polygon)
32: TSEZNE (Polygon)
33: TWRTPT (Polygon)
34: M_COVR (Polygon)
35: M_NSYS (Polygon)
36: M_QUAL (Polygon)

Any advice is welcome, thank you.

alexg-k commented 3 months ago

Sorry, I messed up the path to the file.