Sistem Informasi Geografis
Shapefile
Sebuah sistem informasi geografis (GIS atau) adalah sistem yang
dirancang untuk menangkap, menyimpan, memanipulasi, menganalisis, mengelola,
dan data spasial atau geografis hadir. Dan didalam geospsial terdapat
vector dn raster, didalam vector tersebut terdapat shapefile.
Rumusan Masalah
1. Jelaskan
cara create Shapefile
2. Jelaskan
cara edit Shapefile
3. Jelaskan
cara menghapus Shapefile
4. Jelaskan
cara menampilkan Shapefile
Penjelasan
1.
Create Shapefile
a. --Buka python di
command prompt
b. --import shapefile
c. --sf =
shapefile.Writer(shapeType=1)
d. --sf.shapeType ->
untuk mengecek
e. --sf.field('NAMA','C','40')
f. --sf.field('PEMILIK','C','40')
g. --sf.record('Poltekpos,'Suriadi
Zainuddin')
h. --sf.point(10,10,0,0)
-> disini point bisa diganti line atau polygon sesuai keinginan
i. --sf.save('poltekpos.shp')
-> untuk menyimpan
2.
Edit Shapefile
a.
--Buka python di command prompt
b.
--import shapefile
c.
--sf = shapefile.Editor(shapefile='poltekpos.shp')
d.
--sf.point(19,19,0,0)
e.
--sf.record('Warung Sunda,'Adi')
f.
--sf.save('warung')
3.
Menghapus Shapefile
a.
--Buka python di command prompt
b.
--import shapefile
c.
--e = shapefile.Editor('warung.shp')
d.
--e.shape(1) -> record ke berapa
e.
--e.delete(1)
f.
--e.save('warung')
4.
Menampilkan Shapefile
a.
--Buka python di command prompt
b.
--import shapefile
c.
--sf = shapefile.Reader('warung.shp')
d.
--sf.record() -> semua record
e.
--sf.record(0) -> record ke 1
f.
--sf.record(1) -> record ke 2
g.
--sf.shapes()(0).points -> menampilkan
Penutup
Kesimpulan
Kesimpulan Dari pernyataan diatas dapat
disimpulkan bahwa dalam data geometri shapefile dapat melakukan penambahan ,
pengeditan, penghapusan dan penampilan data geometri shapefile dengan mudah
menggunakan python
Saran
Untuk proses diatas cukuplah mudah Karena hanya
menggunakan program pythom
Link Github : Sistem Informasi Geografis
Nama : Suriadi Zainuddin
NPM : 1144092
Kelas : 3C
Prodi : D4 Teknik Informatika
Mata Kuliah :Sistem Informasi Geografis
Scan Plagiarisme : https://drive.google.com/open?id=0B4xKZBSfbWnFa2pmSDFXcmR0dW8