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

Miguel
31113
accept rate: 0%

edited 14 Dec '10, 09:05

Andy%20Allan's gravatar image

Andy Allan
11.8k23121144


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 ♦
71.3k846451113
accept rate: 24%

Your answer
toggle preview

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:

×240
×114
×49
×9

question asked: 13 Dec '10, 20:30

question was seen: 9,060 times

last updated: 14 Dec '10, 09:05

powered by OSQA