johnnyh

Posted 28 January 2010 - 09:24 AM

johnnyh

Contributor

Validated Member

43 posts

United States

GlobalMapper has an excellent 'Batch Convert/Reproject' that works great... I am more and more doing conversions, clips, rectifies in GM rather than Arc, ,which has never worked well for simple tasks IMO.

kjmcgrath

Posted 28 January 2010 - 01:23 PM

kjmcgrath

Newbie

Validated Member

6 posts

Gender:Male

Location:Madison, Wisconsin

United States

Some good suggestions above already... Hopefully one more to add to the list. The GIS libraries GDL/OGR are open-source code libraries with little overhead allowing simple tasks like this to be done quickly especially on multiple files (without going through the behemoth of Arc as it is much more intense since it has many more services/tools/memory overhead etc) accessed through python (which also can script for Arc, in a more object oriented way so learning this language is not a dead end pursuit.) GDL and OGR (the vector GIS library) has good documentation and a fairly large following for support. Hope this helps and is not something everyone already knows about.

Nick H

Posted 28 January 2010 - 03:30 PM

I'm pleased that GDAL has been mentioned. For a one-off projection/reprojection the command line would be something like this:

gdalwarp -s_srs EPSG:4326 -t_srs EPSG:27700 infile.tif outfile.tif

Changing the EPSG codes as appropriate, of course (the above would warp from WGS84 to OSGB). But I'm hanged if I know how to do this for a directory of GeoTIFFs. I think it can be done with one command line, without the need for scripts, but I'm not sure. Any ideas people?

Hans van der Maarel

Posted 29 January 2010 - 01:55 AM

Hans van der Maarel

CartoTalk Editor-in-Chief

Admin

4,170 posts

Gender:Male

Location:The Netherlands

Interests:Cartography, GIS, history, popular science, music.

Netherlands

Changing the EPSG codes as appropriate, of course (the above would warp from WGS84 to OSGB). But I'm hanged if I know how to do this for a directory of GeoTIFFs. I think it can be done with one command line, without the need for scripts, but I'm not sure. Any ideas people?

If this would be on a Windows system you could use the magic of MS-DOS batch files. Specifically the "for" loop. Untested, but I think this may work:

Copy it into a text editor, save it as "run.bat" (plain text) in the same directory as your tiff files and then go to the command line, navigate to that directory and type "run" (assuming you have Gdal installed of course)

Copy it into a text editor, save it as "run.bat" (plain text) in the same directory as your tiff files and then go to the command line, navigate to that directory and type "run" (assuming you have Gdal installed of course)

You are a true Dutch Master, Hans! This has been tested and it works. The only thing to add is that Gdal won't create the output directory ('C:\out' in this example) so this has to created in advance.