Supported file formats

The library supports the following file formats. Please see the project issues for upcoming formats and feature requests.


Supported formats:
- GeoJSON (.geojson)
- Tabular data (.csv)
- Shapefile (.shp)
- GeoTIFF (.geotiff, .tif)


Examples

GeoJSON

The file used in the example can be in the code repository: muenster_ring_zeit.geojson.

geoextent -b -t muenster_ring_zeit.geojson
{'format': 'application/geojson',
 'bbox': [7.60168075561523,
  51.9488147720619,
  7.64725685119629,
  51.9746240298775],
 'tbox': ['2018-11-14', '2018-11-14'],
 'crs': 4326}

CSV

Different CSV delimiters (;, ,) are automatically detected. Supported column names (in any combination) are as follows:

  • Latitude - latitude - lat - y

  • Longitude - longitude - long - lon - lng - x

The file used in the example can be obtained from Zenodo Sandbox record 256820.

geoextent -b -t cities_NL.csv
{'format': 'text/csv',
 'bbox': [4.3175, 51.434444, 6.574722, 53.217222],
 'tbox': ['30.09.2018', '30.09.2018'],
 'crs': '4326'}

GeoTIFF

The file used in the example is available online: wf_100m_klas.tif.

geoextent -b wf_100m_klas.tif
{'format': 'image/tiff',
 'crs': '4326',
 'bbox': [5.91530075648462,
  50.310251974013,
  9.46839871248397,
  52.530775532857]}

Shapefile

The file used in the example can be found at Geofabrik: shapefiles_toulouse.zip.

geoextent -b gis_osm_buildings_a_07_1.shp
{'format': 'application/shp',
 'bbox': [1.24951, 43.4682, 1.695996, 43.74498],
 'crs': 'None'}