NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I have a relation ( I want to load into Maperitive. I'm really struggling though.

At the link above, I use the Download XML button and manage to save a file in .osm format. I remove the XML tag at the top of the OSM file, because that's the only way Maperitive will recognize and open the file. i.e. see below.

I load it to Maperitive (v2.4.3), seemingly successfully. It's listed and gold-starred in the Map Sources lists. But for the life of me, I can't get the boundary to display. What am I missing? I've read something about topmost-layer property, but this thing isn't too user friendly...

<osm version="0.6" generator="CGImap 0.8.3 (2320392" copyright="OpenStreetMap and contributors" attribution="" license="">

<relation id="295355" visible="true" version="44" changeset="68619793" timestamp="2019-03-28T10:31:19Z" user="This Is A Display Name Desu" uid="196051">
<member type="way" ref="128565169" role="outer"/>
<member type="way" ref="128651122" role="outer"/>
<member type="way" ref="128650417" role="outer"/>
<member type="way" ref="582704525" role="outer"/>
<member type="way" ref="582706226" role="outer"/>
<member type="way" ref="582706227" role="outer"/>
<member type="way" ref="128648174" role="outer"/>
<member type="way" ref="128648180" role="outer"/>
<member type="way" ref="128642791" role="outer"/>
<member type="way" ref="128642785" role="outer"/>
<member type="way" ref="128642793" role="outer"/>
<member type="way" ref="128642789" role="outer"/>
<member type="way" ref="128565194" role="outer"/>
<member type="way" ref="128664044" role="outer"/>
<member type="way" ref="128663151" role="outer"/>
<member type="way" ref="128663153" role="outer"/>
<member type="way" ref="128663154" role="outer"/>
<member type="way" ref="128663152" role="outer"/>
<member type="way" ref="574890206" role="outer"/>
<member type="way" ref="128657132" role="outer"/>
<member type="way" ref="128651805" role="outer"/>
<member type="way" ref="128651806" role="outer"/>
<member type="way" ref="128651288" role="outer"/>
<member type="way" ref="128651124" role="outer"/>
<member type="way" ref="128651119" role="outer"/>
<member type="node" ref="20971094" role="admin_centre"/>
<tag k="admin_level" v="8"/>
<tag k="boundary" v="administrative"/>
<tag k="council_name" v="Cambridge City Council"/>
<tag k="name" v="Cambridge"/>
<tag k="name:zh" v="劍橋"/>
<tag k="ons_code" v="12UB"/>
<tag k="ref:gss" v="E07000008"/>
<tag k="source:ons_code" v="OS_OpenData_CodePoint Codelist.txt"/>
<tag k="type" v="boundary"/>
<tag k="wikidata" v="Q21713103"/>
<tag k="wikipedia" v="en:Cambridge"/>


asked 30 Oct '20, 17:02

mike_302's gravatar image

accept rate: 0%

I know nothing about Maperative, but if that is the entirety of your OSM file you appear to be missing the actual geometry. Relations reference other geometry types, so unless you have included the referenced elements in your file the software will have very little to go on. See this page for more information about the three element types that are used within OSM.

If you export the result of for example this Overpass query as and load that into Maperative, do you get the desired effect?

permanent link

answered 31 Oct '20, 00:09

InsertUser's gravatar image

accept rate: 19%

edited 31 Oct '20, 00:17

Well, it's the entirety of the Relation, as far as I understand these things (which is not very much...) Maperitive initializes with an OSM Map (OSM Mapnik). Then, as I understand the mechanics, you load in additional Map data (like Relations). My reference is the Loading Map Data heading on this page:

(31 Oct '20, 09:26) mike_302

Relations have no geometry of their own, so yes it is all of the relation, but unless you download the geometry it refers to ( member type="way" ref="128565169" role="outer"/ etc.) Maperative will have no geometry to render.

The xml generated by the query I linked is 1660 lines long rather than the 47 lines for the relation itself as it includes all of the members. If you follow the link I provided and select Run then Export > download/copy as raw OSM data, does the resulting file load correctly in Maperative?

(31 Oct '20, 10:21) InsertUser

alt textThis XML file does not appear to have any style information associated with it. The document tree is shown below. <osm version="0.6" generator="CGImap 0.8.10 (3607142" copyright="OpenStreetMap and contributors" attribution="" license=""> <relation id="10249598" visible="true" version="4" changeset="143225600" timestamp="2023-10-27T18:59:32Z" user="ramseraph1" uid="13327813"> <member type="way" ref="741276431" role="outer"/> <member type="way" ref="741917457" role="outer"/> <member type="way" ref="741311834" role="outer"/> <member type="way" ref="741311788" role="outer"/> <member type="way" ref="741311817" role="outer"/> <member type="way" ref="741311815" role="outer"/> <member type="node" ref="245747076" role="admin_centre"/> <tag k="admin_level" v="6"/> <tag k="boundary" v="administrative"/> <tag k="&lt;img alt=" alt="" text"="" src="http://Mehsi,"/>name" v="Mehsi"/> <tag k="town" v="Kaswa Mehsi"/> <tag k="type" v="boundary"/> </relation> </osm>

permanent link
This answer is marked "community wiki".

answered 16 Dec '23, 21:30

Motiharicity's gravatar image

accept rate: 0%

edited 16 Dec '23, 21:52

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 30 Oct '20, 17:02

question was seen: 1,507 times

last updated: 16 Dec '23, 21:52

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum