o2r-project / geoextent

Python library for extrating geospatial extent of files and directories with multiple data formats
https://o2r.info/geoextent/
MIT License
1 stars 4 forks source link

Add function to print list of supported formats to console #29

Closed nuest closed 4 years ago

nuest commented 4 years ago
$ geoextent --formats
Shapefile
GeoTIFF
GeoJSON
YouQam commented 4 years ago

You added this in last pull request, should I do it in a defferent way?

Supported formats:
- GeoJSON (.geojson)
- Tabular data (.csv)
- Shapefile (.shp)
- GeoTIFF (.geotiff, .tif)
nuest commented 4 years ago

These are two different things. I was talking about a CLI command, and you copy and pasted the content of the help text, right?

YouQam commented 4 years ago

These are two different things. I was talking about a CLI command, and you copy and pasted the content of the help text, right?

Got it. Yes, I wanted to be sure about it.

YouQam commented 4 years ago

The error was occurring due to missing dash before input argument,

       parser.add_argument(
        '--input',
        action=readable_file_or_dir,
        default=os.getcwd(),
        nargs='+',
        help="input file or path"
    )
YouQam commented 4 years ago

Close