TAPU VE KADASTRO BİLGİ SİSTEMİ MEKÂNSAL GAYRİMENKUL SİSTEMİ (MEGSİS) HARİTA SERVİSLERİ DOKÜMANI Sürüm: 0.1
Revizyon Bilgileri Revizyon No: Revizyon Tarihi Revizyonu Yapan Revizyon Nedeni 0.1 17.04.2013 Yazılım Ekibi Taslak Doküman 2
Revizyon Bilgileri... 2 Giriş... 5 1. Veri Yapısı... 5 1.1. Detaylar... 5 1.1.1. İller... 5 1.1.2. İlçeler... 6 1.1.3. Mahalleler... 6 1.1.4. Adalar... 7 1.1.5. Parseller... 7 1.1.6. Yapılar... 8 1.1.7. Muhdesatlar... 8 1.1.8. İrtifak Hakları... 9 1.1.9. Eklentiler... 10 1.1.10. Tescil Harici Alanlar... 10 1.1.11. Yer Kontrol Noktaları... 11 1.2. Sabitler... 11 1.2.1. Detay Durum Tipleri... 11 1.2.2. MahalleKoyTipleri... 12 1.2.3. OnayDurumTipleri... 12 1.2.4. ParselTipleri... 12 1.2.5. ParselBelirtmeTipleri... 13 1.2.6. TescilHariciAlanTipleri... 13 1.2.7. YerKontrolNoktasiTipleri... 13 1.2.8. YknTesistipleri... 14 1.2.9. ZeminDurumTipleri... 14 1.2.10. YknOlcuYontemiTipleri... 15 1.2.11. YknDereceTipleri... 15 2. Harita Servisi (Web Map Service - WMS)... 15 2.1. Fonksiyonlar... 15 2.1.1. GetCapabilities... 15 2.1.2. GetMap... 16 2.1.3. GetFeatureInfo... 17 2.1.4. DescribeLayer... 18 2.1.5. GetLegendGraphic... 18
3. Harita Servisi (Web Feature Service - WFS)... 18 3.1. Fonksiyonlar... 18 3.1.1. GetCapabilities... 18 3.1.2. DescribeFeatureType... 19 3.1.3. GetFeature... 20 3.2. Kullanım Örnekleri... 21 3.2.1. Geometri Sorguları... 21 3.2.2. Attribute Sorguları... 22 4
Giriş Mekânsal Gayrimenkul Sistemi (MEGSİS); kadastro verilerinin sayısal olarak toplanması ve tapu verileri ile uyumlaştırılması ve sunulması amacıyla geliştirilmiş bir uygulamadır. Sisteme girilen mekânsal bilgiler, uluslararası standartlarda paydaş kurum/kuruluşlara sunulmaktadır. Ayrıca e-devlet kapısından vatandaşlarımızın taşınmaz bilgilerine erişimi imkânı da sağlanmaktadır. İş bu doküman yukarıda bahsedilen uluslararası standartlarda paydaş kurum/kuruluşlara sunulan harita servislerine ait bilgi ve kullanım senaryoları ile ilgili olarak hazırlanmıştır. 1. Veri Yapısı 1.1. Detaylar 1.1.1. İller İller Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 tapukimlikno Long Zorunlu Değil 19 ad String Zorunlu Değil 255 geom Geometry Zorunlu Değil 1 Uavt Int Zorunlu Değil 5 Durum Smallint Zorunlu Değil 5
1.1.2. İlçeler İlceler Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 tapukimlikno Long Zorunlu Değil 19 Ilref Long Zorunlu Değil 19 ad String Zorunlu Değil 255 geom Geometry Zorunlu Değil 1 Uavt Int Zorunlu Değil 5 Durum Smallint Zorunlu Değil 1.1.3. Mahalleler Mahalleler Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Uavt Int Zorunlu Değil 5 Ilceref Long Zorunlu Değil 19 tapukimlikno Long Zorunlu Değil 19 Durum Smallint Zorunlu Değil geom Geometry Zorunlu Değil 1 Sistemkayittarihi DateTime Zorunlu Değil Tip Smallint Zorunlu Değil Onaydurum Smallint Zorunlu Değil Onaytarih DateTime Zorunlu Değil Tapumahallead String Zorunlu Değil 50 Kadastromahallead String Zorunlu Değil 50 Sistemguncellemetarihi Datetime Zorunlu Değil 6
1.1.4. Adalar Adalar Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Ad String Zorunlu Değil 50 Mahalleref Long Zorunlu Değil 19 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil 1.1.5. Parseller Parseller Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Parselno String Zorunlu Değil 50 Adano String Zorunlu Değil 50 Tapukimlikno Long Zorunlu Değil 19 Tapuzeminref Int Zorunlu Değil 5 Tapucinsaciklama String Zorunlu Değil 255 Tapumahalleref Int Zorunlu Değil 5 Tapualan Double Zorunlu Değil Tip Int Zorunlu Değil 5 Belirtmetip Int Zorunlu Değil 5 7
Durum Int Zorunlu Değil 5 Geom geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Kadastroalan Double Zorunlu Değil Tapucinsid Long Zorunlu Değil 19 Sistemguncellemetarihi Datetime Zorunlu Değil 1.1.6. Yapılar Yapilar Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Ad String Zorunlu Değil 50 Parselref Long Zorunlu Değil 19 Tip Int Zorunlu Değil 5 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Onaytarihi Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil 1.1.7. Muhdesatlar Muhdesatlar Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Ad String Zorunlu Değil 50 8
Tapukimlikno Long Zorunlu Değil 19 Parselref Long Zorunlu Değil 19 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil Tapuaciklama String Zorunlu Değil 1000 1.1.8. İrtifak Hakları İrtifakHaklari Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Tanim String Zorunlu Değil 250 Parselref Long Zorunlu Değil 19 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Tapukimlikno Long Zorunlu Değil 19 Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil Tapuaciklama String Zorunlu Değil 1000 9
1.1.9. Eklentiler Eklentiler Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Ad String Zorunlu Değil 50 Tapukimlikno Long Zorunlu Değil 19 Parselref Long Zorunlu Değil 19 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil Tapuaciklama String Zorunlu Değil 1000 1.1.10. Tescil Harici Alanlar TescilHariciAlanlar Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Tanim String Zorunlu Değil 250 Tip Int Zorunlu Değil 5 Durum Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Tapumahalleref Long Zorunlu Değil 19 10
Tapukimlikno Long Zorunlu Değil 19 Kadastroalan Double Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil 1.1.11. Yer Kontrol Noktaları YerKontrolNoktalari Parametre İsmi Veri Tipi Zorunluluk Veri Uzunluğu Açıklama id Long Zorunlu 19 Ad String Zorunlu Değil 50 Tip Int Zorunlu Değil 5 Tesistip Int Zorunlu Değil 5 Zemindurum Int Zorunlu Değil 5 Olcuyontemi Int Zorunlu Değil 5 Derece Int Zorunlu Değil 5 Geom Geometry Zorunlu Değil Sistemkayittarihi Datetime Zorunlu Değil Durum Int Zorunlu Değil 5 Onaydurum Int Zorunlu Değil 5 Onaytarih Datetime Zorunlu Değil Sistemguncellemetarihi Datetime Zorunlu Değil 1.2. Sabitler 1.2.1. Detay Durum Tipleri DetayDurumTipleri Id Value Bilinmiyor 0 11
Taslak 1 Pasif 2 Aktif 3 1.2.2. MahalleKoyTipleri MahalleKoyTipleri Id Value Bilinmiyor 0 Mahalle 1 Köy 2 1.2.3. OnayDurumTipleri OnayDurumTipleri Id Value Bilinmiyor 0 Onaylandı 1 Onaylanmadı 2 1.2.4. ParselTipleri ParselTipleri Id Value Bilinmiyor 0 Imar 1 Kadastro 2 İhdas 3 Terk 4 12
DOP 5 Hisseli Terk Parseli 6 Geçici 7 KOP 8 Orman 9 1.2.5. ParselBelirtmeTipleri ParselBelirtmeTipleri Id Value Bilinmiyor 0 İki B 1 1.2.6. TescilHariciAlanTipleri TescilHariciAlanTipleri Id Value Bilinmiyor 0 Orman 1 Park 2 İki B 3 1.2.7. YerKontrolNoktasiTipleri YerKontrolNoktasiTipleri Id Value Bilinmiyor 0 A 1 13
B 2 C 3 N 8 P 12 H 13 Detay Noktasi 18 1.2.8. YknTesistipleri YknTesistipleri Id Value Bilinmiyor 0 Pilye 1 Beton 2 Civi 3 Boru 4 SabitTesis 5 Madeni Röper 6 1.2.9. ZeminDurumTipleri ZeminDurumTipleri Id Value Bilinmiyor 0 Sağlam 1 Tahrip Olmuş 2 İhya Edilmiş 3 14
1.2.10. YknOlcuYontemiTipleri YknOlcuYontemiTipleri Id Value Bilinmiyor 1 Elektronik Takometre 2 Prizmatik 3 Optik Mekanik Takeometre 4 Fotogrametrik 5 GPS 6 1.2.11. YknDereceTipleri YknDereceTipleri Id Value Bilinmiyor 0 Bir 1 İki 2 Üç 3 Dört 4 2. Harita Servisi (Web Map Service - WMS) 2.1. Fonksiyonlar 2.1.1. GetCapabilities http://cbsservis.tkgm.gov.tr/tkgm.ows/wms?service=wms&request=getcapabilities 15
Şekil 1: Ekran Görüntüsü_MEGSİS_001 2.1.2. GetMap http://cbsservis.tkgm.gov.tr/tkgm.ows/wms?height=400&width=1003&layers=t KGM:MEGSIS&SERVICE=WMS&STYLES=&SRS=EPSG%3A4326&FORMAT=imag e%2fpng&request=getmap&bbox=25.382409179687,35.74005859375,44.1445 82031249,41.913056640624 Şekil 2: Ekran Görüntüsü_MEGSİS_002 16
2.1.3. GetFeatureInfo http://cbsservis.tkgm.gov.tr/tkgm.ows/wms?request=getfeatureinfo&exception S=application%2Fvnd.ogc.se_xml&BBOX=28.712087%2C38.033963%2C38.093173 %2C41.120462&SERVICE=WMS&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS =TKGM%3Ailler&FEATURE_COUNT=50&Layers=TKGM%3Ailler&WIDTH=1003&HE IGHT=330&format=image%2Fpng&styles=&srs=EPSG%3A4326&version=1.1.1&x=4 27&y=122 <html> <head> </head> <style type="text/css"> table.featureinfo, table.featureinfo td, table.featureinfo th { border:1px solid #ddd;border-collapse:collapse;margin:0;padding:0;font-size: 90%;padding:.2em.1em;} table.featureinfo th {padding:.2em.2em;font-weight:bold;background:#eee;} table.featureinfo td{background:#fff;} table.featureinfo tr.odd td{background:#eee;} table.featureinfo caption{text-align:left;font-size:100%;font-weight:bold;texttransform:uppercase;padding:.2em.2em;} </style> <body> <table class="featureinfo"> <caption class="featureinfo">iller</caption> <tr> <th>fid</th> <th >tapukimlikno</th> <th >ad</th> <th >uavt</th> <th >durum</th> </tr> <tr> <td>iller.6</td> <td>28</td> <td>ankara</td> <td></td> <td>3</td> </tr> </table> <br/> </body> </html> Şekil 3: Ekran Görüntüsü_MEGSİS_003 17
2.1.4. DescribeLayer http://cbsservis.tkgm.gov.tr/tkgm.ows/wms?request=describelayer&format=im age/png&width=20&height=20&layer=tkgm:yerkontrolnoktalari <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE WMS_DescribeLayerResponse SYSTEM "http://cbsservis.tkgm.gov.tr/tkgm.ows/schemas/wms/1.1.1/wms_describelayerresponse.dtd"> <WMS_DescribeLayerResponse version="1.1.1"> <LayerDescription name="iller" wfs="http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs/wfsdispatcher?" owsurl="http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs/wfsdispatcher?" owstype="wfs"> <Query typename="tkgm:iller"/> </LayerDescription> </WMS_DescribeLayerResponse> 2.1.5. GetLegendGraphic http://cbsservis.tkgm.gov.tr/tkgm.ows/wms? SERVICE=WMS& REQUEST=GetLegendGraphic&LAYER=TKGM:yerkontrolnoktalari Şekil 4: Ekran Görüntüsü_MEGSİS_004 3. Harita Servisi (Web Feature Service - WFS) 3.1. Fonksiyonlar 3.1.1. GetCapabilities http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?service=wfs&request=getcapabilities 18
Şekil 5: Ekran Görüntüsü_MEGSİS_005 3.1.2. DescribeFeatureType http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?service=wfs&version=1.0.0&request =DescribeFeatureType&TYPENAME=TKGM%3ailler&SRSNAME=EPSG%3a4326 19
Şekil 6: Ekran Görüntüsü_MEGSİS_006 3.1.3. GetFeature http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?service=wfs&version=1.0.0&request =GetFeature&TYPENAME=TKGM%3ailler&SRSNAME=EPSG%3a4326&MAXFEATURE S=1 <?xml version="1.0" encoding="utf-8"?><wfs:featurecollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:tkgm="http://www.tkgm.gov.tr" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.tkgm.gov.tr http://10.210.75.110:9091/geoserver/wfs?service=wfs&version=1.0.0&request=describ efeaturetype&typename=tkgm%3ailler http://www.opengis.net/wfs http://10.210.75.110:9091/geoserver/schemas/wfs/1.0.0/wfs-basic.xsd"> <gml:boundedby> <gml:null>unknown</gml:null> </gml:boundedby> <gml:featuremember> <TKGM:iller fid="iller.1"> <TKGM:tapukimlikno>23</TKGM:tapukimlikno> <TKGM:ad>Adana</TKGM:ad> <TKGM:geom> <gml:polygon srsname="http://www.opengis.net/gml/srs/epsg.xml#4326"> <gml:outerboundaryis> <gml:linearring> <gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" "> </gml:coordinates> </gml:linearring> </gml:outerboundaryis> </gml:polygon> </TKGM:geom> <TKGM:durum>3</TKGM:durum> </TKGM:iller> </gml:featuremember> </wfs:featurecollection> 20
3.2. Kullanım Örnekleri 3.2.1. Geometri Sorguları Within Sorgu http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?request=getfeature&service=wf S&SRSNAME=EPSG%3a4326&TYPENAME=KVK%3amahalleler&VERSION=1.0.0&&cql_filter=WITHIN(geom,MULTIPOLYGON(((28.1497666527913 41.5877567 81344,29.9411607230787 41.1510754778669,29.8846772393932 40.994659676892,29.7423823093396 41.0196427562142,29.6685192922126 40.9370899723663,29.5490349998011 41.0120392103335,29.371981002864 40.8067434715538,29.3524290277422 40.8154332382746,29.3357012268046 40.7707895617464,28.1160702843388 41.5475647274066,28.113634402282 41.558932177005,28.12784371428 41.5784192334596,28.1497666527913 41.587756781344)))) Sorgu Sonucu Şekil 7: Ekran Görüntüsü_MEGSİS_007 BBOX BBOX(geom, 00, 40, 90, 46) Ilgili geometrinin verilen box içerisine duşuni getirir. Grup sorgusunda çalışır. Disjoint disjoint(geom,polygon((32.8690720240082 39.8785125630436,32.8692009339868 39.8784700626696, 32.8693618920374 39.8781879487639,32.8692822220536 39.8781689353228,32.8691999434099 39.8781546777239,32.8690726560099 39.8781433304834,32.8689773362941 39.8781417386346,32.8688695008202 39.8781494484981,32.8687591134978 39.8781663992648,32.8687787736276 39.8783632090303,32.8688422752024 21
39.8784460363725,32.8690118246905 39.8784412025581,32.8690720240082 39.8785125630436))) ilgili geometri ile kesişmeyen detayları getirir. Grup sorgusunda çalışır Contains contains(geom,polygon((32.8690720240082 39.8785125630436,32.8692009339868 39.8784700626696,32.8695846605739 39.8787082133369,32.8695761163582 39.8788127828909, 32.8687591134978 39.8781663992648,32.8687787736276 39.8783632090303,32.8688422752024 39.8784460363725,32.8690118246905 39.8784412025581,32.8690720240082 39.8785125630436))) Ilgili geometri ile kesişenleri getirir Grup sorgusunda çalışır Ek detaylar için http://docs.geoserver.org/stable/en/user/filter/function_reference.html#filterfunction-reference 3.2.2. Attribute Sorguları Mahalle Adına Göre Sorgulama Örneği http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?request=getfeature&service=wfs& SRSNAME=EPSG%3a4326&TYPENAME=TKGM:mahalleler&cql_filter=(tapumahalle ad%20like%20'sorgun') Mahalle Adına Göre Sorgulama Sonucu Şekil 8: Ekran Görüntüsü_MEGSİS_008 Tarihsel Sorgu ile Sorgu Örneği (Fark almak için wfs kullanımı) WFS fark alımına iki özellik belirleyicidir. Bunlar sistemkayittarihi ve durumdur. Sisteme yeni atılan bir kaydı sistem kayit tarihine ilgili tarih girilerek alınabilir. Tarihsel olarak belirli bir tarihten sonra sisteme kaydedilen kayitların alınması 22
http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?request=getfeature&service=wf S&SRSNAME=EPSG%3a4326&TYPENAME=TKGM:mahalleler&cql_filter=(tapumah allead%20like%20'sorgun'%20and%20sistemkayittarihi%3e'2012-10-09') Tarihsel Sorguya Göre Sorgulama Sonucu Şekil 9: Ekran Görüntüsü_MEGSİS_009 Silinmiş Kayıtların Sistemden alınması (Tarihsel ve duruma göre) Sistemden silinmiş bir kayda ise durum özelliğine göre sorgu yapılarak erişilebilinir. http://cbsservis.tkgm.gov.tr/tkgm.ows/wfs?request=getfeature&service=wf S&SRSNAME=EPSG%3a4326&TYPENAME=TKGM:mahalleler&cql_filter=(tapumah allead%20like%20'sorgun'%20and%20sistemkayittarihi%3e'2012-10- 09'%20and%20durum=3) Tarihsel ve duruma göre(aktif kayitlar için) Sorgu Sonucu Şekil 10: Ekran Görüntüsü_MEGSİS_010 Tarihsel ve duruma göre(pasif kayitlar için) sorgu Örneği http://cbs.tkgm.gov.tr/tkgm.ows/wfs?request=getfeature&service=wfs&sr SNAME=EPSG%3a4326&TYPENAME=TKGM:mahalleler&cql_filter=(tapumahallead %20like%20'sorgun'%20and%20sistemkayittarihi%3E'2012-10- 09'%20and%20durum=2) Tarihsel ve duruma göre(aktif kayitlar için) Sorgu Sonucu Şekil 11: Ekran Görüntüsü_MEGSİS_011 23
http://docs.geoserver.org/stable/en/user/filter/function_reference.html#filter-functionreference http://docs.codehaus.org/display/geotdoc/01+cql+examples#01cqlexamples- FilterbyComparingValues 24