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



I've got a question when downloading svg files from openstreetmap. I was trying to download a map of an area in Marseille. The svg file I got was around 40MB when I set the scale at 1:20,000. But when I tried to download a map of a smaller scale, say 1:1,000,000, of the same area, I got an svg file of 120MB. I think that maps scaled smaller are more generalised, and the file size should be smaller as a result. Does anyone know why the file size actually increases when the scale is lowered? Any help is much appreciated.

asked 01 Mar '13, 09:12

weeburn's gravatar image

accept rate: 0%

The rendering engine behind the SVG export doesn't generalize or simplify geometries. It will drop some features - e.g. on a small scale map you won't see residential roads - but those features that you do see are drawn in full detail (even if that is not visible). Hence the large file.

permanent link

answered 01 Mar '13, 10:49

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%


AFAIK the text in OSM's SVG exports is converted to vector geometry, I think this is probably the biggest contributing factor in the size. If you need more compact SVGs, you can use Maperitive's export function.

(01 Mar '13, 12:31) Breki

... or have a look at in general

(01 Mar '13, 18:58) stephan75

Thank you all... But I am still confused why the size of the svg file downloaded under a smaller scales is larger, given a same area. At least, the sizes of svg files downloaded from different scales should be almost the same. For a same polygon, I got a svg file of 120MB for a map scaling at 1:500,000 but got a file of about 30MB for a map of the same polygon scaling at 1:50,000......

(04 Mar '13, 09:10) weeburn

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: 01 Mar '13, 09:12

question was seen: 4,488 times

last updated: 04 Mar '13, 09:11

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