[Mapserver-users] Batch raster to ecw
Richard Greenwood
rich at greenwoodmap.com
Fri Feb 6 05:24:30 PST 2004
Or use a do loop:
for %i in (*.tif) do "ecw_compress_free.exe" %i -o %~ni -nowait -c 20
-rgb -e best
That should be all one line. The "%~ni" pulls just the file name, w/o
extension, then ecw will add the .ecw extension for you. This and
similar commands are documented in the Windows help system. (In "My
Computer", Help, search for "Batch Commands").
Rich
J. Delfos wrote:
> Hi Richie,
>
> The er mapper compressor does allow commandline input, e.g.:
>
> ecw_compress_free.exe dem.tif -o dem.ecw -nowait
>
> the inputfile is dem.tif, the outputfile is dem.ecw.
>
> To do batch processing, do this:
>
> - use a command like:
>
> dir /b /s > dir.txt
>
> This will produce a textfile with all your ecw files in it. Then dump
> this in excel, in the column before the one with your file names, you put:
>
> ecw_compress_free.exe dem.tif -o dem.ecw -nowait
>
> - Then in the column to the right of your filenames, you use the
> concatenate (A1+A2) function. Paste this into DOS (rightclick for copy and
> paste), and your files are batch processed.
>
> regards,
>
> Jacob
>
>
>
> --- Richie Pierce <Richard.Pierce at mail.state.ar.us> wrote:
>
>>I was wondering if anyone knows of a free raster to ecw compressor that
>>has batch capabilities. I have been using the free ER Mapper but the
>>free tool doesn't allow batching. Thanks in advance
>>
>>
>>
>>Richie Pierce
>>
>>GIS Cadastral Specialist
>>
>>Arkansas Geographic Information Office
>>
>>124 W. Capitol St.
>>
>>Little Rock, AR 72201
>>
>>(w) 501-682-2937
>>
>>(c) 501-416-CAMP
>>
>>www.gis.state.ar.us
>>
>>
>>
>>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>
--
Richard Greenwood
www.greenwoodmap.com
More information about the MapServer-users
mailing list