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

Merge data from CartoBCN #35

Open
javiersanp opened this issue Nov 14, 2018 · 2 comments
Open

Merge data from CartoBCN #35

javiersanp opened this issue Nov 14, 2018 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@javiersanp
Copy link
Member

Document and follow the import guidelines process for the addresses in CartoBCN in a way similar to issue #11.

https://wiki.openstreetmap.org/wiki/ES:Espa%C3%B1a/Contribuidores#Ayuntamiento_de_Barcelona

@javiersanp javiersanp added enhancement New feature or request help wanted Extra attention is needed labels Nov 14, 2018
@javiersanp
Copy link
Member Author

javiersanp commented Feb 21, 2022

url descarga: https://opendata-ajuntament.barcelona.cat/data/dataset/6b5cfa7b-1d8d-45f0-990a-d1844d43ffd1/resource/6bfe63d8-8c6c-4cde-aaa3-b7c48fa66e34/download
metadatos: https://opendata-ajuntament.barcelona.cat/data/es/dataset/taula-direle/resource/6bfe63d8-8c6c-4cde-aaa3-b7c48fa66e34 (Fecha publicación| 03/03/2020)
nombre: 0501040100_Adreces.zip/0501040100_Adreces_TXT.shp
crs: EPSG:25831
campos: NOM_VIA (calle), LITERAL (número)
encoding: ISO-8859-1
Abreviaturas:

     78 Av      Avinguda
     23 Bda     Baixada
   2884 C       Carrer
     65 Camí    Camí
      5 Cro     Carreró
      3 Csta    Costa
     29 Ctra    Carretera
      1 Dav     Davallada
      1 Drec    Drecera
     10 Esc     Escales
      1 Escu    Escullera
      2 Esp     Espigó
      2 G.V.    Gran Via
      4 Jard    Jardins
     24 Moll    Moll
      1 NULL
      1 Nus     Nus
      1 Parc    Parc
     12 Pas     Pas
      1 Pdis    Passadís
     77 Pg      Passeig
    502 Pl      Plaça
      4 Pla     Pla
     19 Plta    Placeta
      1 Port    Port
    362 Ptge    Passatge
      7 Ptja    Platja
     15 Rbla    Rambla
      9 Rda     Ronda
      6 Rier    Riera
     13 T       Torrent
      3 Trav    Travessera
      2 Trvs    Travessia
      6 Via     Via
      1 Viad    Viaducte

@javiersanp
Copy link
Member Author

javiersanp commented Feb 21, 2022

        fn = "0501040100_Adreces.zip"
        cbcn = geo.BaseLayer(fn, "cbcn", "ogr")
        cbcn.setProviderEncoding("ISO-8859-1")
        for f in cbcn.getFeatures():
            print(f"{f['NOM_VIA']}\t{f['LITERAL']}")

javiersanp added a commit that referenced this issue Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant