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. |
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. |