コード例 #1
0
 public function run()
 {
     DB::table('Layers')->delete();
     $layers = array(array('layername' => 'Administrasi Kabupaten Bogor', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_ADMINISTRASI_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_ADMINISTRASI_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 0, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Tutupan Lahan', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_TUTUPAN_LAHAN_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_TUTUPAN_LAHAN_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 1, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Kemiringan Lahan', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_KEMIRINGAN_LERENG_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_KEMIRINGAN_LERENG_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 2, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Geologi', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_GEOLOGI_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_GEOLOGI_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 3, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Jenis Tanah', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_JENIS_TANAH_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_JENIS_TANAH_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 4, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Rencana Pola Ruang RDTR SEKABUPATEN', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_RENCANA_POLA_RUANG_RDTR_SEKABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_RENCANA_POLA_RUANG_RDTR_SEKABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 5, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Rencana Pola Ruang KABUPATEN Bogor', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_RENCANA_POLA_RUANG_KABUPATEN_BOGOR/MapServer', 'layer' => 'PETA_RENCANA_POLA_RUANG_KABUPATEN_BOGOR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 6, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Rencana Pola Ruang JABODETABEKPUNCUR', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_RENCANA_POLA_RUANG_JABODETABEKPUNCUR/MapServer', 'layer' => 'PETA_RENCANA_POLA_RUANG_JABODETABEKPUNCUR', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 7, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Rencana Pola Ruang PROVINSI JABAR', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_RENCANA_POLA_RUANG_PROVINSI_JAWA_BARAT/MapServer', 'layer' => 'PETA_RENCANA_POLA_RUANG_PROVINSI_JAWA_BARAT', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 8, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Geotagging', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/geotagging/MapServer', 'layer' => 'geotagging', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 9, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer'), array('layername' => 'Geotagging', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/geotagging_edit/FeatureServer/0', 'layer' => 'geotagging_edit', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 10, 'tipelayer' => 'feature', 'option_opacity' => 1.0, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'), array('layername' => 'Sebaran Fasilitas', 'layerurl' => 'http://silver-pc/arcgis/rest/services/SIMTARU/PETA_SEBARAN_FASILITAS/MapServer', 'layer' => 'PETA_SEBARAN_FASILITAS', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 11, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'), array('layername' => 'Sebaran Bangunan', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_SEBARAN_BANGUNAN/MapServer', 'layer' => 'PETA_SEBARAN_BANGUNAN', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 12, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'), array('layername' => 'Penggunaan Lahan Kota Ciawi', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_PENGGUNAAN_LAHAN_KOTA_CIAWI/MapServer', 'layer' => 'PETA_PENGGUNAAN_LAHAN_KOTA_CIAWI', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 13, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'), array('layername' => 'Site Plan', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_SITE_PLAN/MapServer', 'layer' => 'PETA_SITE_PLAN', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 14, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor', 'jsonfield' => ' '), array('layername' => 'Ijin Lokasi Bogor 2014', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/PETA_ILOK_KABUPATEN_BOGOR_2014/MapServer', 'layer' => 'PETA_ILOK_KABUPATEN_BOGOR_2014', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 15, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => false, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'), array('layername' => 'Jalan', 'layerurl' => 'http://silver-pc:6080/arcgis/rest/services/SIMTARU/ROUTE/MapServer', 'layer' => 'jalan', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 16, 'tipelayer' => 'dynamic', 'option_opacity' => 1.0, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor'));
     foreach ($layers as $pri) {
         layer::create($pri);
     }
 }
コード例 #2
0
ファイル: DatabaseSeeder.php プロジェクト: muhamadanjar/rth
 public function run()
 {
     DB::table('Layers')->delete();
     $p = array(array('layername' => 'Administrasi Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_Dasar_Kota_Bogor/MapServer', 'layer' => 'Peta_Dasar_Kota_Bogor', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 0, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer', 'jsonfield' => ' '), array('layername' => 'Rencana Pola Ruang Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_Rencana_Pola_Ruang_Kota_Bogor/MapServer', 'layer' => 'Peta_Rencana_Pola_Ruang_Kota_Bogor', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 1, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer', 'jsonfield' => ' '), array('layername' => 'Tematik Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_Tematik_Kota_Bogor/MapServer', 'layer' => 'Peta_Tematik_Kota_Bogor', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 2, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer', 'jsonfield' => ' '), array('layername' => 'Sebaran Point', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_POI/MapServer', 'layer' => 'Peta_POI', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 3, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer', 'jsonfield' => ' '), array('layername' => 'RTH Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_RTH_Kota_Bogor/MapServer', 'layer' => 'Peta_RTH_Kota_Bogor', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 4, 'tipelayer' => 'dynamic', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'viewer', 'jsonfield' => ' '), array('layername' => 'RTH Publik Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_RTH_Kota_Bogor_edit/FeatureServer/1', 'layer' => 'rth_publik', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 5, 'tipelayer' => 'feature', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor', 'jsonfield' => ' '), array('layername' => 'RTH Privat Kota Bogor', 'layerurl' => 'http://rsmm2014.com:6080/arcgis/rest/services/RTH/Peta_RTH_Kota_Bogor_edit/FeatureServer/4', 'layer' => 'rth_privat', 'leveluser' => '1', 'na' => 'N', 'id_grouplayer' => '0', 'orderlayer' => 6, 'tipelayer' => 'feature', 'option_opacity' => 0.7, 'option_visible' => true, 'option_mode' => 1, 'featureaccess' => '', 'visible' => 'editor', 'jsonfield' => ' '));
     foreach ($p as $pri) {
         layer::create($pri);
     }
 }