gdal/ogr

【Install】

  • Mac OS X

using brew

brew install gdal

or

% cd gdal
% ./configure
% make
% sudo make install
# exit

【command】

pct2rgb.py:Convert an 8bit paletted image to 24bit RGB

gdal_contour : Contours from DEM

gdal_grid : Create raster from the scattered data

gdal_rasterize : Rasterize vectors into raster file

gdal_rasterize -a abc_new -tr 1 1 -ot Byte neo2003.shp test_3.tif

gdal_translate : Copy a  raster file, with control of output format.

gdal_translate -of ENVI foo.tif foo.bin

gdal-config : Get options required to build software using GDAL

gdal-config-inst

gdal-config.in

gdaladdo : Add overviews to a file

gdalbuildvrt : Build a VRT from a list of datasets

gdaldem : Tools to analyze and visualize DEMs

gdalenhance

gdalinfo : report information about a file

gdallocationinfo : gdallocationinfo

gdalmanage : Identify, copy, rename and delete raster

gdalsrsinfo

gdaltindex : Build a MapServer raster tileindex

gdaltransform : Transform coordinates

gdalwarp : Warp an image into a new coordinate system

nearblack

ogr2ogr

GML2shp

ogr2ogr -f “ESRI Shapefile” -lco “ENCODING=UTF-8” AdmArea AdmArea.gml

rename field names 1 2

■clip

ogr2ogr -clipsrc minatoku2.shp totiriyouoomomi_minatoku.shp totiriyouoomomi.shp

※ogr2ogr -clipsrc clip_area.shp out.shp in.shp

■merge

ogr2ogr -f `ESRIShapefile` -update -append totiriyou.shp C2003_lu1512.shp

ogrinfo

ogrtindex

testepsg

EPSG

4612:JGD2000

2449 : JGD2000 / Japan Plane Rectangular CS VII