SDTS file conversion

I am having some difficulty converting sdts files to a format GRASS can use. I about every document/e-mail//help file I can find on converting sdts files but have run into a few snags. So far the only workable solution I have found is converting the files using sdts2dxf.exe within winNT. I tried using sdsts2dlg.exe in combination with dlgbld.exe and dosmsf.exe but dlgbld bombs. Sdts2dlg seems to work fine. I could stick with using sdts2dxf but I've run into problems with importing some converted files into GRASS. Oh, I also tried Microdem in winNT but it also bombs.

I'd really like to be able to convert the files within linux. I had hoped to get the DEM data conversion working properly but I can't get the sdts utils to compile. I read the document discussing how to import USGS 7.5min DEM data into GRASS. I downloaded the proper files and followed the procedures for compiling the files. The fips library files compile without a problem; however, when I try to compilie the sdts utilities I get the following error message:

gcc -o demoutdemout.c -Wl,/usr/local/lib/libfips123.a
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [demout] Error 1

Is there a trick to getting these utilities to compile? What other options are available in linux to convert sdts files into a format GRASS can use?

This seems to be an ongoing problem with very limited documentation on the GRASS website.

Skip

=================================
Skip Haak
Natural Resource Solutions
950 Lloyd Center, Suite 48
Portland, OR 97232
Office: (503) 460-3198
Mobile: (503) 998-3267
Facsimile: (503) 460-3230
E-mail: shaak@teleport.com

I have no problem converting SDTS format USGS dem and dlg data
under linux. I don't use the sdts2dem program, though. I use
sdts2arc, and import that data into grass via r.in.ascii.
Details on how this may be accomplished can be found at:
http://www.baylor.edu/~grass/faq/importing_usgs_7_5min.html

This page includes the patches required for proper operation
on case-sensitive filesystems, and a sample Makefile for the
sdtsutils package.

Now that I take a closer look at your compile line, it looks
like you're using that makefile, and have a typo in the rule.
The line should read:
  gcc -o $@ $@.c -Wl,/usr/local/lib/libfips123.a
Note the space between the $@'s.

Try changing that, and letting me know how it goes.

Skip wrote:

I am having some difficulty converting sdts files to a format GRASS can use. I about every document/e-mail//help file I can find on converting sdts files but have run into a few snags. So far the only workable solution I have found is converting the files using sdts2dxf.exe within winNT. I tried using sdsts2dlg.exe in combination with dlgbld.exe and dosmsf.exe but dlgbld bombs. Sdts2dlg seems to work fine. I could stick with using sdts2dxf but I've run into problems with importing some converted files into GRASS. Oh, I also tried Microdem in winNT but it also bombs.

I'd really like to be able to convert the files within linux. I had hoped to get the DEM data conversion working properly but I can't get the sdts utils to compile. I read the document discussing how to import USGS 7.5min DEM data into GRASS. I downloaded the proper files and followed the procedures for compiling the files. The fips library files compile without a problem; however, when I try to compilie the sdts utilities I get the following error message:

gcc -o demoutdemout.c -Wl,/usr/local/lib/libfips123.a
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [demout] Error 1

Is there a trick to getting these utilities to compile? What other options are available in linux to convert sdts files into a format GRASS can use?

This seems to be an ongoing problem with very limited documentation on the GRASS website.

Skip

=================================
Skip Haak
Natural Resource Solutions
950 Lloyd Center, Suite 48
Portland, OR 97232
Office: (503) 460-3198
Mobile: (503) 998-3267
Facsimile: (503) 460-3230
E-mail: shaak@teleport.com

--
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell mailto:emitchell@altaira.com |
| tel: (301) 809 - 3534 Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR 4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122 Bowie, MD 20716 |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\ / o=\ /"""---===/
         / \_/ \__/ ---===/
         | //\ || /""TT""/ //\ || ||""\
         | // \ || || // \ || ||__/
         | //--==\ |L--/ || //--==\ || || "=,
          \ ---===/
           \____---===/

On Thu, Apr 20, 2000 at 09:29:48AM -0700, Skip wrote:
[...]

I'd really like to be able to convert the files within linux. I had hoped
to get the DEM data conversion working properly but I can't get the sdts
utils to compile. I read the document discussing how to import USGS 7.5min
DEM data into GRASS. I downloaded the proper files and followed the procedures
for compiling the files. The fips library files compile without a problem;
however, when I try to compilie the sdts utilities I get the following
error message:

gcc -o demoutdemout.c -Wl,/usr/local/lib/libfips123.a
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [demout] Error 1

Is there a trick to getting these utilities to compile? What other options are available in linux to convert sdts files into a format GRASS can use?

Hi Skip,

GRASS 5 beta 7 is published now. There is a fixed SDTS version
included. So you can either get the new source code or precompiled
Linux binaries (other bins as well).

Please try the new GRASS version. In case of problems, please
contact us again.

Markus Neteler