I have downloaded QGIS with the hopes of being able to obtain a polygon that closely represents a country's border. I was thinking I should be able to obtain x number of vertices that form the border of a country, but so far I've only been able to obtain the area of the country. I've heard people referencing Natural Earth and other sources, but from those I have only found these areas. Is there a way to obtain what I am looking for?

For reference, my goal is to then export this list of coordinates and import it into a JAVA IDE.

1 Answer 1

  1. Extract vertices to make each vertex a point
  2. Add geometry attributes to add x and y coordinates to the points.

Then you can right-click the output and save as whatever file format you want.

enter image description here

  • 2
    Thank you! That works. Do you know if it would be possible to remove islands?
    – Franco
    Jun 16, 2023 at 16:30
  • You can extract by expression polygons with an area above some value. $area>50000
    – BERA
    Jun 16, 2023 at 16:33
  • One last thing. You mentioned on step 2 above how to obtain the x-y coordinates. Is there a similar tool for obtaining the GCS latitude /longitude coordinates?
    – Franco
    Jun 16, 2023 at 17:01
  • You can reproject the layer prior to add geometry attributes. To for example EPSG:4326
    – BERA
    Jun 16, 2023 at 17:14
  • 1
    Got it! Thank you very much for your help, now hoping my JAVA script won't implode with all these vertices.
    – Franco
    Jun 16, 2023 at 17:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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