[OSM-talk] Matching existing OSM data with third party coordinates

Andy Allan gravitystorm at gmail.com
Fri Feb 13 17:33:18 GMT 2009


On Fri, Feb 13, 2009 at 2:47 PM, Ciprian Talaba <cipriantalaba at gmail.com> wrote:
> We have received data from a company that employs a service similar to
> Google Street View, and they are asking some questions on how to use our
> data as a base layer. They want to do something like this: they have some
> coordinates for their panoramas, and want to snap these images to the
> nearest vector in OSM. The reason is pretty simple, they want to have nice
> output, and to give the impressions that the map and images are matching.
>
> Do you know how they can achieve something like this (using free or
> commercial product)?

Load the osm data in postgis using osm2pgsql, and then the maths for
working out which linestring  (osm vector) is the nearest one and what
that point is is all available through spatial SQL queries.

Cheers,
Andy




More information about the talk mailing list