geoextent
can be called on the command line with this command :
geoextent.__main__:arg_parser
Note
Depending on the local configuration, geoextent might need to be called with the python interpreter prepended:
python -m geoextent ...
geoextent -h
import geoextent.__main__ as geoextent geoextent.print_help()
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 muenster_ring_zeit.geojson
Output:
import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', True, False)
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 -t muenster_ring_zeit.geojson
Output:
import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', False, True)
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 -t muenster_ring_zeit.geojson
import geoextent.lib.extent as geoextent geoextent.fromFile('../tests/testdata/geojson/muenster_ring_zeit.geojson', True, True)
Geoextent also supports queries for multiple files inside folders or ZIP file(s).
geoextent -b -t folder_two_files
import geoextent.lib.extent as geoextent geoextent.fromDirectory('../tests/testdata/folders/folder_two_files', True, True)
The output of this function is the combined bbox or tbox resulting from merging all results of individual files (see: ../supportedformats/index_supportedformats
) inside the folder or zipfile. The resulting coordinate reference system CRS
of the combined bbox is always in the EPSG: 4326 system.
Geoextent also supports queries from (Open) Zenodo repositories.
geoextent -b -t https://zenodo.org/record/820562
import geoextent.lib.extent as geoextent geoextent.from_repository('https://zenodo.org/record/820562', True, True)
The output of this function is the combined bbox or tbox resulting from merging all results of individual files (see: ../supportedformats/index_supportedformats
) inside the Zenodo repository. The resulting coordinate reference system CRS
of the combined bbox is always in the EPSG: 4326 system.
You can enable detailed logs by passing the --debug
option, or by setting the environment variable GEOEXTENT_DEBUG=1
.
geoextent --debug -b -t muenster_ring_zeit.geojson
GEOEXTENT_DEBUG=1 geoextent -b -t muenster_ring_zeit.geojson
You can enable details for folders and ZIP files by passing the --details
option, this option allows you to access to the geoextent of the individual files inside the folders/ ZIP files used to compute the aggregated bounding box (bbox) or time box (tbox).
geoextent --details -b -t folder_one_file
import geoextent.lib.extent as geoextent geoextent.fromDirectory('../tests/testdata/folders/folder_one_file', True, True,True)
You can export the result of Geoextent to a Geopackage file. This file contains the output of all files within the folder or repository.
geoextent -b -t --output path/to/output/geopackage_file.gpkg folder_path