<p>Bottom line: if you want to output OSM data use osmosis pgsnapshot schema and if you want to render use osm2pgsql schema.</p>
<p>They currently aren't compatible. </p>
<div class="gmail_quote">On May 30, 2011 4:23 PM, "Stefan Keller" <<a href="mailto:sfkeller@gmail.com">sfkeller@gmail.com</a>> wrote:<br type="attribution">> Hi,<br>> <br>> 2011/5/30 Frederik Ramm <<a href="mailto:frederik@remote.org">frederik@remote.org</a>> wrote:<br>
>> Hi,<br>>><br>>> On 05/30/11 17:19, Peter Körner wrote:<br>> ...<br>>>> Wouldn't it be more logical to trick the rendering system to use the<br>>>> pgsnapshot tables?<br>>><br>
>> I think that all depends on what you want to do with your system. A<br>>> rendering system that uses pgsnapshot tables will almost certainly be slower<br>>> than one that uses the osm2pgsql schema, and likely unsuitable for live<br>
>> rendering; but if you only need it for batch processing then that's<br>>> certainly an option.<br>> ...<br>>> Another possibility would be modifying the JXAPI code to work on<br>>> osm2pgsql-style slim mode tables, with the limitations that entails. Thing<br>
>> is that the slim mode tables don't normally have geo indexes which would<br>>> have to change then.<br>> <br>> We're not targeting a rendering system but OSM web services which<br>> deliver OSM data in geospatial formats (incl. point, linestring and<br>
> polygon).<br>> <br>> We're using heavily the hstore option and recently tried the slim mode<br>> (with varying success) because of out-of-memory problems:<br>> <br>> osm2pgsql --create --slim --database gisdb --prefix osm --style<br>
> /usr/local/share/osm2pgsql/default.style --username ifs<br>> --hstore-all switerland.osm.bz2<br>> <br>> I think that the resulting tables could serve both worlds: the spatial<br>> (osm_line,osm_point,osm_polygon,osm_roads,osm_ways) and the osm world<br>
> (osm_nodes,osm_rels,osm_ways). But I'm still open to any solutions<br>> based other tools as long as they output e.g. polygons. :-><br>> <br>> That's why I thought that by configuring default.style one could<br>
> "tweak" the output so that it could serve the JXAPI (perhaps with some<br>> additional views)?<br>> <br>> Yours, Stefan<br>> <br>> _______________________________________________<br>> dev mailing list<br>
> <a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>> <a href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a><br></div>