如何在形状文件中列出属性的值。
ogrinfo -so -al build / SLA11aAust.shp 显示属性。列出STATE_CODE值的哪个命令::
Layer name: SLA11aAust
Geometry: Polygon
Feature Count: 1390
Extent: (96.816941, -43.740510) - (159.109219, -9.142176)
Layer SRS WKT:
GEOGCS["GCS_GDA_1994",
DATUM["Geocentric_Datum_of_Australia_1994",
SPHEROID["GRS_1980",6378137,298.257222101]],
PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295]]
STATE_CODE: String (1.0)
SLA_CODE11: String (9.0)
SLA_NAME11: String (50.0)
SLA_5DIGIT: String (5.0)
SLA_REG11: String (9.0)

答案 0 :(得分:1)
根据this post,您可以执行以下操作:
ogrinfo SLA11aAust.shp -dialect sqlite -sql "select STATE_CODE from SLA11aAust"
然后,您可以使用SQLite
语句优化SQL查询,以对结果进行排序或匹配特定的参数组合。