<div class="gmail_quote">On Tue, May 31, 2011 at 5:48 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;">
Hi Ian, hi all<br>
<div class="im"><br>
2011/5/31 Ian Dees <<a href="mailto:ian.dees@gmail.com">ian.dees@gmail.com</a>> wrote:<br>
> Since OSM format (and thus XAPI/JXAPI) does not natively support polygons,<br>
> you'll have to come up with something else to use to query the database.<br>
> osm2pgsql will convert OSM data to polygons for you, but it does not offer a<br>
> way to query for those polygons.<br>
<br>
</div>Thanks for the hints.<br>
<br>
As I also said to Jukka: the webservices and the query component are<br>
not my problem - the import software is. I'm using PostGIS-Terminal<br>
and an enhanced FeatureServer as query components.<br>
<br>
Given my use case I still tend to prefer to adapt osm2psql. Here I<br>
still don't understand why JXAPI does not get all data required to<br>
build a response XML: osm2pgsql outputs tables<br>
osm_nodes,osm_rels,osm_ways (as well as<br>
osm_line,osm_point,osm_polygon,osm_roads). To complete the OSM XML to<br>
me what it's missing is perhaps the XML attribute 'version' in the<br>
tables.<br>
<br>
Can somebody explain why this doesn't work and what coding to enhance<br>
osm2pgsql this would mean?</blockquote><div><br></div><div>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.</div>
<div><br></div><div>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.</div></div>