1 DAFTAR PUSTAKA Amhar, Fahmi and Darmawan, Mulyanto A Study on Multihazard Maps. Badan Koordinasi nasional Penanggulangan Bencana dan Penanganan Peng...
Amhar, Fahmi and Darmawan, Mulyanto. 2007. A Study on Multihazard Maps. Badan Koordinasi nasional Penanggulangan Bencana dan Penanganan Pengungsi. 2005. Panduan Pengenalan Karakteristik Bencana dan Upaya Mitigasinya di Indonesia. Kementrian Negara Perencanaan Pembangunan Nasional dan Badan Koordinasi Nasional Pembangunan Bencana. 2006. Rencana Aksi Nasional Pengurangan Resiko Bencana 2006-2009. Nuryadin. 2005. Panduan menggunakan MapServer. Penerbit Informatika, Bandung. Prahasta, Eddy. 2007. Membangun Aplikasi Web-based GIS dengan MapServer. Penerbit Informatika, Bandung. Republik Indonesia. 2007. Undang-undang Republik Indonesia No.24 Tahun 2007 Tentang Penanggulangan Bencana. Kelompok Keilmuan Geodesi. 2007. http://geodesy.gd.itb.ac.id/hzabidin Palang Merah Indonesia. 2007. http://www.palangmerah.org Wahana Lingkungan Hidup Indonesia. 2007. http://www.walhi.or.id
33
LAMPIRAN A SCRIPT KONFIGURASI PERANGKAT LUNAK MAPSERVER
34
1. File Symbols-pmapper.sym
# Symbols for use in p.mapper
Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END
Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END
Symbol NAME "ars" TYPE PIXMAP IMAGE "schraffur.png" TRANSPARENT 2 END
Symbol NAME "bjr_t" TYPE PIXMAP IMAGE "bjr_t.png" TRANSPARENT 13 END
35
Symbol NAME "welle" TYPE PIXMAP IMAGE "welle.png" TRANSPARENT 13 END
2. File msfontset.txt
FreeMono
sfd/FreeMono.ttf
FreeMonoBold
sfd/FreeMonoBold.ttf
FreeMonoBoldOblique
sfd/FreeMonoBoldOblique
FreeMonoOblique
sfd/FreeMonoOblique.ttf
FreeSans
sfd/FreeSans.ttf
FreeSansBold
sfd/FreeSansBold.ttf
FreeSansBoldOblique
sfd/FreeSansBoldOblique
FreeSansOblique
sfd/FreeSansOblique.ttf
FreeSerif
sfd/FreeSerif.ttf
FreeSerifBold
sfd/FreeSerifBold.ttf
FreeSerifBoldItalic
sfd/FreeSerifBoldItalic
FreeSerifItalic
sfd/FreeSerifItalic.ttf
ty_animals
tydac/animals.ttf
ty_cartographic
tydac/cartographic.ttf
ty_natural_resources
tydac/natural_resources.ttf
ty_park
tydac/park.ttf
ty_recreate
tydac/recreate.ttf
ty_signs
tydac/signs.ttf
ty_sports
tydac/sports.ttf
MapInfoCarto
tydac/ttmicg.ttf
36
LAMPIRAN B MAPFILE
37
####################################################################### ######################### # Adapt settings in map file pmapper_demo.map for the following tags to match settings # on your machine (see additionally MapServer documentation for detailed information): # #
"proj=utm" "ellips=WGS84" "datum=WGS84" "zone=48" "unit=m" "south" "no_defs" END
# # Image formates for GD # OUTPUTFORMAT NAME "png" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB FORMATOPTION
INTERLACE=OFF
TRANSPARENT OFF EXTENSION "png" END
OUTPUTFORMAT NAME "png8" DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION
INTERLACE=OFF
TRANSPARENT OFF EXTENSION "png" END
OUTPUTFORMAT NAME "jpeg" DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB FORMATOPTION "QUALITY=70" EXTENSION "jpg" END
39
# # Image formats for AGG # # OUTPUTFORMAT
### 24 bit PNG
# NAME 'agg_png' # DRIVER AGG/PNG # IMAGEMODE RGB # END
# OUTPUTFORMAT
### 32 bit PNG with alpha channel from transparency
# NAME 'agg_pnga' # DRIVER AGG/PNG # IMAGEMODE RGBA # END
# OUTPUTFORMAT
### 8 bit PNG
# NAME 'agg_png8' # DRIVER AGG/PNG # IMAGEMODE RGB # FORMATOPTION "QUANTIZE_FORCE=ON" # FORMATOPTION "QUANTIZE_DITHER=OFF" # FORMATOPTION "QUANTIZE_COLORS=256" # END
# OUTPUTFORMAT # NAME 'agg_jpeg' # DRIVER AGG/JPEG # IMAGEMODE RGB # END
OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB #FORMATOPTION "TFW=YES" #FORMATOPTION "COMPRESS=PACKBITS" EXTENSION "tif" END
40
OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" FORMATOPTION SKIPENDTAG=OFF DRIVER imagemap END
# # Start of web interface definition # WEB TEMPLATE "map.html" IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA #"MAPFILE_ENCODING" "ISO-8859-1" "ows_title"
"WMS Demo Server"
"ows_onlineresource" "http://wms.yourserver.org?owskey=test&" "ows_srs" END END
"EPSG:3035 EPSG:4326"
# Metadata
# Web
# # Start of Reference map definition # REFERENCE EXTENT 746775 9.20404e+006 829961 9.25815e+006 IMAGE "../../images/ref_b.png" SIZE 228 149 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END
# Reference
LEGEND END
# # Start of ScaleBar definition # SCALEBAR
41
STATUS off TRANSPARENT off INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true LABEL COLOR 0 0 90 #OUTLINECOLOR 200 200 200 SIZE small END END
# Label
# Reference
# SYMBOLS USED IN PMAPPER # - 'circle' always necessary (used e.g. for highlight) # - 'square' used in currecnt map file # Symbols can also be defined via tag SYMBOLSET (see above) Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END
Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1
42
0 1 END END
#================== START OF LAYER SECTION =====================#
LAYER NAME "Kabupaten" TYPE POLYGON DATA batas_administrasi_kab_poly_crop.shp LABELITEM "NM_KAB_KOT"
CLASS NAME "Kabupaten" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE COLOR 247 231 206 OUTLINECOLOR 181 181 173 END LABEL FONT FreeSansBold TYPE truetype SIZE 14 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END
LAYER NAME "Kecamatan" TYPE POLYGON DATA batas_administrasi_kecamatan_poly_crop.shp LABELITEM "NM_KEC"
CLASS NAME "Kecamatan" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE COLOR 246 220 187 OUTLINECOLOR 181 181 173 END LABEL FONT FreeSansBold TYPE truetype SIZE 10 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END METADATA #"MULTICLASS"
"0"
"DESCRIPTION"
"Kecamatan"
"RESULT_FIELDS"
"NM_KEC, KODE_KEC"
"RESULT_HEADERS"
"Nama Kecamatan, Kode Kecamatan"
#"ows_title"
"kecamatan"
END
44
END
LAYER NAME "Kelurahan" TYPE POLYGON DATA batas_administrasi_desa_poly_crop.shp LABELITEM "DESA"
CLASS NAME "Kelurahan" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE COLOR 239 206 189 OUTLINECOLOR 181 181 173 END LABEL FONT FreeSans TYPE truetype SIZE 8 POSITION AUTO COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END METADATA #"MULTICLASS"
"0"
"DESCRIPTION"
"Kelurahan"
"RESULT_FIELDS"
"DESA, KODE_DESA"
"RESULT_HEADERS"
"Nama Kelurahan, Kode Kelurahan"
#"ows_title"
"kelurahan"
END END
#------------------- SEJARAH BENCANA ------------------------#
LAYER NAME "Kejadian_Banjir" TYPE POLYGON DATA kejadian_banjir.shp #CLASSITEM "KLR_DESC"
45
CLASS NAME "Ada Kerugian/Kerusakan" EXPRESSION ([R513B] = 3) STYLE COLOR 178 171 210 END END
CLASS NAME "Tidak Ada Kerugian/Kerusakan" EXPRESSION ([R513B] = 4) STYLE COLOR 216 218 235 END END
#METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"rawan_banjir"
#"RESULT_FIELDS"
"KLR_DESC"
#"RESULT_HEADERS"
"Klasifikasi Banjir"
#"ows_title"
"banjir"
#END END
LAYER NAME "Kejadian_Gempa" TYPE POLYGON DATA kejadian_gempa.shp #CLASSITEM "KLR_DESC"
CLASS NAME "Ada Kerugian/Kerusakan" EXPRESSION ([R513D] = 7) STYLE COLOR 127 188 65 END END
CLASS
46
NAME "Tidak Ada Kerugian/Kerusakan" EXPRESSION ([R513D] = 8) STYLE COLOR 184 225 134 END END
#METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"rawan_banjir"
#"RESULT_FIELDS"
"KLR_DESC"
#"RESULT_HEADERS"
"Klasifikasi Banjir"
#"ows_title"
"banjir"
#END END
LAYER NAME "Kejadian_Longsor" TYPE POLYGON DATA kejadian_longsor.shp #CLASSITEM "KLR_DESC"
CLASS NAME "Ada Kerugian/Kerusakan" EXPRESSION ([R513A] = 1) STYLE COLOR 254 224 139 END END
CLASS NAME "Tidak Ada Kerugian/Kerusakan" EXPRESSION ([R513A] = 2) STYLE COLOR 255 255 191 END END
LAYER NAME "Banjir" TYPE POLYGON DATA rawan_banjir.shp #CLASSITEM "KLR_DESC"
CLASS NAME "Kawasan Bencana Alam Banjir Tinggi" EXPRESSION ('[KLR_DESC]' = 'Kawasan Bencana Alam Banjir Tinggi') STYLE COLOR 8 104 172 END END
CLASS NAME "Kawasan Bencana Alam Banjir Rendah" EXPRESSION ('[KLR_DESC]' = 'Kawasan Bencana Alam Banjir Rendah') STYLE COLOR 67 162 202 END END
#METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"Rawan_Banjir"
#"RESULT_FIELDS"
"KLR_DESC"
#"RESULT_HEADERS"
"Klasifikasi Banjir"
#END END
LAYER NAME "Gunungapi"
48
TYPE POLYGON DATA rawan_gunungapi.shp #CLASSITEM "KLR_DESC"
CLASS NAME "Kawasan Gunung Api 1 / Daerah Terlarang" EXPRESSION ('[KLR_DESC]' = 'Kawasan Gunung Api 1 / Daerah Terlarang') STYLE COLOR 215 48 39 END END
CLASS NAME "Kawasan Gunung Api 2 / Daerah Bahaya" EXPRESSION ('[KLR_DESC]' = 'Kawasan Gunung Api 2 / Daerah Bahaya') STYLE COLOR 165 0 38 END END
#METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"rawan_banjir"
#"RESULT_FIELDS"
"KLR_DESC"
#"RESULT_HEADERS"
"Klasifikasi Banjir"
#"ows_title"
"banjir"
#END END
LAYER NAME "Erosi" TYPE POLYGON DATA rawan_erosi.shp #CLASSITEM "KLR_DESC"
CLASS NAME "Sangat Kritis" EXPRESSION ('[EROSI_DESC]' = 'Sangat Kritis') STYLE COLOR 153 52 4
49
END END
CLASS NAME "Kritis" EXPRESSION ('[EROSI_DESC]' = 'Kritis') STYLE COLOR 204 76 2 END END
CLASS NAME "Sedang" EXPRESSION ('[EROSI_DESC]' = 'Sedang') STYLE COLOR 236 112 20 END END
CLASS NAME "Ringan" EXPRESSION ('[EROSI_DESC]' = 'Ringan') STYLE COLOR 254 153 41 END END
CLASS NAME "Sangat Ringan" EXPRESSION ('[EROSI_DESC]' = 'Sangat Ringan') STYLE COLOR 254 196 79 END END
#METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"rawan_banjir"
#"RESULT_FIELDS"
"KLR_DESC"
#"RESULT_HEADERS"
"Klasifikasi Banjir"
#END
50
END
LAYER NAME "Batas_Kelurahan" TYPE POLYGON DATA batas_administrasi_desa_poly_crop2.shp #LABELITEM "DESA"
CLASS NAME "Batas_Kelurahan" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE #COLOR 239 206 189 OUTLINECOLOR 181 181 173 END #LABEL #FONT FreeSerif #TYPE truetype #SIZE 8 #POSITION AUTO #COLOR 0 0 0 #OUTLINECOLOR 255 255 255 #END END #METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"kelurahan"
#"RESULT_FIELDS"
"DESA, KODE_DESA"
#"RESULT_HEADERS"
"Nama Kelurahan, Kode Kelurahan"
#"ows_title"
"kelurahan"
#END END
#------------------- UNSUR ALAM ------------------------#
LAYER NAME "Danau" TYPE POLYGON DATA danau_cek_bdg.shp #LABELITEM "DESA"
51
CLASS NAME "Danau" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE COLOR 181 222 247 #OUTLINECOLOR 0 0 127 END #LABEL #FONT FreeSerif #TYPE truetype #SIZE 8 #POSITION AUTO #COLOR 0 0 0 #OUTLINECOLOR 255 255 255 #END END #METADATA #"MULTICLASS"
"0"
#"DESCRIPTION"
"danau"
#"RESULT_FIELDS"
"DESA, KODE_DESA"
#"RESULT_HEADERS"
"Nama Kelurahan, Kode Kelurahan"
#"ows_title"
"kelurahan"
#END END
LAYER NAME "Sungai" TYPE LINE DATA sungai_cek_bdg.shp #LABELITEM "DESA"
CLASS NAME "Sungai" TEMPLATE void #TEMPLATE "templates/ttt_query.html" STYLE COLOR 99 173 222 OUTLINECOLOR 0 0 127 END