[Talk-ro] Import în masă a localităților (thread #2)
Ioan Indreias
indreias at gmail.com
Fri Jun 5 11:41:42 BST 2009
Salut tuturor,
Am incercat sa postez prin "google groups" pe thread-ul "Import în masă a
localităților" dar ceva nu merge - imi zice "You do not have the permission
required to post."
Any way - am vazut ca pe thread-ul de import al localitatilor nu s-a mai
miscat nimic, desi Vasile a postat inca din 23 Mai link-ul
http://earth.unibuc.ro/download/romania-seturi-vectoriale
de unde se pot trage datele despre localitati (fara poligonul de granita
administrativa).
In ideea ca acestea se vor putea trage ulterior (sau din fisierele de pe
www.cultura.ro, la care s-a obtinut dreptul de folosire) am inceput un
script de parsare a fisierelor csv, cu output compatibil pentru JOSM
(conform http://wiki.openstreetmap.org/wiki/JOSM_file_format)
Mai jos este un prim rezultat (din judetul Alba), pe care vreau sa-l discut
cu voi, pentru o implementare consistenta/mai buna:
<node id='-2' visible='true' lon='23.573670047565251'
>> lat='46.069475936456065'>
>
> <tag k='name' v='ALBA IULIA'/>
>
> <tag k='SIRUTA:CODE' v='1026'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1017'/>
>
> <tag k='SIRUTA:TYPE' v='9'/>
>
> <tag k='postal_code' v='2500'/>
>
> <tag k='is_in' v='ALBA,ROMANIA'/>
>
> <tag k='population' v='65091'/>
>
> <tag k='place' v='city'/>
>
> </node>
>
> <node id='-3' visible='true' lon='23.584867930393322'
>> lat='46.099304280173087'>
>
> <tag k='name' v='BĂRĂBANŢ'/>
>
> <tag k='SIRUTA:CODE' v='1035'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1017'/>
>
> <tag k='SIRUTA:TYPE' v='10'/>
>
> <tag k='postal_code' v='2510'/>
>
> <tag k='is_in' v='ALBA IULIA,ALBA,ROMANIA'/>
>
> <tag k='population' v='2145'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-4' visible='true' lon='23.5557313451772'
>> lat='46.101414956581678'>
>
> <tag k='name' v='MICEŞTI'/>
>
> <tag k='SIRUTA:CODE' v='1044'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1017'/>
>
> <tag k='SIRUTA:TYPE' v='10'/>
>
> <tag k='postal_code' v='2518'/>
>
> <tag k='is_in' v='ALBA IULIA,ALBA,ROMANIA'/>
>
> <tag k='population' v='1420'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-5' visible='true' lon='23.594298234285848'
>> lat='46.020333036671254'>
>
> <tag k='name' v='OARDA'/>
>
> <tag k='SIRUTA:CODE' v='1053'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1017'/>
>
> <tag k='SIRUTA:TYPE' v='10'/>
>
> <tag k='postal_code' v='2515'/>
>
> <tag k='is_in' v='ALBA IULIA,ALBA,ROMANIA'/>
>
> <tag k='population' v='1830'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-6' visible='true' lon='23.524698899458915'
>> lat='46.04689567279798'>
>
> <tag k='name' v='PÂCLIŞA'/>
>
> <tag k='SIRUTA:CODE' v='1062'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1017'/>
>
> <tag k='SIRUTA:TYPE' v='10'/>
>
> <tag k='postal_code' v='2524'/>
>
> <tag k='is_in' v='ALBA IULIA,ALBA,ROMANIA'/>
>
> <tag k='population' v='682'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-7' visible='true' lon='23.612864006592957'
>> lat='46.046064483327982'>
>
> <tag k='name' v='CIUGUD'/>
>
> <tag k='SIRUTA:CODE' v='1080'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1071'/>
>
> <tag k='SIRUTA:TYPE' v='22'/>
>
> <tag k='postal_code' v='2516'/>
>
> <tag k='is_in' v='ALBA,ROMANIA'/>
>
> <tag k='population' v='423'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-8' visible='true' lon='23.630138673798861'
>> lat='46.076591921043295'>
>
> <tag k='name' v='DRÂMBAR'/>
>
> <tag k='SIRUTA:CODE' v='1099'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1071'/>
>
> <tag k='SIRUTA:TYPE' v='23'/>
>
> <tag k='postal_code' v='2511'/>
>
> <tag k='is_in' v='CIUGUD,ALBA,ROMANIA'/>
>
> <tag k='population' v='372'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-9' visible='true' lon='23.597689549018142'
>> lat='46.039993680786729'>
>
> <tag k='name' v='LIMBA'/>
>
> <tag k='SIRUTA:CODE' v='1106'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1071'/>
>
> <tag k='SIRUTA:TYPE' v='23'/>
>
> <tag k='postal_code' v='2516'/>
>
> <tag k='is_in' v='CIUGUD,ALBA,ROMANIA'/>
>
> <tag k='population' v='290'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
> <node id='-10' visible='true' lon='23.668342657005667'
>> lat='46.08013894521396'>
>
> <tag k='name' v='HĂPRIA'/>
>
> <tag k='SIRUTA:CODE' v='1115'/>
>
> <tag k='SIRUTA:CODE_SUP' v='1071'/>
>
> <tag k='SIRUTA:TYPE' v='23'/>
>
> <tag k='postal_code' v='2512'/>
>
> <tag k='is_in' v='CIUGUD,ALBA,ROMANIA'/>
>
> <tag k='population' v='507'/>
>
> <tag k='place' v='village'/>
>
> </node>
>
>
Cum se vede din exemplul de mai sus am adaugat cheia SIRUTA cu subcampurile
CODE, CODE_SUP si TYPE (puteti gasi descrierea metodologiei SIRUTA
aici<http://www.insse.ro/cms/files/siruta/Metodologie.doc>
)
Pe baza informatiilor din metodologia de mai sus am construit urmatoare
relatie:
SIRUTA:TYPE PLACE
----------- -------
1,4,9,40 city 40 doar pentru Bucuresti. In rest sunt municipii
sau resedinta de municipiu
2,5,17 town orase si resedinta de oras
3,11,19,22,23 village sate si comune
10,18 village alte localitati
6 <null> aici nu am idee ce sa trec (sunt sectoarele
Bucurestiului)
De asemenea am construit is_in pe baza informatiei din campul NAME_SUP, din
care am filtrat MUNICIPIUL si ORAS, cu eliminarea autoreferintelor (de tipul
ALBA IULIA is_in ALBA IULIA).
Aici ar exista varianta in care sa pastram referinte de tipul
is_in=MUNICIPIUL ALBA IULIA si adaugarea unui punct de tip
place=municipality
name=MUNICIPIUL ALBA IULIA
Daca aveti comentarii, recomandari sau/si propuneri - sau poate se ocupa
altcineva de chestia asta si efortul meu este de prisos - va rog sa le
transmiteti astfel incat sa putem demara acest import cat mai repede
(propunerea fiind sa facem importul in 2 pasi -> step 1=import de tip node,
step 2=import de tip boundary - cand va fi disponibil).
--
Toate bune,
Ioan (Nini) Indreias - indreias at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk-ro/attachments/20090605/49fd28f6/attachment.html>
More information about the Talk-ro
mailing list