[OSM-talk] joining ways to create a polygon

Jozef Riha jose1711 at gmail.com
Sat Jul 2 05:14:13 BST 2011


Hello Ed,

thank you very much - it's working like a charm. Anyway in the
meantime I found an alternative: OSM relation analyzer at
http://ra.osmsurround.org. The service is able to output gpx file
containing ways belonging to a relation, this can be later converted
to polygon using gpx2poly.pl script. Anyway, I like your simple
one-step solution because it's faster and does not require internet
connection.

Cheers,

jose

On 7/2/11, Ed Loach <ed at loach.me.uk> wrote:
> Hi Jose,
>
> I missed you on #osm, but I think I've done similar [1]. Using a
> perl script I was pointed at [2] (by dezhin on #osm when I asked a
> similar question) I took the Tendring district boundary relation and
> converted it into an Osmosis compliant polygon file. You pass the
> script a relation id and it outputs a polygon file.
>
> Ed
>
> [1]
> http://wiki.openstreetmap.org/wiki/Tendring(Essex_District)#Data_Ext
> racts
> [2] http://code.google.com/p/osm2mp/source/browse/trunk/getbound.pl
>
>
>> -----Original Message-----
>> From: Jozef Riha [mailto:jose1711 at gmail.com]
>> Sent: 01 July 2011 20:57
>> To: talk at openstreetmap.org
>> Subject: [OSM-talk] joining ways to create a polygon
>>
>> hello all,
>>
>> i spent a few hours already figuring out how can i merge multiple
>> adjacent ways (such as members of
>> http://www.openstreetmap.org/browse/relation/1551258) into
>> one way so
>> i could convert it into polygon file recognized by osmosis. thing
> can
>> be done easily in josm but i'm looking into scriptable solution.
> does
>> anybody know how, for instance, cloudmade is doing it?
>>
>> cheers,
>>
>> jose
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> http://lists.openstreetmap.org/listinfo/talk



More information about the talk mailing list