[gdal-dev] Removing trailing decimals from contour labels of shape files

Mike Taves mwtoews at gmail.com
Sat May 15 03:55:26 PDT 2021


On Sat, 15 May 2021 at 12:28, Jason Snyder via gdal-dev
<gdal-dev at lists.osgeo.org> wrote:
> I noticed that when displaying the graph in mapserver I get label values such as 1010.00000000 whereas I want the labels to be whole numbers. How do I tweak this code to get whole numbers for pressure contour labels in map server?

Try adding -lco RESIZE=YES to the command to resize fields to their optimal size

https://gdal.org/drivers/vector/shapefile.html#layer-creation-options


More information about the gdal-dev mailing list