IMAGINE Discussions

Discuss and share topics of interest using ERDAS IMAGINE the world’s leading geospatial data authoring system.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Staff
Posts: 156
Registered: ‎05-26-2016
Accepted Solution

Import Data command line arguments

[ Edited ]

When using Import Data command (imgcopy)the arguments include -w and -t  for input and output file types. Where can i find a list of all available data types.  ie imgcopy -w 'Importing SOCET SET Support Data' -t 'IMAGINE Image'

 

There are also -g FALSE -p FALSE -s 1 , what are these, and what are alternative values?.

 

The documentation on imgcopy.exe simply only mentions -w and -t and nothing else.

 

Help appreciated

Roland

Highlighted
Technical Evangelist
Posts: 691
Registered: ‎02-02-2016

Re: Import Data command line arguments

Hi Roland,

 

The complete syntax for the imgcopy job command is:

 

job imgcopy -w -t -b -f -g -p -s -m -o sourceFile targetFile

 

-w[ndtitle] (%s) : the string to use for the job title and on the progress meter, if there is one.

 

-t (%s) : destination format title; supported format titles are what you see—without the filename extension part, for example (*.img) – in the “Files of type” list in the “Output File” file chooser dialog.

 

-b (%d) : block width and height for the output image; if only one parameter is specified, it will be used for both block width and height.

 

-f (%d) : use a format-specific copy function (if available); no parameter or the values 1, “ON”, “TRUE”, and “YES” (case-insensitive) are considered “true” and any other value is considered “false”.

 

-g[cp] (%s) : write a GCC file; the parameter is the name of the GCC file; not specifying this option, providing no parameter, or a parameter with the values 0 or “FALSE” (case-insensitive)  will turn off the option.

 

-p (%s) : order used when generating a polynomial transformation from the GCPs for the map model of the output image; not specifying this option or a parameter with the values 0 or “FALSE” (case-insensitive) will turn off the option and no polynomial will be applied.

 

-s (%d) : compute stats on the output image; no parameter or the values 1, “ON”, “TRUE”, and “YES” (case-insensitive) are considered “true” and any other value is considered “false”.

 

-m[eter] (%d) : create a progress meter; no parameter or the values 1, “ON”, “TRUE”, and “YES” (case-insensitive) are considered “true” and any other value is considered “false”.

 

-o (%d) : copy missing objects only; no parameter or the values 1, “ON”, “TRUE”, and “YES” (case-insensitive) are considered “true” and any other value is considered “false”.

 

%d: decimal format number

%s: a string of characters

 

 

Example: imgcopy.exe -w Importing ECW Data -t IMAGINE Image -b 64 64 -g FALSE -p FALSE -s 1 d:/input.ecw d:/output.img

 

Regards,

 

Stephen Bent

Hexagon Geospatial Support

 

Highlighted
Staff
Posts: 156
Registered: ‎05-26-2016

Re: Import Data command line arguments

Stephen

 Thanks, just what i needed

Roland