[OSM-dev] osm2pgsql output possible to work with Java XAPI?

Ian Dees ian.dees at gmail.com
Tue May 31 12:51:29 BST 2011


On Tue, May 31, 2011 at 1:12 AM, Stefan Keller <sfkeller at gmail.com> wrote:

> Hi Ian
>
> 2011/5/31 Ian Dees <ian.dees at gmail.com>:
> > Bottom line: if you want to output OSM data use osmosis pgsnapshot schema
> > and if you want to render use osm2pgsql schema.
> >
> > They currently aren't compatible.
>
> I would'nt mind using osmosis pgsnapshot schema.
> But this has one major drawback:
> It does'nt output polygons AFAIK(*)!


Since OSM format (and thus XAPI/JXAPI) does not natively support polygons,
you'll have to come up with something else to use to query the database.

osm2pgsql will convert OSM data to polygons for you, but it does not offer a
way to query for those polygons.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20110531/1abc2eec/attachment-0001.html>


More information about the dev mailing list