Jul 24, 2010

How to Rename Files

To rename files use the mv command.

mv file1 file2

hehe

How to Rename Directories

When renaming directories, you use the mv command exactly the same way as with files:

mv dir1 dir2

When dealing with directories, mv works a bit like cp does. If dir2 doesn't exist, the above will rename dir1 to dir2, but if dir2 exists, the directory dir1 will be moved into the dir2 directory under the name dir2/dir1.

hehe

Jul 22, 2010

Rasters and Tile Indexing

When handling very large raster layers it is often convenient, and higher performance to split the raster image into a number of smaller images. Each file is a tile of the larger raster mosaic available for display. The list of files forming a layer can be stored in a shapefile with polygons representing the footprint of each file, and the name of the files. This is called a TILEINDEX and works similarly to the same feature in vector layers. The result can be represented in the MAP file as one layer, but MapServer will first scan the tile index, and ensure that only raster files overlapping the current display request will be opened.

The following example shows a simple example. No DATA statement is required because MapServer will fetch the filename of the raster files from the Location attribute column in the hp2.dbf file for records associated with polygons in hp2.shp that intersect the current display region. The polygons in hp2.shp should be rectangles representing the footprint of the corresponding file. Note that the files do not have to be all the same size, the formats can vary and they can even overlap (later files will be drawn over earlier ones); however, they must all be in the same coordinate system (projection) as the layer.
LAYER
  NAME "hpool"
  STATUS ON
  TILEINDEX "hp2.shp"
  TILEITEM "Location"
  TYPE RASTER
END
The filenames in the tileindex are searched for relative to the SHAPEPATH or map file, not relative to the tileindex. Great care should be taken when establishing the paths put into the tileindex to ensure they will evaluate properly in use. Often it is easiest to place the tileindex in the SHAPEPATH directory, and to create the tileindex with a path relative to the SHAPEPATH directory. When all else fails, absolute paths can be used in tileindex, but then they cannot be so easily moved from system to system.
While there are many ways to produce TILEINDEX shapefiles for use with this command, one option is the gdaltindex program, part of the GDAL utility suite. The gdaltindex program will automatically generate a tile index shapefile from a list of GDAL supported raster files passed on the command line.
Usage: gdaltindex [-tileindex field_name] index_file [gdal_file]*
% gdaltindex doq_index.shp doq/*.tif

hehe

How to Open a RAR File

Untuk mengekstrak RAR file dapat menggunakan command berikut ini.


unrar x filename.rar

hehe

Apr 17, 2010

Jogja Map


Mari kita lihat peta Jogja berikut ini.

Silakan klik peta-nya untuk tampilan yang lebih besar.






















Kota Jogja dikelilingi oleh ringroad, berfungsi untuk memutari kota Jogja dari luar. Jika tidak ingin terjebak kemacetan di Jogja, silakan lewat ringroad ini.

Hehe.

Apr 12, 2010

Steve Jobs' Speech

Pidato yang diucapkan Steve Jobs di upacara wisuda Stanford University bisa dilihat di video di bawah ini (ada transkripnya).



Stay hungry, stay foolish ...

Hehe

Feb 18, 2010

Skala Google Maps

Skala Google Maps per level adalah sebagai berikut.

z17 = 1:2250
z16 = 1:4500
z15 = 1:9000
z14 = 1:23000
z13 = 1:46000
z12 = 1:93000
z11 = 1:188000
z10 = 1:350000
z9 =1:725000
dst.

Hehe