Neil Posted July 17, 2012 Posted July 17, 2012 Hi,I have some existing code that successfully writes .map files. At present however it only writes the elevation contours.I have added code to append roughness lines to this file. But the result does not work. I am fairly sure that the format for my roughness lines matches that set out in the helpfile (see below). So can I append roughness line to a .Map with elevation data or must the entire file be in the format :z01 z02 Z n ThanksNeilEXAMPLE OF ROUGNESS DATA0.05 0.375 111426320.9785 6308074.99361426220.9785 6308074.99361426220.9785 6308174.99361426170.9785 6308174.99361426220.9785 6308174.99361426220.9785 6308274.99361426370.9785 6308274.99361426370.9785 6308224.99361426420.9785 6308224.99361426420.9785 6308074.9936
Neil Posted July 18, 2012 Posted July 18, 2012 EDIT :Looking at another file, it seems I can append as hoped. But would I be right in thinking that the roughness lines need to be fixed width (Tab delimited seems to work for the elevation lines)?Thanks
Duncan Posted July 25, 2012 Posted July 25, 2012 Hi Niel,There's no need to use fixed-width format. Each line in the file is parsed character-by-character to extract the numbers. Spaces and TAB (ASCII 9) are treated as separators. Duncan.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now