8

I am looking for a tool in the toolbox which gives me exactly the options that "Export Layer" is giving me (see screenshot) because I want to use it in a model.

For example, I want to cut the COORDINATE_PRECISION from 15 decimals to only 2 decimals.

enter image description here

1
  • 1
    Wouldn't it be easier to just reformat ASCII output?
    – Vince
    Nov 28 '21 at 15:33
9

You can use "Vector General -> Save Vector Features to File" tool. In the tool window, you can set the coordinate precision using COORDINATE_PRECISION=NUMBER beneath "GDAL layer options".

enter image description here

1
  • Thank you, this is exactly what I was looking for. Nov 29 '21 at 9:51
2

not sure it is possible in a one-step scenario but u're able to test the following :

  1. selection by expression (select all with the ad-hoc expression)

  2. extract selected features

1
  • Ok, not bad. With that I could save to another vector format (gpkg, geojson, shp, etc.), which is already cool. But I could not define the precision in a GeoJSON which is an option in the layer export dialogue. Nov 28 '21 at 15:44

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.