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

How can i export PNG or SVG perfect square with area of 1024km2?

asked 28 Feb '21, 15:51

mddoff's gravatar image

mddoff
11112
accept rate: 0%


This is an interesting questions. If you are looking for a web service that lets you do that easily, there is none; you will have to run some calculations by yourself. Note that the map projection governs whether what is a square on the ground of the Earth ellipsoid is also a square in the resulting two-dimensional image; you don't say if you need a square PNG (but don't need a square patch of Earth), or if you need a square patch of Earth (but not necessarily a square PNG).

So your question has two parts, first: how to determine the coordinates of the four corners of this area (depending on projection and whether you need a square on Earth or a square result); second: how to export an area with known coordinates from OSM.

The first question is not OpenStreetMap specific and you will likely get better responses on a general GIS forum or Q&A site.

The second question has a number of different answers. If the EPSG:3857 map projection works for you, then you can use OSM's own image exporter (on www.openstreetmap.org, the icon on the right hand side of the map that shows an arrow pointing out of a box). It lets you select the four corners of the export area on the map but if you use your browser's network debugger you can see the request it generates and generate such a request yourself with the exact coordinates you have computed. Another option, especially if you are interested in different projections, might be one of the free third-party WMS servers from https://wiki.openstreetmap.org/wiki/WMS.

permanent link

answered 28 Feb '21, 17:22

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×315

question asked: 28 Feb '21, 15:51

question was seen: 1,234 times

last updated: 28 Feb '21, 17:22

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