On Thu, 2010-12-16 at 22:10 +0100, Peter Körner wrote:
>
> Am 16.12.2010 22:05, schrieb Stefan Keller:
> >> Rewriting xapi on the other hand is an excellent idea.
> >
> > Yes, good idea.
> >
> > I would probably start with osm2pgsql and setup a mirror (incuding
> > hstore). Since osm2pgsql uses the PostGIS database I think it
> > should'nt be too hard to turn predicates to WHERE clauses and bbox to
> > a ST_Within query in PostGIS.
>
> The osm2pgsql scheme does not store meta information (version, creator,
> timestamp), which are required to create valid .osm files.
I am not sure whether osm2pgsql would be the right starting place or not
since it was never designed for this application but it can at least
store this information...
$ osm2pgsql --help
...
-x|--extra-attributes
Include attributes for each object in the database.
This includes the username, userid, timestamp and
version.
Note: this option also requires additional entries in
your style file.
Jon
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev