Last active
December 15, 2017 11:53
-
-
Save archaeogeek/51c95827430de2ed8f1c76ef22621ec0 to your computer and use it in GitHub Desktop.
loader os highways tinkering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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