13.11.2012 Views

Open Printable/Searchable Copy - Global Mapper

Open Printable/Searchable Copy - Global Mapper

Open Printable/Searchable Copy - Global Mapper

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A projection specification parameter has a value that can specify a projection in the following ways:<br />

• PRJ Filename - the value is the full path to a PRJ file that specifies the projection to use.<br />

• Defined Projection Name - the value is the name assigned to a projection previously defined with the<br />

DEFINE_PROJ command.<br />

• EPSG Code - the value is an EPSG code, either just the raw code, or a code with EPSG: in front of it,<br />

like 'EPSG:4326'.<br />

• WKT PRJ String - the value is a WKT projection string.<br />

Crop, Merge, and Reproject 4 USGS DRGs into new GeoTIFF and JPEG files<br />

GLOBAL_MAPPER_SCRIPT VERSION=1.00<br />

UNLOAD_ALL<br />

// Import the four 24K DRGs that we want to merge. We use the CLIP_COLLAR option<br />

// to indicate that we want the collar to be automatically removed from the<br />

// DRGs when they are imported.<br />

IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094B2.TIF" \<br />

TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO<br />

IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094A1.TIF" \<br />

TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO<br />

IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094A2.TIF" \<br />

TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO<br />

IMPORT FILENAME="C:\DATA\DRG\KANSAS CITY\O39094B1.TIF" \<br />

TYPE=AUTO ANTI_ALIAS=NO AUTO_CONTRAST=NO CLIP_COLLAR=AUTO TEXTURE_MAP=NO<br />

// Load a projection file to set the global projection to geographic (lat/lon)<br />

// arc degrees with a datum of NAD83.<br />

LOAD_PROJECTION FILENAME="C:\DATA\PRJ Files\geo_degrees_nad83.prj"<br />

// Use the EXPORT_RASTER command to generate a new 8-bit per pixel GeoTIFF file<br />

EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg_8bpp.tif" \<br />

TYPE=GEOTIFF PALETTE=OPTIMIZED<br />

// Now, use the EXPORT_RASTER command to generate a grayscale GeoTIFF file. Lets<br />

// also create a world file for this one<br />

EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg_gray.tif" \<br />

TYPE=GEOTIFF PALETTE=GRAYSCALE GEN_WORLD_FILE=YES<br />

// Create a JPEG file using the EXPORT_RASTER command. Also create a world file<br />

// and a projection file to make it easier to load in other places.<br />

EXPORT_RASTER FILENAME="C:\DATA\EXPORTED DATA\merged_drg.jpg" \<br />

TYPE=JPEG GEN_WORLD_FILE=YES GEN_PRJ_FILE=YES<br />

Generate Contours from all USGS DEMs in a Folder and Export them to DXF and Shape files<br />

GLOBAL_MAPPER_SCRIPT VERSION=1.00<br />

UNLOAD_ALL<br />

<strong>Global</strong> <strong>Mapper</strong> User's Manual<br />

// Loop over all DEM files in a folder and convert them<br />

DIR_LOOP_START DIRECTORY="C:\DATA\SDTS_DEM\24K\" FILENAME_MASKS="*.DEM.STDS.TAR.GZ" RECURSE_DIR<br />

// Import an archived SDTS DEM file. <strong>Global</strong> <strong>Mapper</strong> will automatically<br />

// determine that this is an archived SDTS DEM file and load it<br />

// correctly.<br />

Table of Contents 302

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!