I need to get the coordinates of a country's border (e.g., Iraq) from Google Maps. How can I do that?
Get the x,y coordinates of the boundaries of countries from the following website Natural Earth (thanks, Devdatta Tengshe) which has more accurate data than others I've tried. Then use ArcGIS 10.2 to open the map shape file and select the boundaries you need. Go to data management tools --features-- features vertices to points and open the generated table. Add two new fields (lat, long) to the table. (I use geometry calculations.) Export the table to get the desired data.
I use GADM / DIVA-GIS's downloads:
Also provides other basic data types; administrative areas, inland water, roads, rail, elevation, land cover, population, monthly climate, gazette (cities etc)...in various vector/raster formats. All can be used in QGIS.
Of course the OpenStreetMap has the data included but it's not a simple thing to extract this information directly.