I'll repeat what I said before: osm2pgsql schema is for rendering. It parses the OSM format and generates polygons/multipolygons/linestrings.
pgsnapshot schema is for generating OSM XML data. It does some parsing to generate linestrings for ways to assist with querying but will not combine ways into polygons. If you want to do something else, you'll need some other tool. osm2pgsql's schema and database is a good place to start if you want to generate data of some format that expects polygons, but I don't know of any tools that will let you query osm2pgsql's schema using OSM tags. JXAPI will not work with osm2pgsql's schema and for the amount of work required to make it work you might as well just write a completely different tool. It is very tightly coupled with Osmosis and its pgsnapshot schema. On Tue, May 31, 2011 at 6:05 PM, Stefan Keller <[email protected]> wrote: > 2011/6/1 Ian Dees <[email protected]> wrote: > > Osmosis/JXAPI is looking for some pgsnapshot-specific things (including > > schema version numbers, tags stored in an hstore, etc.) that won't be > there > > unless you heavily modify osm2pgsql. > > Sorry for insisting, but osm2pgsql supports hstore... Remains the > version attribute. Seem's I'll need to take a closer look at JXAPI. > > > As I said earlier, JXAPI is meant *specifically* to generate OSM XML and > > nothing else. I would recommend that you not use JXAPI as you're not > trying > > to generate OSM XML output. > > I'd be happy to output OSM XML - but perhaps without timestamp, uid, > user, changeset. > > Yours, Stefan > > > 2011/6/1 Ian Dees <[email protected]> wrote: > > Osmosis/JXAPI is looking for some pgsnapshot-specific things (including > > schema version numbers, tags stored in an hstore, etc.) that won't be > there > > unless you heavily modify osm2pgsql. > > As I said earlier, JXAPI is meant *specifically* to generate OSM XML and > > nothing else. I would recommend that you not use JXAPI as you're not > trying > > to generate OSM XML output. >
_______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

