OpenGeofiction

Political Maps and Map Layers

Posted by Paxtar on 25 October 2015 in English (English)

Cleared entry.

Comment from Luciano on 25 October 2015 at 23:46

I don't think it's so easy to get new layers. There is a lot of storage and processing overhead involved.

One option which I use a lot is the utility called osmfilter. You can take a backup file and use a combination of that utility, along with osmconvert, to create .OSM files with e.g. only coastlines, or only coastlines and "place=" or "boundary=administrative", etc. I use this sometimes for coastline maintenance, and have used it to make my nodes and relations more correct and consistent, since the full Ardisphere .OSM now is too big to load on my PC.

The learning curve on these tools is a bit steep, I guess, but quite worth it. I use them in my Perl scripts now, too (with command-line calls), which is how I create my automated wiki "lists" of various things. It is also how I made an abbreviated .OSM file to feed into maperitive for my rivers map.

Another tool which is really awesome for finding stuff in a big map area is JOSM filters. I have become very dependent on these. There's a good introduction to them here.

Hide this comment

Comment from wangi on 26 October 2015 at 00:39

+1 for osmconvert > osmfilter and searching in JOSM...File below has just the boundary relation & ways along with place nodes preserved from the nightly backup file. You can unzip it and load into JOSM. Then doing a search in JOSM has a near perfect hit rate finding the place.

https://www.dropbox.com/s/tmq3ta9g4vmc211/ogf_20151025_0800-boundary.zip?dl=0

Hide this comment

Comment from wangi on 26 October 2015 at 00:49

On openstreetmap proper i'd just use the overpass api for this.

Hide this comment

Comment from Paxtar on 26 October 2015 at 01:53

@ Luciano: Ok, so much for layers. I should have realized that if it was easy, there would already be more layers. I'll take a look at the filters and see if that helps. Especially when I 'miisplace' things on my map.

@wangi: 267MB slows down JOSM a bit! But it solves the finding cities problem, thank you very much.

I looked through the render options for OSM data, and Maperitive looks like the best one. But can't justify getting a new PC to run it.

Any thoughts/advice on JOSM Map Styles?

Hide this comment

Comment from wangi on 26 October 2015 at 02:48

JOSM map styles are only good within the program, no use as an export... If i was trying to get this as a exportable map graphic then i'd be looking at taking the nightly backup, using osm2pgsql to import to PostgreSQL database and then doing filtering and export via QGIS (with a graphics program on the SVG export as an optional last step). Benefit being it should be straight forward to re-run at a later date.

Hide this comment

Comment from Luciano on 26 October 2015 at 03:11

I haven't used JOSM map styles at all, since, as wangi points out, they're only good for in-program representation. I just use lots of detailed filters to get various different views of my data. Using only filters I can get a view almost exactly like the rivers map I did, for example.

I think wangi is right as far as the best way to do export maps in a diversity of styles, long run. I haven't yet made it over the learning curve with respect to QGIS - so far I've only scratched the surface, and don't have previous experience with GIS tools so it's a steep curve.

Maperitive is OK, but it doesn't seem fully functional and I've had problems with crashes on my computer.

Hide this comment

Comment from Paxtar on 26 October 2015 at 15:34

Looks like I have another OGF project to add to my list.

Thank you both.

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