Thứ Tư, 20 tháng 8, 2008

Surface From NED Files

Ok for all the Civil 3D and/or Land Desk Top users that have been asking on how to create a surface from the National Elevation Data (NED) files. Here is one way to create a C3D surface from of them. For those that are not aware the USGS site is now offering the format instead of the NED DEM from years ago.

First thing about this is when you download the files and unzip them is place the files in their own folder (directory) with a short path to them, do not unzip them to them same folder as other data or with a path a mile long, the shorter the better. Once you create the surface you can always go back and delete all the files anyways. I create a NED_Junk folder in my documents folder then clean house after I create my objects that I need. I used WinZip from the old DOS 5.1 days to unzip all the files into one folder, I notice using the windows zip app it unzips them into a two folders inside another folder.

In order to accomplish this task we need to use the Map 3D tools, so for you C3D users bring up the Map Task Pane, mapwspace at the command line. In the Display Manager, click on the Add Data icon to open up the data connect palette. In the Data Connect palette select the Raster Provider, use the file select icon and browse to the files you unzipped.

clip_image002

The Data Connect Palette.

When you get to the folder that contains the NED files, set the display to show the details. Look at the largest file there and that is the one we need.

clip_image004

The NED files.

The naming convention of them makes little to no sense so always find the largest one and use than. The rest of the files are used in “that other software” and MAP 3D can do with out them.

Once you selected the file Click the connect button on the Data Connect Palette. This will open another part of the palette and allow you to select the Schema to add to the map. In this case the schema is the file with the path.

clip_image006

The Data Connect Palette with the Schema listed.

Select the schema (check mark in the box) then click the Add to Map button.

Now you should have something display in the drawing area like below.

clip_image008

Don’t worry about how it looks or try to change the display of the features. All we need is for it to be part of the drawing (Map). You should also have some funny looking stuff in the Map’s Display Manager. For the non-map users this is called a map layer. The C3D toolspace is as confusing for Map users the same the Map Task Pane is to the C3D users. The thing we need to do is create an SDF file from the NED Raster. But it will be contours lines instead of a big blob. To do this in the Display Manager, right click on the NED layer and select Create Contour Layer.

clip_image010

In the Generate Contour Dialog, provide a name for the contour layer. Set the contour elevation intervals, (you can type in any value), then select the units you want them in. Browse to where you want to place the new SDF file and provide it a name. Finally click OK.

clip_image012

The Generate Contour Dialog.

The new SDF file and layer will be added to the map (drawing) and look like the below.

clip_image014

The NED Raster and the SDF Contours.

You display may be different depending on the NED file and what you set the contour interval to. At this point we don’t care what it looks like we got our data we need in fact close out the drawing, don’t even save it. What data we want is the Contour SDF file it created, I hope you remember the save location you selected in the generate contours dialog.

Open up a new blank drawing. What we need to is use the mapimport command to import the contour sdf file to create polylines and create object data attached to them. From the map menu select Tools>Import, set the file type to SDF and browse to your contour sdf file. If you do not know how to import and create the object data the image below is a quick lesson.

clip_image016

The Map Import of the SDF file and creating the Object Data.

Once you import the sdf file you will have polylines and object data attached to them, if you check the properties of one you notice it is at an elevation of “0” but the object data has the correct elevation listed. At this time save the drawing and close it out. We need to attach it to another new drawing and perform an alter-property query to alter the polylines elevation. So open a new drawing again and make sure the map task pane is open. Attach the saved drawing (the one you just saved and closed) using the map task pane. Now perform an alter-property query to set the polylines on their correct elevation. The image below is a refresher in accomplishing this if you need more “How-do” look here or here.

clip_image018

clip_image020

Once you do the alter-property query you now have contour line you can use to build a surface from. Make sure you de-attach the drawing you attached to before you start so if you crash from to many contour lines it will be save and not end up getting a map drawing lock on the file. Then of course go back and clean out all those NED files you unzipped and any other files you may have created, the only one you need to hold on to is the original zip file and maybe the contour sdf file you created, the rest are trash.

viewmore

Không có nhận xét nào:

Đăng nhận xét