Quantcast
Channel: MapWinGIS ActiveX Map and GIS Component
Viewing all articles
Browse latest Browse all 2341

Commented Issue: ShapeFile labels - Displayed number of decimal places is incorrect [21831]

$
0
0
Hello,
 
Looks like it is not possible to reduce number of shown on a screen decimal places (or maybe I missed something?)
 
I did following:
 
Created memory polyline shape file with one decimal field.
Added this field (code below), number of decimal places is 2.
 
MapWinGIS.Field f = new MapWinGIS.Field();
f.Type == MapWinGIS.FieldType.DOUBLE_FIELD)
f.Precision = 2;
f.Width = 12;
 
But when I display labels, I see 6 decimal places.
 
What could be done to display 2 decimal places as it is specified in attribute table?
Comments: ** Comment from web user: sleschinski **

Reviewing it before 4.9.3 beta release: a lot of time has passed but it's still a valid issue. I added Labels.FloatNumberFormat property which accepts C printf formats, like %.2f or %g. The default value is "%g" - the one used earlier.


Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>