DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

How to create contours from a topographic survey

Started by magic, January 07, 2010, 05:58:41 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

magic

Hi all,

I have been presented with the following challenge/problem by a customer, and it is a bit outside my expertize:

"This is a topographic survey of a farm field that is 1/2 mile by 1/2 mile long and wide.  I have a txt file that I will include with northing (Y), easting (X), and elevations (Z), along with a descriptor of the point.  I take these points and I want to create contours to see on a map so I can lay out the topographics of the land and design drain tile installation and bidding for the farm land."

Can anyone help?

Thank you very much.

It's a kind of magic!




DrollTroll

#1
An interesting problem.

I presume the point locations are all measured from a common origin point?
What significance do the descriptors have? Are some topography and others representing some other feature?
I notice the point indices are not continuous -- some are missing and some are out of order. What significance, if any, does that have?

I think it should be fairly easy for a BasicCAD program to read the data and draw the points as pointmarks -- the challenge would be stitching them together into some kind of surface. Once you have some kind of surface to work with, you could slice it with horizontal planes at different elevations to generate the contour lines.
25 years with DesignCAD

Rick V.

#2
Magic,

What's your timeline?

Looks like you have well over 200 points. I'm not sure how to get the txt file into DesignCAD, but I did find this on the web http://www.ransen.com/Pointor/Points-To-DXF.htm (I have no idea if it works). I think it's supposed to create DXF files, which would import into Dcad.

Once you get the points in 3D into Dcad, the rest is pretty easy, but time consuming. I think Dr PR outlined a solution some time ago.

This is how I've done it:

You're going to be laying roughly parallel lines, so you'll need to determine what accuracy you need. I usually lay the lines at roughly 5 ft. apart for typical city lots, but you might need to increase that substantially for 1/2 mile area.

1. With the points in Dcad and in 3D, start drawing lines between the points. They should make triangles. Each triangle should be made up of the closest points possible (snap to a point, then snap to 2 other closest points). Try to keep the triangle legs from crossing each other.

2. In a separate layer, draw semi-parallel lines (I usually do the vertically, but it doesn't matter) and snap (K) to each of your triangle lines as you work your way up the drawing. These semi-parallel lines don't have to be precise, but they need to made up of points that were snapped to your triangle lines.

3. Create a surface over all of your semi-parallel lines using the Surface Connect command (in a different layer). This should create a grid. You might have to take a couple of whacks at it to get the grid spacing you want.

4. Use the Dcad Contour line command to draw your contours.

Do a Forums search for Dr PR's discussion on this. His method might be similar and might be better.

Hope this helps.

Adrian 2.0

This may sound silly, but have you asked the surveyor to supply you with the DWG file?
As Rick said, to produce a contour plan in DCad is very time consuming, and prone to errors because you are reconstructing manually.
Surveyors software will do all of this automatically,
Sometimes these guys think that because it is easy for them to generate, that it is also easy for us & they don't see the need to give all the info. That is my experience anyway.

Rob S

I got as far as importing the xyz co-ordinates, splitting the resulting snake into a series of "parallel" sort of lines, and splicing a grid over them.

For some reason, designcad 20 (also 15, and 17) will only shade the side view for me, and not the perspective view, so its hard to tell what there is.

I was able to export the result to autocad, and orbit it, which shows a relatively flat field, with sharply sloped off bank on two sides
User since forever

Adrian 2.0

Rob,
The rendering issue has to do with the viewer points &/or view distance.
Currently your drawing centre is offcreen, if you use the 'set viewer points' tool & set the centre of view in the middle of your grid, it renders OK (on your <tpopN33SE2(1)> file) in V19.1
I have had this issue before occasionally on V19.0.


Mark Laing

"Sometimes these guys think that because it is easy for them to generate, that it is also easy for us & they don't see the need to give all the info."

Sometimes these guys think that because they weren't paid to produce contours, (easily a thousand dollar job), they're not going to do it. Good luck figuring it out yourself. And have you thought about the liability for wasted earthwork or destructive drainage if you make the tiniest mistake?

That being said, you do want the contours on a 3-d model that's pretty, or a 2-d drawing that an engineer can use? The methods change drastically.

2-d or 3-d?

Adrian 2.0

Mark,
I apologise if my comment implied a lack of respect for surveyors.
Actually the opposite is the case, as a matter of professional responsability I would never try to do my own contours. I employ the best surveyor available as this is a small outlay to avoid costly mistakes & finger pointing later.
What I was meaning to say was that Surveyor's (expensive) dedicated software can generate the contours accurately without the potential for errors interpolating the data. It is possible that this work has been done, (the field work has been) and if you don't ask, you won't find out.

Our Surveyors generate all contour plans in 3D & I generally have to 'flatten' them so I can use them.

Rick V.

Rob,

How did you get the xyz co-ordinates into DesignCAD?

Rob S

All I needed to do was:

- open the text file in notepad,
- search and replace to remove the text labels from each line and save the file
- then in a new blank DCAD file, from the menu "file, import, type XYZ", pick the text file, and there is is.
User since forever

Rick V.

Rob,

Wow! I never saw that before. I always learn stuff here. Thanks.

magic

Hi all,

and thank you very much for all your contributions.

I have referred the customer to this forum, so he may place his special questions to the experts directly.

It's a kind of magic!




Dr PR

magic,

I have done this many times. Looking at Rob's first file it appears that the survey points were made by just walking around over the land. That is, they are not on a grid. This complicates the issue a bit, but it isn't a big problem. Too bad the property boundaries are not included.

1. What I would do is start from Rob's first drawing. With the original line on layer X draw a series of curves on layer Y, using the original points.  Work in Point Select mode. Select the original line so all the points are visible. Make a bunch of more or less parallel lines running the length of the property, more or less perpendicular to the somewhat parallel parts of the original line. Drawing manually will be much faster than trying to break up the original line into meaningful pieces. This gives you a new grid to work from.

2. Stretch a surface (Surface Connect) over your grid. This will create a set of evenly spaced lines from the original data. Use lots of "Planes Per Line" and "Intermediate Breaks," and "smooth" connection type.

3. Use this surface as a template to draw a new set of nearly parallel curves that are straighter than the first set. Just gravity snap to intersections in the grid to draw new curves. Then stretch a new surface over the new lines. Repeat as necessary, using each new surface as a template for a better set of lines. However, do not do this too many times - each operation tends to "smooth" the surface, causing real features to be lost.

4. If you want to you can extend these template lines so they all end in a plane (a straight property boundary). Just draw vertical planes to represent property boundaries and use "Line Plane" to find the intersections of each template line with the plane.

5. Draw temporary line from the endpoint of a curve to mark the spot. Then select the curve and move the end point to the intersection point with the plane. Now set a new point on the curve where the end point used to be. Delete the temporary line.

Note: I have been doing it this way for years. For all I know DesignCAD may have a function to extend a line to intersect a plane.

6. You can fiddle with the drawing this way, modifying points, lines and grids to fit the original data. However, if you do, be sure you do not move any points on the original line. These are sacred. Try to get a surface that fits on the points of the original line.

Note: Because the surface is nearly flat you really don't have to worry much about inaccuracies. The mapping software and algorithms I have used do essentially what I have suggested. The best surveying programs cannot produce a surface more accurate than the original points in the data set. The greatest inaccuracies will be at the edges where you create the property boundaries.

7. If you want to make a contour (topographic) map from your "fishnet" surface plot, just draw a horizontal plane and find the surface intersection (Draw/Line/Surface Intersection) of the plane and the grid. These are usually in measurements above sea level, so find a point in your data for a vertical reference and place the plane at an appropriate elevation relative to this point. Then move the plane down in appropriate increments (meters, decimeters, whatever) and generate a series of contour lines with Surface Intersect. Put these all on a separate layer.

8. You can use "Surface Intersection" to place roads, house foundations, etc. on the map. Just draw a horizontal 2D "map" of the feature position below the surface grid and extrude it vertically. Then find the intersection of the vertical extrusion with the surface grid.

9. These surface intersect lines will be pretty nasty, with lots of spurious intermediate points between the real points that lie on the edges of the surface polygons (a PITA mentioned in another post), and they will not be curves but just a series of short straight lines. If you want actual smooth curves just trace over the rough contour lines on another layer. It sounds like a lot of work but it is easy. Also, because of all the extraneous points, manual tracing produces much better results that trying to convert lines to curves.

****

Nothing to it! Just be glad your plot is fairly small. I once did this for an 11,000 acre forest in the mountains with more than 100 miles of roads and trails!

DesignCAD user since 1987

Lar

I'm curious how Rob got rid of the set of numbers before the first comma (that appear to index each line of numbers) with notepad alone.

I've done this by importing the text file into a spreadsheet that splits everything between commas into different cells, deleting the unneeded cells then saving back to a comma-text-file but I don't think Notepad can do anything like that.

Lar

DrollTroll

I imagine he did it the old-fashioned way -- one line at a time!
25 years with DesignCAD