I'll repeat what I said before:<div><br></div><div>osm2pgsql schema is for rendering. It parses the OSM format and generates polygons/multipolygons/linestrings.</div><div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br></div><div>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.</div>
<div><br><div class="gmail_quote">On Tue, May 31, 2011 at 6:05 PM, Stefan Keller <span dir="ltr"><<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/6/1 Ian Dees <<a href="mailto:ian.dees@gmail.com">ian.dees@gmail.com</a>> wrote:<br>
> Osmosis/JXAPI is looking for some pgsnapshot-specific things (including<br>
> schema version numbers, tags stored in an hstore, etc.) that won't be there<br>
> unless you heavily modify osm2pgsql.<br>
<br>
Sorry for insisting, but osm2pgsql supports hstore... Remains the<br>
version attribute. Seem's I'll need to take a closer look at JXAPI.<br>
<br>
> As I said earlier, JXAPI is meant *specifically* to generate OSM XML and<br>
> nothing else. I would recommend that you not use JXAPI as you're not trying<br>
> to generate OSM XML output.<br>
<br>
I'd be happy to output OSM XML - but perhaps without timestamp, uid,<br>
user, changeset.<br>
<br>
Yours, Stefan<br>
<br>
<br>
2011/6/1 Ian Dees <<a href="mailto:ian.dees@gmail.com">ian.dees@gmail.com</a>> wrote:<br>
> Osmosis/JXAPI is looking for some pgsnapshot-specific things (including<br>
> schema version numbers, tags stored in an hstore, etc.) that won't be there<br>
> unless you heavily modify osm2pgsql.<br>
> As I said earlier, JXAPI is meant *specifically* to generate OSM XML and<br>
> nothing else. I would recommend that you not use JXAPI as you're not trying<br>
> to generate OSM XML output.<br>
</blockquote></div><br></div>