Ack! Labelling numeric fields bug.

Delfos, Jacob Jacob.Delfos at MAUNSELL.COM
Tue May 1 20:37:49 EDT 2007


Hi Steve,

I run into this every now and then. I'm not sure if I'd call it a
MapServer bug, because it seems to be a matter of the DBF column
formatting. It goes away if I open my DBF file in a spreadsheet program,
and specify a smaller number of decimal places (be aware that OpenOffice
doesn't always do this right). Or if I round it to 0 decimal places in
ArcGIS. Not sure if this helps, considering the quantity of shapefiles
you have....

Regards,

Jacob

 

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge
> Sent: 2 May 2007 08:32
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Ack! Labelling numeric fields bug.
> 
> I have a shapefile, actually 10s of thousands of shapefiles that have 
> contour lines and I want to label them. The problem is that they are 
> defined as:
> 
> 15.     ELEVATION       N       31      15
> 
> and when a use this field to label my map, mapserver zero fills the 
> field out to 15 digits of zeros!!! So a value of 10 in the field gets 
> labeled as 10.000000000000000
> 
> I think this is a little extreme! :) OK, it is kind of cool 
> to see these 
> long snakes follow the contour if I use ANGLE FOLLOW.
> 
> I will open a bug for this, but any thoughts in a short term 
> work around?
> 
> -Steve W
> 

This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.



More information about the mapserver-users mailing list