OpenStreetMap

Rendering the Lake Erie Coastline using Osmarender (Update 2)

Posted by skorasaurus on 21 September 2011 in English (English)

Since my last entry,http://www.openstreetmap.org/user/skorasaurus/diary/14830

I have been configuring the options in my osmosis filter so that Lake Erie would be rendered in my small bounding box area extract

bzcat ohio.osm.bz2 | osmosis\
--read-xml enableDateParsing=no file=-\
--bounding-box top=41.51245 left=-81.7291 bottom=41.49503 right=-81.69391 completeWays=yes --write-xml file=-\
| bzip2 > extracted.osm.bz2

Using the extract created from the above osmosis bounding box filter, I ran my additional osmosis filter (which removes most nodes and ways except for motorways and highways - I'll post it as a comment to this diary), and then close-areas.pl (a T@h module), I had been able to render Lake Erie using or/p ! I was excited !

This was the resulting image:
http://i.imgur.com/tgOew.jpg (fyi, imgur automatically converted the render png to a jpg)

I tried to replicate this same workflow with my larger bounding box (which covers all of the city of Cleveland for my Cleveland Neighborhood Map), otherwise the same osmosis filter:

bzcat ohio.osm.bz2 | osmosis\
--read-xml enableDateParsing=no file=-\
--bounding-box top=41.600 left=-81.85 bottom=41.4173 right=-81.5323 completeWays=yes --write-xml file=-\
| bzip2 > extracted.osm.bz2

Then, After applying my osmosis ways filter and close-areas.pl to this larger bounding box extract, I rendered the data and the Water was throughout the map :(
- seen here: http://imgur.com/hdeoM

Any suggestions of how to fix this so that I can render Lake Erie ?

As recommend in http://wiki.openstreetmap.org/wiki/Tiles@home/Dev/Interim_Coastline_Support#Debugging

I checked the coastline and found that the coastline was connected together.

With the past month or so spent trying to render Lake Erie with osmarender and seeing the very active development with mapnik and tilemill, I'm thinking about switching over to mapnik (or tilemill) to render the Cleveland neighborhood map.

Location: Lakeview Terrace, Ohio City, Cleveland, Cuyahoga County, Ohio, 44113, United States of America

Comment from skorasaurus on 21 September 2011 at 19:51

The second osmosis filter that I run to remove ways information in the bounding box that I do not need:

osmosis --read-xml v5.02-extracted.osm --way-key-value keyValueList="highway.motorway_link,highway.motorway,highway.primary_link,highway.primary,highway.secondary,highway.secondary_link,highway.tertiary,highway.residential,highway.service,highway.unclassified,railway.rail,railway.light_rail,railway.tram,railway.subway,waterway.stream,waterway.river,waterway.riverbank,natural.water,natural.coastline,boundary.administrative" --used-node --write-xml v5.02-filtered.osm

Hide this comment

Leave a comment

Parsed with Markdown

  • Headings

    # Heading
    ## Subheading

  • Unordered list

    * First item
    * Second item

  • Ordered list

    1. First item
    2. Second item

  • Link

    [Text](URL)
  • Image

    ![Alt text](URL)

Login to leave a comment