2010-07-22

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

2010-04-17

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.

2010-04-12

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

2010-02-18

EPSG:4326

EPSG:4326 is a common coordinate reference system that refers to WGS84 as (latitude, longitude) pair coordinates in degrees with Greenwich as the central meridian.

Proyeksi Google Maps

Proyeksi Google Maps adalah sebagai berikut.

PROJECTION
"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgri...@null +no_defs"
END

Hehe

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

Sekilas Tentang Library yang Dibutuhkan Oleh MapServer

1. GD
GD adalah library grafik. GD dependencies terdiri dari zlib, libpng, FreeType, dan libJPEG, yang memungkinkan GD memiliki kemampuan untuk mengkompres image, merender image PNG, menggunakan font TrueType, dan merender image JPEG.

2. FreeType
FreeType adalah sebuah font-rendering engine. Tidak digunakan langsung oleh MapServer tetapi digunakan GD untuk merender font.

3. libJPEG
Untuk merender image JPEG.

4. libpng
Untuk merender image PNG.

5. zlib
Untuk kompresi data.

6. GDAL
Library translator untuk data raster. Memiliki kemampuan untuk mengimport georeferenced raster image.

7. OGR
Menyediakan akses untuk membaca dan menulis berbagai macam format vektor.

8. Proj4
Library untuk proyeksi kartografi.

9. shapelib
Library untuk membuat dan manipulasi shapefile.

10.libcurl
Untuk menyediakan WMS support.

11.PDFLib
Membuat output PDF.

Hehe