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 <[email protected]>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. >
_______________________________________________ Talk-br mailing list [email protected] https://lists.openstreetmap.org/listinfo/talk-br
