Skip to content

Instantly share code, notes, and snippets.

@archaeogeek
Last active December 15, 2017 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archaeogeek/51c95827430de2ed8f1c76ef22621ec0 to your computer and use it in GitHub Desktop.
Save archaeogeek/51c95827430de2ed8f1c76ef22621ec0 to your computer and use it in GitHub Desktop.
loader os highways tinkering
# Extract gml files
find -type f -iname '*.gz' -exec gunzip --force --keep '{}' \;
# Update gml so ogr can read it
find -type f -iname '*.gml' -exec sed -i -e 's/os:Transaction/os:FeatureCollection/' -e 's/os:insert/os:featureMember/' '{}' \;
# Have ogr create default .gfs files for each gml
find -type f -iname '*.gml' -exec ogrinfo -ro -so '{}' \;
I think you'll need to update your ogr_cmd, replace $file_path with /vsigzip/$file_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment