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)
- GeoTIFF (.geotiff, .tif)
- Shapefile (.shp)
- GeoPackage (.gpkg)
- GPS Exchange Format (.gpx)
- Geography Markup Language (.gml)
- Keyhole Markup Language (.kml)



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/shp',
 'bbox': [7.6016807556152335,
  51.94881477206191,
  7.647256851196289,
  51.974624029877454],
 'crs': '4326',
 'tbox': ['2018-11-14', '2018-11-14']}

CSV

Different CSV delimiters (;, ,) are automatically detected. Supported column names, by using Regular expressions operations, are as follows:

  • Latitude - (.)*latitude(.)* - ^lat - lat$ - ^y - y$

  • Longitude - (.)*longitude" - (.)*long(.) - ^lon - lon$ - (.)*lng(.)* - ^x - x$

  • Time - (.)*timestamp(.)* - (.)*datetime(.)* - (.)*time(.)* - ^date - date$

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': ['2018-09-30', '2018-09-30'],
 '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',
 'bbox': [5.91530075648462,
  50.310251974013,
  9.46839871248396,
  52.5307755328569],
 'crs': '4326'}

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',
 'crs': '4326',
 'bbox': [1.24951, 43.4682, 1.695996, 43.74498]}

GeoPackage

The file used in the example is available online: sample1_2.gpkg.

geoextent -b sample1_2.gpkg
{'format': 'application/shp',
 'crs': '4269',
 'bbox': [-178.217598362, 18.921786345, -66.969271036, 71.4062353530001]}

GPS Exchange Format

The file used in the example is available online: run.gpx.

geoextent -b run.gpx
{'format': 'application/shp',
 'crs': '4326',
 'bbox': [-77.02575484290719,
  38.920014034956694,
  -77.01215906068683,
  38.92795957624912]}

Geography Markup Language

The file used in the example is available online: clc_1000_PT.gml.

geoextent -b clc_1000_PT.gml
{'format': 'application/shp',
 'crs': '4258',
 'bbox': [-17.54207, 32.39669, -6.95939, 39.30113999999999]}

Keyhole Markup Language

The file used in the example is available online: KML_Samples.kml.

geoextent -b KML_Samples.kml
{'format': 'application/shp',
 'crs': '4326',
 'bbox': [-122.0860162273783,
  36.07954952145647,
  15.35832653742206,
  38.87291016281703]}