10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
2. AIX
Hi,
I am planning to install a version of Informatica on my AIX box. It requires a specific java build in pap6470_27sr2-20141101_01(SR2).
The current link for IBM 64-bit SDK for AIX®, JavaTM Technology Edition, Version 7 Release 1 has a more recent version in j7r164redist.7.1.0.75.bin.
Is... (4 Replies)
Discussion started by: meetpraveens
4 Replies
3. Shell Programming and Scripting
Hi,
I gave a command echo $SHELL --> To find out the shell I'm using, which gave me the below output
echo $SHELL
/bin/uvalid
what does it mean?
Please use code tags when posting data and code samples, thank you. (1 Reply)
Discussion started by: dnam9917
1 Replies
4. Solaris
Hi Experts,
I found that the same commands(sort, du, df, find, grep etc.) exists in both dir.
What is the difference to use them?
i.e: to use xpg4/bin/grep and usr/bin/grep
My OS version is SunOS 5.10
Regards,
Saps (7 Replies)
Discussion started by: saps19
7 Replies
5. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
6. AIX
which windows tool can burn iso file? The iso file is download from IBM web site for HMC upgrade.
How to burn this iso file to cd or dvd? (1 Reply)
Discussion started by: rainbow_bean
1 Replies
7. UNIX for Dummies Questions & Answers
Hi!
All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Can somebody tell me the difference between /bin, /usr/bin, /sbin ?
Thanx in advance,
Saneesh Joseph (3 Replies)
Discussion started by: saneeshjose
3 Replies
10. UNIX for Dummies Questions & Answers
I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
gdal_rasterize(1) General Commands Manual gdal_rasterize(1)
NAME
gdal_rasterize - gdal_rasterize burns vector geometries into a raster
SYNOPSIS
Usage: gdal_rasterize [-b band]* [-i] [-at]
[-burn value]* | [-a attribute_name] [-3d]
[-l layername]* [-where expression] [-sql select_statement]
[-of format] [-a_srs srs_def] [-co "NAME=VALUE"]*
[-a_nodata value] [-init value]*
[-te xmin ymin xmax ymax] [-tr xres yres] [-tap] [-ts width height]
[-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}] [-q]
<src_datasource> <dst_filename>
DESCRIPTION
This program burns vector geometries (points, lines and polygons) into the raster band(s) of a raster image. Vectors are read from OGR
supported vector formats.
Note that the vector data must in the same coordinate system as the raster data; on the fly reprojection is not provided.
Since GDAL 1.8.0, the target GDAL file can be created by gdal_rasterize. One of -tr or -ts option must be used in that case.
-b band:
The band(s) to burn values into. Multiple -b arguments may be used to burn into a list of bands. The default is to burn into band 1.
-i:
Invert rasterization. Burn the fixed burn value, or the burn value associated with the first feature into all parts of the image not
inside the provided a polygon.
-at:
Enables the ALL_TOUCHED rasterization option so that all pixels touched by lines or polygons will be updated not just those one the
line render path, or whose center point is within the polygon. Defaults to disabled for normal rendering rules.
-burn value:
A fixed value to burn into a band for all objects. A list of -burn options can be supplied, one per band being written to.
-a attribute_name:
Identifies an attribute field on the features to be used for a burn in value. The value will be burned into all output bands.
-3d:
Indicates that a burn value should be extracted from the 'Z' values of the feature. These values are adjusted by the burn value given
by '-burn value' or '-a attribute_name' if provided. As of now, only points and lines are drawn in 3D.
-l layername:
Indicates the layer(s) from the datasource that will be used for input features. May be specified multiple times, but at least one
layer name or a -sql option must be specified.
-where expression:
An optional SQL WHERE style query expression to be applied to select features to burn in from the input layer(s).
-sql select_statement:
An SQL statement to be evaluated against the datasource to produce a virtual layer of features to be burned in.
-of format:
(GDAL >= 1.8.0) Select the output format. The default is GeoTIFF (GTiff). Use the short format name.
-a_nodata value:
(GDAL >= 1.8.0) Assign a specified nodata value to output bands.
-init value:
(GDAL >= 1.8.0) Pre-initialize the output image bands with these values. However, it is not marked as the nodata value in the output
file. If only one value is given, the same value is used in all the bands.
-a_srs srs_def:
(GDAL >= 1.8.0) Override the projection for the output file. If not specified, the projection of the input vector file will be used if
available. If incompatible projections between input and output files, no attempt will be made to reproject features. The srs_def may
be any of the usual GDAL/OGR forms, complete WKT, PROJ.4, EPSG:n or a file containing the WKT.
-co 'NAME=VALUE':
(GDAL >= 1.8.0) Passes a creation option to the output format driver. Multiple -co options may be listed. See format specific
documentation for legal creation options for each format.
-te xmin ymin xmax ymax :
(GDAL >= 1.8.0) set georeferenced extents. The values must be expressed in georeferenced units. If not specified, the extent of the
output file will be the extent of the vector layers.
-tr xres yres :
(GDAL >= 1.8.0) set target resolution. The values must be expressed in georeferenced units. Both must be positive values.
-tap:
(GDAL >= 1.8.0) (target aligned pixels) align the coordinates of the extent of the output file to the values of the -tr, such that the
aligned extent includes the minimum extent.
-ts width height:
(GDAL >= 1.8.0) set output file size in pixels and lines. Note that -ts cannot be used with -tr
-ot type:
(GDAL >= 1.8.0) For the output bands to be of the indicated data type. Defaults to Float64
-q:
(GDAL >= 1.8.0) Suppress progress monitor and other non-error output.
src_datasource:
Any OGR supported readable datasource.
dst_filename:
The GDAL supported output file. Must support update mode access. Before GDAL 1.8.0, gdal_rasterize could not create new output files.
EXAMPLE
The following would burn all polygons from mask.shp into the RGB TIFF file work.tif with the color red (RGB = 255,0,0).
gdal_rasterize -b 1 -b 2 -b 3 -burn 255 -burn 0 -burn 0 -l mask mask.shp work.tif
The following would burn all 'class A' buildings into the output elevation file, pulling the top elevation from the ROOF_H attribute.
gdal_rasterize -a ROOF_H -where 'class="A"' -l footprints footprints.shp city_dem.tif
AUTHORS
Frank Warmerdam warmerdam@pobox.com
GDAL
Tue Sep 18 2012 gdal_rasterize(1)