[Talk-br] gráfico de evolução do número de pontos e vias no Brasil ao longo do tempo. Alguém já fez?
Alexandre Magno Brito de Medeiros
alexandre.mbm em gmail.com
Quarta Abril 9 17:38:35 UTC 2014
Se possível, e principalmente se já estiver feito, com certeza é melhor
pular a lida com CSV e ir direto a um PostgreSQL. Começando que a
"atualização" periódica do dados ficaria facilitada. E o principal: o banco
já pode (e deverá) estar normalizado.
Se aquela ferramenta do osm-history-renderer que entrega um PostgreSQL não
lhe der um banco útil, você pode usar osmium e criar a sua própria,
imitando-a. Modele bem o seu esquema relacional.
A ideia do unipt-stats não exclui nada do que estamos falando aqui. Só que
inicialmente o caso de testes dele é aqueles CSV (o que inclui a
problemática da importação útil deles). Ele fica uma camada acima. Provendo
um modo organizado (design) para utilizar em Python uma base de dados tal
como esse banco PostgreSQL que o osm-history-renderer entrega.
Alexandre Magno
Em 9 de abril de 2014 13:58, Lucas Ferreira Mation
<lucasmation em gmail.com>escreveu:
> ops, repetindo:
>
> transcrevo mais dicas do Piter:
>
> > Then I intend to use: OSMIUM or Osmconvert
> I don't think osmconvert can process history files. osmosis can't
> either. osmium is a library that can do this but you'll have to write a
> program agains this lib which does what ever you want.
>
> > now in need to do some homework to find out what do do after that.
> > What format to convert the data into? and how that would work?
> > I'm thinking I'll need to create a CSV with all the points that
> > existed in a given period. And repeat the processo for every 6months
> > or so. And take note of the number of lines in each CSV. Or maybe
> > query the history file directly for the number of nodes in each
> > period.
> You may take a look at
> <
> https://github.com/MaZderMind/osm-history-renderer/blob/master/TUTORIAL.md
> >
>
> Its one of the tools I use to process history files. I't'll give you a
> postgres -database which you can query to give you numbers for a given
> point in time.
>
> > I suppose a more interesting ,but also more complicated thing, would
> > be to calculate the ways lenght of all ways in a given period
> the above importer creates PostGIS-Geometries for ways, nodes and
> polygons, so you can use PostGIS-Functions to get way-lenghtes,
> polygon-areas for each given point in time.
>
> > In the end what I want is a graph in with Y=number of nodes, or lenght
> > for ways and X=time
> There should be tons of fools go generate charts and graphs from
> postgresql queries.
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://lists.openstreetmap.org/pipermail/talk-br/attachments/20140409/44b91bae/attachment.html>
Mais detalhes sobre a lista de discussão Talk-br