Why not ask your question on the new OpenStreetMap Community Forum?

I read the API documentation for to extract the points (not all of course ;) ) of that make the shape of a country.

For example, I have a website with a map. The map is displayed with OpenLayers and the connection is OpenStreeMap. I want to show the shape of Spain for paint with vector polygon.

asked 13 Dec '10, 20:30

Miguel's gravatar image

accept rate: 0%

edited 14 Dec '10, 09:05

Andy%20Allan's gravatar image

Andy Allan

OpenStreetMap data is very detailed. If you extract the border of Spain from OSM, you will have a polygon with many thousand points, and that will be very slow to draw on OpenLayers. It is better to take such polygons from generalised datasets, for example from the public domain resource Natural Earth Data.

permanent link

answered 13 Dec '10, 20:36

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Your answer
toggle preview

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](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:


question asked: 13 Dec '10, 20:30

question was seen: 11,377 times

last updated: 14 Dec '10, 09:05

powered by OSQA