how to extract all countries geometry from Openstreet map dataset in BigQuery
问题 I am using this query to extract the geometry of all countries using OSM, it works ok, but I am sure, it is creating a duplicated as I am using flag as a reference, some places have a flag, but they are not really countries SELECT feature_type, osm_id, osm_timestamp, geometry,ar.key,ar.value, FROM `bigquery-public-data.geo_openstreetmap.planet_features`,UNNEST(all_tags) ar where ('boundary', 'administrative') IN (SELECT (key, value) FROM UNNEST(all_tags)) and(feature_type="polygon" or feature