[OSM-talk] Simplifying shapes

Sebastian Klein bastikln at googlemail.com
Fri Apr 16 07:31:19 BST 2010


Andrew Errington wrote:
> On Fri, April 16, 2010 11:30, John Smith wrote:
>> On 16 April 2010 12:05, Andrew Errington <a.errington at lancaster.ac.uk>
>> wrote:
>>
>>> Hi all,
>>>
>>>
>>> I have some .osm files containing the outlines of areas.  I want to
>>> simplify the outline to make the files smaller and to make drawing
>>> quicker (I have many of these shapes to use in an OpenLayers vector
>>> layer), but I want to keep the same general shape.  Is there a tool to
>>> do this?  One option I suppose is to convert osm to GPX and then use
>>> GPSbabel or
>>> something to smooth the paths then convert back to osm, but this seems
>>> cumbersome...
>> open the file in JOSM and then use the simplify function.
>>
> 
> Is it scriptable?  I want to do this for a large number of files.

No, but you can add all your areas to a single file, then select all 
ways (Ctrl+F, "type:way") and run the simplify tool on all of them at once.

__

Sebastian




More information about the talk mailing list