ogrinfo on various types of tasks. Each task is
running using Python timeit
module.
from timeit import timeit
time = timeit(
"""subprocess.run(["ogrinfo", "more", "params"],
stdout=subprocess.PIPE)""")
NOTE: Graphs are using only GeoPackage vs. Shapefile times. It was not possible to work with GeoJSON in size of 4GB. GML proofed to be working, but the times were generally very slow, it was meaning less to visualise them.
It was measured on an EC2 c5a.4xlarge instance (SSD, 32GB RAM, AMD® Epyc 7r32 16 cores)
Test time, till all features are read sequentially using simple
ogrinfo command.
ogrinfo gis.osm_buildings_a_free_1.shp gis.osm_buildings_a_free_1
Test time, till file metadata are displayed using
ogrinfo command.
ogrinfo -so \
gis.osm_buildings_a_free_1.shp gis.osm_buildings_a_free_1
Test time, till feature with given fid is
identified using ogrinfo command.
ogrinfo -fid 63347 \
gis.osm_buildings_a_free_1.shp gis.osm_buildings_a_free_1
Test time, till feature with given spat condition
is identified using ogrinfo command.
ogrinfo -spat 5.421254 52.129629 5.421254 52.129629 \
gis.osm_buildings_a_free_1.shp gis.osm_buildings_a_free_1
Test time, till feature with given where condition
is identified using ogrinfo command.
ogrinfo -where "name='OBS De Hobbit'" \
gis.osm_buildings_a_free_1.shp gis.osm_buildings_a_free_1
Last modification: 2017-10-22
Initially created by: Jachym Cepicky,
OpenGeoLabs s.r.o.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License
Contribute: On GitHub