Geography Reference
In-Depth Information
Geometry Column = shape
cntry_name: String (40.0)
color_map: String (1.0)
curr_code: String (4.0)
curr_type: String (16.0)
fips_cntry: String (2.0)
gid: Integer (0.0)
gmi_cntry: String (3.0)
landlocked: String (1.0)
pop_cntry: Integer (0.0)
sovereign: String (40.0)
The output looks similar to that for a shapefile. The thing to note is, in
addition to the fields in the layer, ogrinfo also identifies the name of the
geometry column for us—in this case it's shape .
Raster Information
For getting information on your rasters, gdalinfo is the tool to use. We
introduced this back in Section 4.1 , Viewing Raster Data, on page 67
where we examined a GeoTIFF. Let's look at some of the options and
formats associated with the utility.
To get a list of all the supported formats at your disposal, use the switch
--formats . When you do this, you're likely going to get a long list. I won't
list all fifty-three of them here, but just the first few as an example:
$ gdalinfo --formats
Supported Formats:
VRT (rw+): Virtual Raster
GTiff (rw+): GeoTIFF
NITF (rw+): National Imagery Transmission Format
HFA (rw+): Erdas Imagine Images (.img)
SAR_CEOS (ro): CEOS SAR Image
CEOS (ro): CEOS Image
ELAS (rw+): ELAS
AIG (ro): Arc/Info Binary Grid
AAIGrid (rw): Arc/Info ASCII Grid
SDTS (ro): SDTS Raster
DTED (rw): DTED Elevation Raster
PNG (rw): Portable Network Graphics
JPEG (rw): JPEG JFIF
We can use gdalinfo on files that aren't “strictly” GIS files. For example,
here is the output for a JPEG from a digital photo:
$ gdalinfo -mm DSCN3898.JPG
Driver: JPEG/JPEG JFIF
Size is 1280, 960
Coordinate System is `'
Metadata:
 
 
Search WWH ::




Custom Search