I need to get the coordinates of a country's border (e.g., Iraq) from Google Maps. How can I do that?

enter image description here

  • Welcome to GIS.se - could you click 'edit' and explain more about what you want to do? Do you want the coordinates of points?
    – Simbamangu
    Mar 25, 2014 at 18:40
  • yes .i need to get the coordinates located on the borders in google maps .
    – Enas Ali
    Mar 25, 2014 at 20:11
  • The image has no "black border." Please clarify that and, when you edit your question, explain what form you want the coordinates in and whether you want to obtain them interactively or with a program.
    – whuber
    Mar 25, 2014 at 20:30
  • The image does have a black border, it's the border of Iraq, so perhaps the question is asking how to get the coordinates of the Iraq border...
    – nmtoken
    Mar 25, 2014 at 20:49
  • 2
    You really can't get out data from Google maps. you will find more success getting data from other sources like naturalearthdata.com Mar 26, 2014 at 8:40

3 Answers 3


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.


You can also get country border data using Google Earth Engine. Here's a script that would do this:

// Get vector data for various types of borders.
var worldBorders = ee.FeatureCollection( 'USDOS/LSIB_SIMPLE/2017' );

// Create a filter that specifies Iraq's borders.
var iraqFilter = ee.Filter.eq( 'country_na', 'Iraq' );

// Filter the global data to get only Iraq.
var iraqRegion = worldBorders.filter( iraqFilter );

// Export Iraq's borders as a KML file.
    collection: iraqRegion,
    fileFormat: 'KML'

By running the script and exporting the data as a KML file, you could view it in Google Maps and Google Earth. The KML file will be saved to your Google Drive. If you wanted to first view it in Earth Engine, you could also include the following code:

// Rasterize the global data for viewing in Earth Engine.
var worldBordersImage = ee.Image().paint( worldBorders, 0, 7 );

// Clip the global data to Iraq.
var iraqBordersImage = worldBordersImage.clip( iraqRegion );

// View Iraq's borders on Earth Engine's map.
Map.addLayer( iraqBordersImage, { palette: ['black'] }, 'Iraq Border' );
Map.setCenter( 43.46, 33.134 );
Map.setZoom( 6 );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.