Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Italian provinces borders not found #669

Open
NicolasAmadori opened this issue Oct 30, 2023 · 2 comments
Open

Italian provinces borders not found #669

NicolasAmadori opened this issue Oct 30, 2023 · 2 comments

Comments

@NicolasAmadori
Copy link

While trying to get all italian provinces borders i found out that for some 7 of them the border is not returned by the api.
The query i am executing is:
[out:json] area["ISO3166-2"= "IT-{initials}"]->.searchArea; ( relation(area.searchArea)["admin_level"="6"]; ); out geom;

using this vector values instead of {initials} ->
INITIALS= [ 'AG', 'AL', 'AN', 'AO', 'AR', 'AP', 'AT', 'AV', 'BA', 'BT', 'BL', 'BN', 'BG', 'BI', 'BO', 'BZ', 'BS', 'BR', 'CA', 'CL', 'CB', 'CI', 'CE', 'CT', 'CZ', 'CH', 'CO', 'CS', 'CR', 'KR', 'CN', 'EN', 'FM', 'FE', 'FI', 'FG', 'FC', 'FR', 'GE', 'GO', 'GR', 'IM', 'IS', 'SP', 'AQ', 'LT', 'LE', 'LC', 'LI', 'LO', 'LU', 'MC', 'MN', 'MS', 'MT', 'VS', 'ME', 'MI', 'MO', 'MB', 'NA', 'NO', 'NU', 'OT', 'OR', 'PD', 'PA', 'PR', 'PV', 'PG', 'PU', 'PE', 'PC', 'PI', 'PT', 'PN', 'PZ', 'PO', 'RG', 'RA', 'RC', 'RE', 'RI', 'RN', 'RM', 'RO', 'SA', 'VS', 'SS', 'SV', 'SI', 'SR', 'SO', 'TA', 'TE', 'TR', 'TO', 'OG', 'TP', 'TN', 'TV', 'TS', 'UD', 'VA', 'VE', 'VB', 'VC', 'VR', 'VV', 'VI', 'VT' ]

The provinces not working are: AO, BL, BZ, CI, OT, PN, PU.

@NicolasAmadori NicolasAmadori changed the title Italian provinces border not found Italian provinces borders not found Oct 30, 2023
@mmd-osm
Copy link
Contributor

mmd-osm commented Oct 30, 2023

area + rel(area) seems a bit complicated in this case. Maybe try:

[out:json];rel["ISO3166-2" ~ "^IT-(AG|AL|AN|AO|AR|AP|AT|AV|BA|BT|BL|BN|BG|BI|BO|BZ|BS|BR|CA|CL|CB|CI|CE|CT|CZ|CH|CO|CS|CR|KR|CN|EN|FM|FE|FI|FG|FC|FR|GE|GO|GR|IM|IS|SP|AQ|LT|LE|LC|LI|LO|LU|MC|MN|MS|MT|VS|ME|MI|MO|MB|NA|NO|NU|OT|OR|PD|PA|PR|PV|PG|PU|PE|PC|PI|PT|PN|PZ|PO|RG|RA|RC|RE|RI|RN|RM|RO|SA|VS|SS|SV|SI|SR|SO|TA|TE|TR|TO|OG|TP|TN|TV|TS|UD|VA|VE|VB|VC|VR|VV|VI|VT)$"]["admin_level"="6"]; out geom;

By the way, better ask howto questions on https://c.osm.org

@simolg
Copy link

simolg commented Dec 14, 2023

https://it.wikipedia.org/wiki/ISO_3166-2:IT
https://it.wikipedia.org/wiki/Province_d%27Italia

to see all the Italian provinces:
rel["ISO3166-2"~"IT-"]["admin_level"="6"]; out geom;

OK : Belluno, Bolzano, Pordenone, Pesaro e Urbino
rel["ISO3166-2"~"^IT-(BL|BZ|PN|PU)$"]["admin_level"="6"]; out geom;

they do not exist : Aosta (ex-province), Carbonia-Iglesias, Olbia-Tempio
rel["ISO3166-2"~"^IT-(AO|CI|OT)$"]["admin_level"="6"]; out geom;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants