Ruang Web Hosting Indonesia - Solusi Handal, Cepat dan Murah

Archive for March, 2007

Create new projects in Cartoweb 3.3.0

March 26, 2007 - 6:57 am 1 Comment

Development Interface –> Cartoclient

Cartoweb3 Demo –> Cartoweb 3 Demonstration

1. Masuk ke dalam folder Projects di

c:\wamp\www\cartoweb3\projects

rename sampleProjects or etc menjadi newProjects (coba)

* Edit client.ini –> mapId = coba

* Buka folder server_conf dan rename folder sampleProjects menjadi coba

2. Jalankan cmd, install newProjects

c:\wamp\www\cartoweb3> php cw3setup.php –install –base-url http://localhost/cartoweb3/htdocs/ –profile development –projects coba

3. Edit mapfile di serv_conf - coba

coba.map, coba.ini, layers.ini

4. Copy location.ini dari sampleFiles ke serv_conf/coba

5. Tambahkan coba.php di c:\wamp\www\cartoweb3\htdocs

5. Done, tambahkan saja plugins jika ingin

p.mapper 3.1 beta-4

March 22, 2007 - 3:32 am 1 Comment

Upgrade Information for p.mapper versions

Upgrade 3.0 -> 3.1

PHP version

p.mapper 3.1 only runs fully on PHP 5.x with XML support because the attribute search requires PHP5 XML functions.

Attribute search

Define attribute search via /config/…/search.xml

<searchlist version="1.0">
    <searchitem name="cities" description="City">

        <layer type="shape" name="cities">

            <field type="s" name="CITY_NAME" description="City"  wildcard="0" />

        </layer>

    </searchitem>

</searchlist>

Create new <searchitem> for every layer you want to search.Parameters:

<searchitem>
  name: unique identifier, typically the same as layer name
  description: name visible in GUI
<layer>
  type: data source type, "shape" or "postgis"
  name: layer name in map file
<field>
  type: "s" for string field, "n" for numeric field
  name: field name in dataset
  description: name visible in GUI
  wildcard: "0": search always uses a 'non-exact' pattern matching;
            "1": requires that the user explicitly adds "*" for wildcards to his search string

config.ini

new config tags (if not set, default values are taken):

  • pm_search_configfile
  • autoIdentifyGroups
  • catInfoLink/grpInfoLink
  • catWithCheckbox
  • debugLevel
  • See the p.mapper manual for details.

php_config.php

Additionally to toolbars, now also DHTML menus are supported. The definition is done via the menu1 array. Multiple menus are possible. Menus are created in the map.phtml via the function call writemenu($menu1, “menu1″, “Tools”)

js_config.php

various JS specific settings are added. See the file itself and the descriptions of the parameters there.

WFS Servers Mapfile

March 6, 2007 - 4:13 am 2 Comments

 This is WFS mapfile to put the data on GIS Client Software. e.g : MapServer
NAME DEMO
STATUS ON
SIZE 400 300
SYMBOLSET ../etc/symbols.sym
## ESPG:42304 extents:
EXTENT -2200000 -712631 3072800 3840000
## EPSG:42101 extents
#EXTENT -2200000 -2000000 3072800 2000000
UNITS METERS
SHAPEPATH “../data”
IMAGECOLOR 255 255 255
FONTSET ../etc/fonts.txt

#
# Start of web interface definition
#
WEB
# MINSCALE 2000000
# MAXSCALE 50000000
#
# On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root
# of the drive where the .MAP file resides.
#
IMAGEPATH “/ms4w/tmp/ms_tmp/”
IMAGEURL “/ms_tmp/”
# LOG “/tmp/gmap.log”
METADATA
“wfs_title” “GMap WFS Demo Server”
“wfs_srs” “EPSG:42304 EPSG:42101 EPSG:4269 EPSG:4326″ ## Recommended
END
END

PROJECTION
“init=epsg:42304″
END

#
# Start of reference map
#
REFERENCE
IMAGE images/keymap.png
#EPSG:42304 extents
EXTENT -2200000 -712631 3072800 3840000
#EPSG:42101 extents
# EXTENT -2200000 -2000000 3072800 2000000
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
SIZE 120 90
END

#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END

#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 0 0 0
SIZE SMALL
END
SIZE 200 5
COLOR 255 255 255
BACKGROUNDCOLOR 0 0 0
OUTLINECOLOR 0 0 0
UNITS kilometers
INTERVALS 5
STATUS ON
END

QUERYMAP
STYLE HILITE
COLOR 255 0 0
END

#
# Start of layer definitions
#

LAYER
NAME park
METADATA
“wfs_title” “park”
“gml_featureid” “PARK_ID” ## REQUIRED
“gml_include_items” “all” ## Optional (serves all attributes for layer)
END
TYPE POLYGON
STATUS OFF
DATA park
PROJECTION
“init=epsg:42304″
END
## DUMP TRUE required for layer to be usable as WFS
DUMP TRUE
CLASS
NAME “park”
COLOR 200 255 0
OUTLINECOLOR 120 120 120
TEMPLATE “ttt_query.html”
END
TOLERANCE 5
END # Layer

LAYER
NAME popplace
METADATA
“wfs_title” “Cities”
“gml_featureid” “POPPLACE_I” ## REQUIRED
“gml_include_items” “all” ## Optional (serves all attributes for layer)
END
TYPE POINT
STATUS ON
DATA popplace
PROJECTION
“init=epsg:42304″
END
## DUMP TRUE required for layer to be usable as WFS
DUMP TRUE

CLASSITEM “Capital”
CLASS
EXPRESSION “1″
TEMPLATE “ttt_query.html”
SYMBOL 2
SIZE 8

NAME “Cities”
LABEL
COLOR 255 0 0
FONT fritqat-italic
TYPE truetype
SIZE 8
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
END
COLOR 0 0 0
END
CLASS
EXPRESSION /2|3/
TEMPLATE “ttt_query.html”
SYMBOL 7
SIZE 6
NAME “Cities”
LABEL
COLOR 0 0 0
FONT fritqat
TYPE truetype
SIZE 8
POSITION AUTO
PARTIALS FALSE
OUTLINECOLOR 255 255 255
END
COLOR 0 0 0
END
TOLERANCE 5
END # Layer

END # Map File

Install pmapper

March 6, 2007 - 1:33 am 1 Comment

Instruksi Instalasi untuk p.mapper 3.2

Untuk dokumentasi lebih lengkap, silahkan lihat manual p.mapper

Setting PHP

Library PHP/MapScript dan WebServer

p.mapper versi 3.2 membutuhkan PHP 5. Jika Anda ingin menjalankan p.mapper di PHP 4 Anda harus menggunakan versi lebih lama 3.0.

Install library PHP/MapScript di tempat yang sesuai dan konfigurasikan webserver untuk memparsing file *.php dan *.phtml dengan PHP.

Lihat dokumentasi PHP/MapScript dan MapServer untuk lebih lengkap.

LIBICONV

PHP harus di compile dengan tambahan module ICONV. Dalam Window dan Linux seharusnya sudah menjadi default

PHP.INI

Didalam bagian [PHP] untuk Error handling and logging set

error_reporting = E_ALL & ~E_NOTICE        ;;;IMPORTANT!!!
log_errors = On
error_log = ...: Set a valid file name writable by the webserver user. IMPORTANT!!!

Lihat Manual PHP untuk lebih detail.

Dalam bagian [PHP] dibawah paragraph Paths and Directories set:

enable_dl = On

sebagai alternatif : simpan extension Mapscript melalui php.ini. Hal ini membutuhkan metode pada Windows, baik untuk PHP yang berjalan di IIS dan Apache sebagai module.

Aplikasi ini menggunakan PHP sessions untuk menyimpan user setting selama session berjalan. Modifikasi file php.ini menjadi setting berikut di bawah bagian [Session]:

session.save_path = ... : Set a valid path writable by the webserver user
session.use_trans_sid = 0 : set to 0 in order to be compliant with W3C XHTML Strict
session.auto_start = 0

Rekomendasi setting juga

session.use_cookies = 0

Catatan untuk p.mapper 1 Anda harus men set session.use_trans_sid menjadi 1

Setting untuk keamanan Direkomendasikan untuk mensetting register_globals dan allow_url_include menjadi disable (allow_url_fopen sebelum PHP 5.2):

register_globals = Off

allow_url_include = Off

Catatan bahwa register_globals di set Off secara default. Pada versi akhir v3.2 akan ada fitur tambahan untuk mencegah penyisipan kode dalam hal setting keamanan PHP yang sangat lemah yang berlawanan dengan [recomendasi].

Seting Aplikasi

config/config_default.ini Konfigurasi utama untuk p.mapper di set di bawah subdirektori config pada file config.ini. Sesuaikan setting perintah berikut pada environment:

msVersion: misalnya untuk php_mapscript_48.so set menjadi 48, untuk php_mapscript_50.dll set menjadi 50
Setting ini dapat dilewati jika extension php_mapscript di load melalui the php.ini.
Jika di beri tanda # php_mapscript.so/php_mapscript.dll yang akan digunakan.
mapFile: Lokasi Map file; 2 kemungkinan:
1) gunakan path absolute untuk map file di file system (gunakan / dan jangan \)
2) hanya nama file, jika map file dibawah direktori yang ditetapkan pada 'pm_config_location'
allGroups: daftar layer/group yang dipisahkan dengan comma (,) yang ada di aplikasi
useCategories: jika di set 1 kategori tematik dan layer/group yang ditunjuk harus di definisikan pada array $categories di "php_config.php"

Aturan umum: Jika layer termasuk dalam group, gunakan nama group, sebaliknya gunakan nama layer. Nama layer dan group harus tidak memiliki spasi.

Setting Lainnya

Directori /images/legend/

Direktori ini harus dapat ditulis (writeable) untuk pengguna yang menjalankan webserver (digunakan untuk update otomatis icon legenda).

Penting

Pada sistem Debian sebagai contoh, hal ini dapat menggunakan perintah

chown -R www-data /var/www/pmapper_demo/images/legend/

Pada Windows dan IIS set direktori security properties dan ‘Modify’ pengguna IUSR_hostname

Demo data

Anda dapat download demo dataset (pmapper-demodata-3.zip) dan test p.mapper dengan map yang disediakan file pmapper_demo.map.

Map file

Dalam pmapper_demo.map, adaptasi setting untuk

MAP
SHAPEPATH
(FONTSET)
(SYMBOLSET)

WEB
IMAGEPATH
IMAGEURL

Nama layer dan group harus tidak memiliki spasi.

Start p.mapper

Memulai p.mapper dapat dimulai melalui file map.phtml atau link dari index.html.

Cara Install ArcGIS 9.2

March 6, 2007 - 1:28 am 37 Comments

Copy CD ArcGIS ke Komputer
Copy Folder Crack Ke C:
Ubah this_host pada file arcgis_tbe menjadi nama komputer(klik kanan My Computer)
Install License
Copy crack ArcGIS dalam folder crack ke folder C:\Program Files\ESRI\License\arcgis9x
Jalankan LMTOOLS
Pada Tab Service/License File : Pilih Configuration using Service : ArcGIS License Manager
Pada Tab Configure Service Pilih Service Name : ArcGIS License Manager
Path to lmgrd.exe file : C:\Program Files\ESRI\License\arcgis9x\lmgrd.exe
Path to license file : C:\crack\arcgis_tbe.lic
Pilih Start Server at Power Up dan Use Service
Pada Tab Start/Stop/Reread Pilih ArcGIS License Manager dan Start Server
Install ArcGIS
Done

Compile Mapserver

March 6, 2007 - 1:20 am No Comments

Panduan Instalasi MapServer

MapServer

MapServer merupakan aplikasi pemetaan online (web-mapping) yang cukup populer. Dikembangkan oleh Universitas Minnesota dan didukung oleh NASA dan Departemen Sumber Daya Alam Minnesota (Minnesota Department of Natural Resources).

Sebelum menginstall aplikasi MapServer, terlebih dahulu kita harus menginstall web server Apache dan bahasa pemrograman php.

Apache

Apache adalah server web yang dapat dijalankan di banyak sistem operasi (Unix, BSD, Linux, Microsoft Windows dan Novell Netware serta platform lainnya) yang berguna untuk melayani dan memfungsikan situs web. Protokol yang digunakan untuk melayani fasilitas web/www ini mengunakan HTTP.

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file Apache dengan mengetikkan

tar -xvf httpd-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi Apache dengan mengetikkan perintah

cd httpd-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure –enable-so

make

make install

Php

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file php dengan mengetikkan

tar -xvf php-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi php dengan mengetikkan perintah

cd php-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-png-dir=/usr/local/bin — with-freetype-dir=/usr/local/bin –with-gd=/usr/local –with-zlib-dir=/usr/local/lib –with-curl=/usr/local/bin –with-libxml-dir=/usr/local/lib –-with-pgsql=/usr/local/pgsql/bin/pg_config –with-gettext=/usr/local/bin –enable-dbase –with-oci8=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server –with-iconv-dir=/usr/local/bin –enable-soap

make

make install

cp php.ini-dist /usr/local/lib/php.ini

Tambahkan baris berikut pada file httpd.conf

LoadModule php5_module modules/libphp5.so

AddType application/x-httpd-php .php .phtml

AddType application/x-httpd-php-source .phps

Jalankan Apache dengan mengetikkan :

/usr/local/apache2/bin/apachectl start

Untuk menginstall aplikasi MapServer, kita memerlukan beberapa komponen pembentuk MapServer, diantaranya :

1. libpng

Merupakan library yang digunakan untuk baca/tulis gambar dalam format PNG.

2. freetype

Merupakan library yang digunakan MapServer untuk menampilkan tulisan menggunakan font TrueType.

3. GD

Digunakan MapServer untuk menggambar objek geografis seperti garis, poligon atau bentuk geometris lain. GD juga dapat digunakan untuk menghasilkan gambar dalam format PNG, JPEG, selain menggunakan libpng atau libjpeg secara langsung.

4. zlib

Dibutuhkan oleh library GD untuk keperluan kompresi data gambar.

5. libproj

Library untuk proyeksi peta, menyediakan lebih dari 100 macam proyeksi

6. libcurl

Merupakan library untuk mensupport client dan server OGC (WFS/WMS/WCS).

7. GDAL/OGR

Library untuk membaca dan menulis data raster (GDAL) dan data vektor(OGR). GDAL dan OGR banyak digunakan pada aplikasi GIS dan penginderaan jauh dan bahkan pada aplikasi komersial

8. libtiff

Merupakan library untuk membaca format file TIFF (Tagged Image File Format)

9. libgeotiff

Merupakan library untuk membaca format file GeoTIFF (file TIFF dengan referensi geografis).

10. libjpeg

Merupakan library yang digunakan untuk baca/tulis gambar dalam format JPG/JPEG

11. GEOS

Library untuk topology data vektor.

12. libxml

libxml diperlukan untuk menggunakan OGC SOS

13. SDE Client Library

client library untuk support koneksi data ArcSDE.

14. Oracle Spatial OCI

client library untuk koneksi database Oracle.

15. libpq

Merupakan library yang diperlukan untuk mensupport data PostGIS dari database PostgreSQL

16. pdflib (lite)

Library untuk menghasilkan output PDF.

17. libming

Library untuk menghasilkan output Macromedia Flash.

Compile seluruh library diatas tersebut dengan langkah-langkah :

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file library dengan mengetikkan

tar -xvf library-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi library dengan mengetikkan perintah

cd library-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure

make

make install

Compile MapServer

Buka console/terminal untuk memulai installasi

Pindah ke direktori dimana file aplikasi disimpan

Ekstract file mapserver dengan mengetikkan

tar -xvf mapserver-[versi aplikasi].tar.gz

Pindah ke dalam folder aplikasi proj dengan mengetikkan perintah

cd mapserver-[versi aplikasi]/

Compile aplikasi dengan mengetikkan perintah

./configure –with-ogr=/usr/local/bin/gdal-config –with-gdal=/usr/local/bin/gdal-config –with-httpd=/usr/local/apache2/bin/httpd –with-wfsclient –with-wmsclient –enable-debug –with-curl-config=/usr/local/bin/curl-config –with-proj=/usr/local/ –with-tiff –with-gd=/usr/local –with-jpeg –with-freetype=/usr/local/bin –with-wcs –with-postgis=/usr/local/pgsql/bin/pg_config –with-geos=/usr/local/bin/geos-config –with-xml2-config=/usr/local/bin/xml2-config –with-sos –with-php=/media/hda6/download/php-5.2.3 –with-sde=/usr/arcsde/sdeexe83 –with-sde-version=83 –with-oraclespatial=$ORACLE_HOME

make

cp mapscript/php3/php_mapscript.so /usr/local/lib/php/ext/

Tambahkan baris berikut pada php.ini

extension=php_mapscript.so