9

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
    Commented Nov 28, 2021 at 15:33

2 Answers 2

11

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

0
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. Commented Nov 28, 2021 at 15:44

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.