Skip to content

Latest commit

 

History

History
83 lines (52 loc) · 1.94 KB

cli.rst

File metadata and controls

83 lines (52 loc) · 1.94 KB

Command-Line Interface (CLI)

Basics

geoextent can be called on the command line with this command:

geoextent.__main__:argparser

Examples

Note

Depending on the local configuration, geoextent might need to be called with the python interpreter prepended:

python -m geoextent ...

Show help message

geoextent -h

import geoextent.__main__ as geoextent geoextent.print_help_fun()

Extract bounding box from a single file ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Note

You can find the file used in the examples of this section from muenster_ring_zeit. Furthermore, for displaying the rendering of the file contents, see rendered blob.

geoextent -b -input= 'muenster_ring_zeit.geojson'

Output:

import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', True, False)

Extract time interval from a single file

geoextent -t -input='file.geojson'

Output:

import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', False, True)

Extract both bounding box and time interval from a single file

geoextent -b -t -input= 'file.geojson'

import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', True, True)