Exporting attributes in shapefile as integer, double or float instead of string

Is it possible to export shapefiles where the attributes are numbers instead of strings? I have contours derived from LiDAR data I want to manipulate in other programs and scripts, but because the Elevation attribute (for example) is a string, I have to preform a work around instead of a simple function. Perhaps I missed a button?

Best Answer

  • bmg_bobbmg_bob Global Mapper Programmer Posts: 2,146
    Answer ✓

    There are a couple of things you can do.  First, when you create contours, be sure to remove the check mark from the option to append unit labels to elevation values.  Then, when exporting the shapefile, look at the Attribute Setup tab on the Shapefile Export Options window.  The type for the ELEVATION column should now be a numeric type (integer or float).



  • jlindemanjlindeman Posts: 3
    Thank you Bob! I did miss a button. 
  • acgardineracgardiner Global Mapper User Posts: 107Trusted User
    You're way beyond me.  Sorry I don't know what you mean.  Can I upload the files for you to look at?

Sign In or Register to comment.