Hi Everyone,
I'm trying to classify a contour file string by the elevation of each segment but it not clear to me how to specify the desired ranges (5m intervals) within the function fields. Could anyone explain me better?
Hi Everyone,
I'm trying to classify a contour file string by the elevation of each segment but it not clear to me how to specify the desired ranges (5m intervals) within the function fields. Could anyone explain me better?
Thanks @MB, even more effective! old school solution for an old school problem as the purpose was to simply make a topography map for the old school miners😁 . the new generations of Surpac user will not have to deal with such kind of things.
Hi @MC, are you using the function "File tools > Classify strings by numbers" (CLASS)? If yes, I would start off by reporting the extents of your contour file (Inquire > Report layer extents). You can then subtract the Zmin from the Zmax value, and divide that by 5 (your interval size), which should give you the output string range.
For example, if a contour file extends from Zmin = 1575 to Zmaz = 1685, the output string range would be "1,22" (String # 1 to String # 22). Here is what the "Classify strings by numbers" would look like:
Here is the before/after classifying by Z:
Please let us know if you are able to run the function with success, or if you have any further questions.
Here's another way: One of the frustrating bits with the CLASSIFY STRINGS function that you end up with string numbers that are not intuitive (the string number doesn't really match anything sensical). You can do it with CLASSIFY STRINGS but here's the old school way.

If you can save your string data as a text file format AND if your Z values are integers, you can import the string file and tell Surpac to read the Z field as the STRING number as well as the z-value.
Using topo1.str out of the Surpac demo data, you'll see the strings are just integer values, not connected in any way to the actual z values. If you say plot string 23, you don't know what elevation that will be.
Use "IMPORT COORDINATES (IMPCOORDS)" and do this:
And now the Z value is the same as the string number. The original string number is stored in D1
Old school rules @MB. Indeed the only purpose for doing this was actually to create a layer for a topographic map for old school guys not used to work in 3D. I believe that in one generation of Surpac users most if these problems will not be an issue anymore.