skorasaurus's Comments
Post | When | Comment |
---|---|---|
How to create an OSM extract of your city. | I tried nicolasdumoulin's approach
|
|
How to create an OSM extract of your city. | Chriscf,
Through my searching, I found a couple suggestions in http://help.openstreetmap.org/questions/8273/how-do-i-extract-the-polygon-of-an-administrative-boundary and I'll be testing those out in the next day or so to see if they will work. |
|
GPS visualizer - minor updates | Cool project ! I tried to run it and unfortunately received an error as follows: BACKGROUND_COLOR = #000000
Use of uninitialized value in addition (+) at logdraw.pl line 143.
|
|
Rendering the Lake Erie Coastline using Osmarender (Update 2) | 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 |
|
Rendering the lakefront using Osmarender | Here's an update of how I progressed since then. The problem: When downloading data from OSM, the geographic area is (not always, but for the sake of this post, most of time) shaped in a rectangle defined by the bounding a north, east, south, and west coordinates (known as a bounding box). When it comes to coastlines in OSM, the entire area is not downloaded, just the data within the bounding box. This can be a problem if your data partially contains a coastline and the data does not specify which side is land and which is water ! Thus, here's what you should do if you have a large coastline to render in osmarender.
close-areas.pl will download the additional coastline that was not in the bounding box and specify the area(s) near the coastline which contain water. After running close-areas.pl, my output .osm file, once rendered, still did not have water in it.
but the parameters of the
I had mistakenly entered the bounding box coordinates in the same order of the API, not the specific order used in close-areas.pl The correct close-areas.pl was: EDIT: I haven't fixed it yet I was able to render the coastline using an area of bounding box that consisted of the mall portion of downtown Cleveland (the above coordinates), for the sake of simplicity during this debugging process. However, when I attempt to run the above using the bounding box of the entire city of Cleveland (the same used for the Cleveland Neighborhood Map), the water is displayed everywhere on the rendered image, instead of just Lake Erie. |