Database Reference
In-Depth Information
Youhavethencreatedabashscriptinwhichyouiteratedeverysinglecountryand
pulled out to a shapefile the clipped rivers for that country using ogr2ogr and the
previously created view as the input layer.
Foriteratingthecountriesinthescript,youhavebeenusing ogrinfo withthe -sql
option,usingaSQL SELECT DISTINCT statement.Youhaveusedacombinationof
the grep and awk Linuxcommands,pipedtogethertogeteverysinglecountrycode.
The grep commandisautilityforsearchingplain-textdatasetsforlinesmatchinga
regularexpression,while awk isaninterpretedprogramminglanguagedesignedfor
text processing and typically used as a data extraction and reporting tool.
Search WWH ::




Custom Search