2

I have created a points layer in QGIS using Vector > Research Tools > Random Points Inside Polygon.

However, I would like to export the points as a GeoJSON file where each point has a coordinate (lat and lon) value.

So far the attribute table only shows the "id" for the point. Is there a way to do this in QGIS?

1 Answer 1

2

Just right-click the layer and choose Export->"Save objects as" down in the context menu (fourth entry from the bottom in my QGIS 3.28), and choose GeoJSON as the export format. Choose WGS84 (EPSG:4326) as output CRS.

The GeoJSON will have the coordinates contained.

See the QGIS documentation at Creating new layers from an existing layer for more details.

Your Answer

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

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