--- Start of Idrisi List message

William -

I know it seems unlikely, but I believe the 255-character limitation is a
holdover from the old DOS versions of Idrisi.  I ran into this problem
years ago while trying to RECLASS an image, using a Pascal program I had
written.  I was unable to process all 15 classes (with 0, as "background,"
unchanged) on the same command line.  I tried it using an ASCII 'Reclass'
file (.rcl) with partial success (Idrisi 4.0 was buggy), and eventually
worked around the problem by generating a separate image for each class and
then combining them to get the final image.  This process took about 15
minutes per each combined image, in the days of the 386/486 computers with
32MB of RAM.  I hope you don't have to go to such extremes, but I think you
will have to somehow parse the command line to beat the limitation.  Good
luck!

Thomas M. Rice
Computer Specialist
Rocky Mountain Research Station
1221 S. Main Street
Moscow, ID 83843
208 883-2308



                                                                                       
                             
                    William                                                            
                             
                    Hayden               To:     [EMAIL PROTECTED]                
                             
                    <whayden@sric        cc:                                           
                             
                    rm.com>              Subject:     Idrisi-L : /2 - COM/API oddities 
                             
                                                                                       
                             
                    09/17/01                                                           
                             
                    11:36 AM                                                           
                             
                                                                                       
                             
                                                                                       
                             




--- Start of Idrisi List message
In a totally unrelated question. I wrote a VBA app to import, reclass,
and concatenate multiple (all) SDTS DEMs in a directory. It actually
worked quite well (which surprised me since the last time I programmed
anything was in dbase).  However when I ran it on the full set of quads
that I wanted to combine (about 40ish), it blew up. After a lot of debug
sessions, I finally located the problem (I think). The best I can tell,
to use the RunModule function to call CONCAT, I need to create a string
variable with all of the filenames (including paths!), to spit out as
part of the parameters that CONCAT requires; this works fine for a few
files, but it *appears* that RunModule is only passing 255 characters to
CONCAT (or CONCAT is dumping at 255). At first I thought it was VBA
clipping the string, but I had the app display the big string and write
it to a text file, which worked fine (something like 4800 characters I
believe). So the question: is this a known issue, and am I wasting my
time trying to make it work? The next thing I was going to try was
dumping the text as a .iml file, and then calling the CONCAT with that,
but if it's a limitation with CONCAT, I won't bother. Which is not to
say I'm unhappy with Idrisi, I love it! (I think)  :) Any ideas are
definitely appreciated.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
William Hayden
Statistical Research, Inc.
535 West State Street, Suite I
Redlands, CA 92374
909-335-1896
310-831-1536


--- End of Idrisi List message

IDRISI-L is an unmoderated list. As a service to list users, please post a
summary of useful responses to your questions.
To post a message to IDRISI-L, send it to [EMAIL PROTECTED] To
subscribe to the list, send an email from the address to be subscribed to
[EMAIL PROTECTED] with "subscribe" (without quotes) as the first line
of the message body. To unsubscribe, do the same, only with "unsubscribe"
as the first line of the message body.
The list is archived at
http://www.mail-archive.com/idrisi-l%40clarklabs.org/.





--- End of Idrisi List message

IDRISI-L is an unmoderated list. As a service to list users, please post a 
summary of useful responses to your questions.
To post a message to IDRISI-L, send it to [EMAIL PROTECTED] To 
subscribe to the list, send an email from the address to be subscribed to 
[EMAIL PROTECTED] with "subscribe" (without quotes) as the first line 
of the message body. To unsubscribe, do the same, only with "unsubscribe" 
as the first line of the message body.
The list is archived at
http://www.mail-archive.com/idrisi-l%40clarklabs.org/.

Reply via email to