Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gdaltransform(1) [debian man page]

gdaltransform(1)					      General Commands Manual						  gdaltransform(1)

NAME
gdaltransform - gdaltransform transforms coordinates SYNOPSIS
gdaltransform [--help-general] [-i] [-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"] [-order n] [-tps] [-rpc] [-geoloc] [-gcp pixel line easting northing [elevation]]* [srcfile [dstfile]] DESCRIPTION
The gdaltransform utility reprojects a list of coordinates into any supported projection,including GCP-based transformations. -s_srs srs def: source spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. -t_srs srs_def: target spatial reference set. The coordinate systems that can be passed are anything supported by the OGRSpatialReference.SetFromUserInput() call, which includes EPSG PCS and GCSes (ie. EPSG:4296), PROJ.4 declarations (as above), or the name of a .prf file containing well known text. -to NAME=VALUE: set a transformer option suitable to pass to GDALCreateGenImgProjTransformer2(). -order n: order of polynomial used for warping (1 to 3). The default is to select a polynomial order based on the number of GCPs. -tps: Force use of thin plate spline transformer based on available GCPs. -rpc: Force use of RPCs. -geoloc: Force use of Geolocation Arrays. -i Inverse transformation: from destination to source. -gcppixel line easting northing [elevation]: Provide a GCP to be used for transformation (generally three or more are required) srcfile: File with source projection definition or GCP's. If not given, source projection is read from the command-line -s_srs or -gcp parameters dstfile: File with destination projection definition. Coordinates are read as pairs (or triples) of numbers per line from standard input, transformed, and written out to standard output in the same way. All transformations offered by gdalwarp are handled, including gcp-based ones. Note that input and output must always be in decimal form. There is currently no support for DMS input or output. If an input image file is provided, input is in pixel/line coordinates on that image. If an output file is provided, output is in pixel/line coordinates on that image. Image RPC Example Simple reprojection from one projected coordinate system to another: gdaltransform -s_srs EPSG:28992 -t_srs EPSG:31370 177502 311865 Produces the following output in meters in the 'Belge 1972 / Belgian Lambert 72' projection: 244510.77404604 166154.532871342 -1046.79270555763 Image RPC Example The following command requests an RPC based transformation using the RPC model associated with the named file. Because the -i (inverse) flag is used, the transformation is from output georeferenced (WGS84) coordinates back to image coordinates. gdaltransform -i -rpc 06OCT20025052-P2AS-005553965230_01_P001.TIF 125.67206 39.85307 50 Produces this output measured in pixels and lines on the image: 3499.49282422381 2910.83892848414 50 AUTHORS
Frank Warmerdam warmerdam@pobox.com, Jan Hartmann j.l.h.hartmann@uva.nl GDAL
Tue Sep 18 2012 gdaltransform(1)

Check Out this Related Man Page

gdallocationinfo(1)					      General Commands Manual					       gdallocationinfo(1)

NAME
gdallocationinfo - gdallocationinfo raster query tool SYNOPSIS
Usage: gdallocationinfo [--help-general] [-xml] [-lifonly] [-valonly] [-b band]* [-l_srs srs_def] [-geoloc] [-wgs84] srcfile [x y] DESCRIPTION
The gdallocationinfo utility provide a mechanism to query information about a pixel given it's location in one of a variety of coordinate systems. Several reporting options are provided. -xml: The output report will be XML formatted for convenient post processing. -lifonly: The only output is filenames production from the LocationInfo request against the database (ie. for identifying impacted file from VRT). -valonly: The only output is the pixel values of the selected pixel on each of the selected bands. -b band: Selects a band to query. Multiple bands can be listed. By default all bands are queried. -l_srs srs def: The coordinate system of the input x, y location. -geoloc: Indicates input x,y points are in the georeferencing system of the image. -wgs84: Indicates input x,y points are WGS84 long, lat. srcfile: The source GDAL raster datasource name. x: X location of target pixel. By default the coordinate system is pixel/line unless -l_srs, -wgs84 or -geoloc supplied. y: Y location of target pixel. By default the coordinate system is pixel/line unless -l_srs, -wgs84 or -geoloc supplied. This utility is intended to provide a variety of information about a pixel. Currently it reports three things: o The location of the pixel in pixel/line space. o The result of a LocationInfo metadata query against the datasource - currently this is only implemented for VRT files which will report the file(s) used to satisfy requests for that pixel. o The raster pixel value of that pixel for all or a subset of the bands. o The unscaled pixel value if a Scale and/or Offset apply to the band. The pixel selected is requested by x/y coordinate on the commandline, or read from stdin. More than one coordinate pair can be supplied when reading coordinatesis from stdin. By default pixel/line coordinates are expected. However with use of the -geoloc, -wgs84, or -l_srs switches it is possible to specify the location in other coordinate systems. The default report is in a human readable text format. It is possible to instead request xml output with the -xml switch. For scripting purposes, the -valonly and -lifonly switches are provided to restrict output to the actual pixel values, or the LocationInfo files identified for the pixel. It is anticipated that additional reporting capabilities will be added to gdallocationinfo in the future. EXAMPLE
Simple example reporting on pixel (256,256) on the file utm.tif. $ gdallocationinfo utm.tif 256 256 Report: Location: (256P,256L) Band 1: Value: 115 Query a VRT file providing the location in WGS84, and getting the result in xml. $ gdallocationinfo -xml -wgs84 utm.vrt -117.5 33.75 <Report pixel="217" line="282"> <BandReport band="1"> <LocationInfo> <File>utm.tif</File> </LocationInfo> <Value>16</Value> </BandReport> </Report> AUTHORS
Frank Warmerdam warmerdam@pobox.com GDAL
Tue Sep 18 2012 gdallocationinfo(1)
Man Page