Home arrow News - Articles arrow Behind the Scene arrow Membuat Aplikasi SIG dengan MapObjects Bagian I: Fungsi-fungsi Standar
 
  XnRnXZvLpO www.danielhp.com
Membuat Aplikasi SIG dengan MapObjects Bagian I: Fungsi-fungsi Standar PDF Print E-mail
Written by Administrator   
Monday, 30 April 2007
Article Index
Membuat Aplikasi SIG dengan MapObjects Bagian I: Fungsi-fungsi Standar
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10

IX.    Measuring

Salah satu keuntungan penggunaan data spatial adalah kita tidak perlu menyimpan nilai panjang dan luas, karena secara otomatis sudah dapat diambil dari data yang berbentuk vektor ini. Seperti sudah digunakan pada saat identify yang mengeluarkan panjang jalan dan luas propinsi dengan tinggal mengambil property length dan Area. Fungsi pemgambilan panjang dan Luas ini dapat kita manfaatkan juga untuk pengukuran panjang suatu rute tertentu atau pengukuran luas suatu bidang bebentuk tertentu di peta yang dalam Arcview disebut dengan measure.

Untuk melakukan measure ini kita perlu menambahkan lagi tombol untuk pengukuran panjang dan pengukuran luas seperti pada gambar 17 dibawah.

 
Gambar 17. Desain tampilan yang sudah dilengkapi Pengukuran jarak dan Luas

Sama seperti Identify, proses pencarian jarak dan luas juga dilakukan saat event MouseDown pada object Peta. Jadi harus diberi mode dan bentuk pointer tertentu.

Private Sub Command8_Click()
    pMode = "jarak"
    Map1.MousePointer = moCross
End Sub

Private Sub Command9_Click()
    pMode = "luas"
    Map1.MousePointer = moCross
End Sub


Sebelum menambahkan kode pada event MouseDown, ada yang perlu disiapkan lagi. Yaitu bentuk dari rute dan bidang yang akan dibuat diatas peta. Membuat gambar diatas peta memerlukan object TrackingLayer. Object trackinglayer ini mempunyai koleksi simbol-simbol untuk menggambar bentuk tertentu yang disimpan dalam property Symbol dan jumlah simbolnya dalam property SymbolCount. Isi dari property symbol sama dengan isi property symbol pada object maplayer. Symbol-symbol ini harus didefinisikan terlebih dahulu, dan akan ditambahkan dalam event form_load. Disini symbol pertama digunakan untuk menggambar rute, sedang simbol kedua untuk menggambar bidang.

    Map1.TrackingLayer.SymbolCount = 2
    With Map1.TrackingLayer.Symbol(0)
        .SymbolType = moLineSymbol
        .Color = moRed
        .Size = 3
    End With
    With Map1.TrackingLayer.Symbol(1)
        .SymbolType = moFillSymbol
        .OutlineColor = moRed
        .Color = moCyan
    End With

Setelah bentuk symbol siap, dilanjutkan dengan menambahkan case untuk jarak dan luas. Jika sebelumnya kita mengenal TrackRectangle saat zoom in untuk memaksa pengguna membuat rectangle, maka untuk pengukuran jarak dan luas ini kita akan memaksa pengguna untuk membuat polyline dan polygon. Masing-masing dengan fungsi TrackLine dan TrackPolygon. Setelah pengguna membuat garis/polygon, bentuk garis/polygon ini kemudian dimasukkan dalam trackinglayer dengan fungsi AddEvent dan digambar dengan simbol yang sudah kita set sebelumnya. Setelah digambar, keterangan panjang/luas ditampilkan dengan messagebox  dengan terlebh dulu dikalikan dengan konstanta derajat ke km. Setelah messagebox ditutup, gambar garis/polygon ini akan dihapus dengan ClearEvent. Berikut kode yang harus ditambahkan pada event mouseMove.

Case "jarak"
    Dim Ln As mapobjects2.Line
    Set Ln = Map1.TrackLine
    Map1.TrackingLayer.AddEvent Ln, 0
    MsgBox "Panjang=" & Ln.Length * 110 & " Km"
    Map1.TrackingLayer.ClearEvents
    
Case "luas"
    Dim Pl As mapobjects2.Polygon
    Set Pl = Map1.TrackPolygon
    Map1.TrackingLayer.AddEvent Pl, 1
    MsgBox "Luas=" & Pl.Area * 110 * 110 & " Km2"
    Map1.TrackingLayer.ClearEvents


Gambar 18 dan 19 berturut-turut menunjukkan contoh hasil dari fungsi pengukuran panjang dan luas ini.


 
Gambar 18. Contoh tampilan saat melakukan pengukuran panjang


 
Gambar 19. Contoh hasil saat melakukan pengukuran luas

 

 BERSAMBUNG KE BAGIAN II : FUNGSI-FUNGSI ADVANCE

Comments
Search
comments
arimita (125.164.123.xxx) 2009-02-10 07:48:39

Terima kasih sudah berbagi ilmu mengenai Sistem Informasi Geografis, saya
berharap kita bisa sharing lebih lanjut mengenai aplikasi SIG Online ke
depannya.
-
rie (118.136.142.xxx) 2009-03-13 18:04:03

THANKSSS LOTS..
emm,, MAPOBJECT yg saya punya koq ga ada license nya,, bisa tau
dimana downloadnya? makasih,, PM me
arie (118.136.116.xxx) 2009-03-28 02:01:26

mas saya mempunyai data ketinggian dalam bentuk .asc,, bagaimana cara
memunculkannya dalam mapobjek di vb6?

terimakasih
PM me
Mohon bantuannya
Dino (125.167.43.xxx) 2009-05-26 01:30:37

Mas, jika saya berdiri pada sebuah titik (X) dan saya akan menuju ke titik
(Y).
Bagaimana caranya menggambar garis dari titik X ke titik Y ?

Terima
kasih
Anonymous (122.139.62.xxx) 2009-05-27 01:37:59

cheap wow power leveling cheapest wow power leveling my wow gold buy wow gold replica replica rolex CHEAP wow power level BUY power leveling replica rolex replica CHEAPEST power leveling MY wow power level
cheap rs gold
good BUY wow gold
replica rolex
CHEAPEST wow gold
cheap lotro gold
buy wow gold
my wow gold
cheapest wow gold
CHEAP wow gold zmc
tanya
anggar kusuma (202.154.176.xxx) 2009-06-12 01:11:37

mas daniel
mas daniel saya ingin melakukan pencarian jarak dan rute di
MapOject menggunakan VB 6.0 dimana pecariaannya dilakukan di layer jalan (line).
kira- kira metode atau algoritma apa yang saya pakai. trus kalau pakai Algoritma
A* Bisa nggak?
mohon pencerahannya...
makaci
tanya
elwin (118.96.200.xxx) 2009-06-12 07:34:44

mas daniel saya mo tanya,kalo code buat zoom out,zoom in,pan,full extentd buat
picture pada picturebox apa ya?saya sudah coba pake
codenya"picture1.mousepointer=mozoomout" malah eror.Mohon bantuannya.
re anggar dan elwin
daniel (114.58.34.xxx) 2009-06-13 23:33:44

Biasanya mahasiswa yang dipake adalah djikttra sih, tapi saya yakin metode
apapun bisa kok. asal datanya benar2 tersambung atau ada data untuk mengetahui
koneksi antara line sekarang ini ujung-ujungnya tersambung dengan line yg mana.



untuk mas elwin, mozoomout memang khusus dipakai saat berada diatasnya
mapobject.
tanya lagiiii
anggar kusuma (125.167.43.xxx) 2009-06-14 03:22:07

mas daniel
kalau pakai A* atau Djigstra dari referensi yang saya dapat.. itu
pakai sistem grid nah kalau di map Object kira2 pakai apa mas...
makaci
sebelumnya kalau ada contoh atau referensi algoritma djigstra atau A* di Map
Object tolong kirimkan saya ke email saya. angger_kusuma@yahoo.com
terima
kasih banyak
Download mapObject
Suriya (202.147.203.xxx) 2009-08-27 06:53:48

Mas daniel saya mo tanya untuk download mapObject versi 2.0/1 dmn link'y y?klo
da sya minta link'y dunkz..

Thanx..
mapobjek dan c++
sherly (125.165.182.xxx) 2009-09-03 15:37:32

mas, ada bahan tulisan tentang mapobjek dengan c++ ga ya??? tolong dunk dikasih
tau ^^
thx ya
Women
Buy Ugg Boots (125.78.240.xxx) 2010-02-27 07:39:21

With all the
boots [url=http://www.zhjugg.com/new-product-ugg-bailey- 

button-58
03-grey-boots-p-]UGG Bailey Button Grey[/url] included in Ugg


Australia’s Classic Collection range the Bailey
chenwei
Button
is lined ugg cardy

oatmeal with twin faced Grade A sheepskin.
Also there is the

UGG Bailey Button traditional

suede heel guard to ensure that not only

is this area
protected but offers this part of the boot support.

Ugg Cardy Boots Plus within the

boots you find each pair has sock liners

that are
made from sheepskin PU foam so increasing the level of

Ugg Cardy comfort a person feels

when wearing them.
激安 ユニフォ&
激安 ユ| (220.161.165.xxx) 2010-02-27 09:04:14

LCZ 
読売巨人軍は 、ビ
;ジターゲ&# 12540;ムで着用&
#12377;  427;夏季限定のӎ 0;|
69;マービジタ ーユニホ
;ーム&# 12301;を 採用しま
2377;。ユニフォーム...このユニ

ホӦ 0; ムの
発表会見&# 12364;12日(&#
26376;A 289;、東京・大৔ 3;ஹ
0;の球団事務 所で開か
れ、&# 12481;ームを代表  
375;て 坂本勇人選手&# ...
Paul Smith (220.161.165.xxx) 2010-02-27 09:20:56

Our store offer the cheap paul smith for you,sale new Paul Smith Shoes,and we will give my best server to you.Come on, more order will get more
discount.You can not miss them!rlh
MBT Shoes
mbt uk (220.161.165.xxx) 2010-02-27 10:16:42

When you purchase Mbt shoes you achieve shoes that appeal mbt shoes to your sense of style while insuring a shoe that does not cause pain and
discomfort after a day mbt trainers shoes of being on your feet. And after your purchase you know you have shoes
that are going to outlast shoes found in most stores. Created for
comfort and long lasting, MBT shoes utilize the highest quality
leather and materials. If you experience mbt uk discomfort from your foot perspiring during the day MBT Shoes applies a
sock lining in the lining of the shoe where you foot rests. mbt shoe This allows your feet to stay dry during the most challenging active
days.hlm
nike-shox (125.78.242.xxx) 2010-02-27 16:40:02

rr
Today, the nike shox basketball shoes

are popular around the world. wholesale nike shox shoes

started out as an American company, but have since expanded around the
globe. They're now available in 120 countries. shox r4

with an emphasis on walking shoes, the engineers at New Balance know
the importance of a proper fit and offer a wide range of widths
and sizes. Often recommended by podiatrists, nike running shoes

take an "endorsed by no one" stance, preferring to let their
technology and comfort sell their shoes instead of paying a
celebrity athlete to do it for them. Additionally, nike shox monster

are available in a variety of styles, each designed for different
needs-motion control, extra support, off road, use etc. New Balance
makes running, walking, tennis, cross-training and basketball shoes
for men and women, and also offers a line of kids' ...
timberland (220.161.165.xxx) 2010-02-27 17:03:14

mm Apparently, 21,000 boots imported by Timberland from Thailand have lead paint on the insole, violating federal lead paint
rules. I'm guessing this paint was used for printing of the
logo inside the boot. Please note Dear Readers, these are Timberland waterproof and children are particularly sensitive to the effects of lead and lead
poisoning. Avoid a lead paint accident that could injure or hurt
your child.
When I first saw this I thought, "How do you make Timberland work boots? Where's the risk of accident or injury?" Then I read further and saw,
"lead paint." The headline reads:"Timberland Recalls Timberland for kids Due to Violation of Lead Paint Standard"The U.S. Consumer Product
Safety Commission announced a voluntary recall of these boots.
Consumers should stop using recalled products immediately.
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."



Last Updated ( Thursday, 26 July 2007 )
 
< Prev   Next >
 
 
(C) 2010 daniel hary prasetyo
Free Joomla Template designed by funky-visions.de
 

articles (a-z order)