LarsSchy / SMAC-M

Scripts to convert nautical data and display it with Mapserver
MIT License
66 stars 33 forks source link

IndexError: list index out of range #16

Closed hungtranm18 closed 6 years ago

hungtranm18 commented 6 years ago

Sorry team, I'm learning how to display S-57 ENC on the web. I tried with mapserver but it only shows a layer without style like OpenCPN. Luckily I have found your project but I don't quite understand how it works. I'm getting some errors when running below command:

(SMAC-M) root@ubuntu:/home/hungtm/Downloads/SMAC-M/chart-installation/data_files_conversion# python3 ./S57_to_Shape.py ../../ENC_ROOT/ ../../SHAPE/
CL1 | Starting processing
CL1 | Merging S57 features
CL1 | Creating output shape files
CL1 | Preprocessing
CL1 | Preprocessing soundg
Process Process-1:
Traceback (most recent call last):
  File "/home/hungtm/Downloads/SMAC-M/chart-installation/data_files_conversion/process_level.py", line 109, in process
    for f in out_files if "SOUNDG" in f][0]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/pyenv/versions/3.5.2/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
    self.run()
  File "/opt/pyenv/versions/3.5.2/lib/python3.5/multiprocessing/process.py", line 93, in run
    self._target(*self._args, **self._kwargs)
  File "/home/hungtm/Downloads/SMAC-M/chart-installation/data_files_conversion/process_level.py", line 122, in process
    level, dataset))
NameError: name 'dataset' is not defined

Can you guide me through the steps to displaying a ENC website with mapserver?