Skip to content

enc_dump.py: A python tool for extracting data from US Electronic Nautical Charts

License

Notifications You must be signed in to change notification settings

valschmidt/enc_dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

enc_dump

enc_dump.py is a python script (build on GDAL) which extracts Layers, Features and Feature Attributes from Electronic Nautical Charts.

usage: enc_dump.py [-h] [-f FILE | -d DIRECTORY] [-v] [-l LAYER] [-F FEATURE]

Enc_dump will dump Layer, Feature and Feature Attributes from a US Electronic
Nautical Chart (ENC). Enc_dump will parse data from an individual file, or
recursively walk a directory of files parsing every ENC found. One may specify
the layer and feature ID to extract, (or <all> for all of them) Output is
written one feature attribute per line, with prepended file name, Layer,
Feature ID and Feature Attribute name. If a geometry is associated with the
attribute, it is prepended to the line as WKT.

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  ENC file to survey.
  -d DIRECTORY, --directory DIRECTORY
                    Directory of ENC files to survey.
  -v, --verbose         Verbose output, -vvv = more output
  -l LAYER, --layer LAYER
                        Layer to Extract, or "all" for all of them.
  -F FEATURE, --feature FEATURE
                    Comma separated list of features to extract. This only
                    works for scalar values. ("all" for all of them)

Written with StackEdit.

About

enc_dump.py: A python tool for extracting data from US Electronic Nautical Charts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages