예제 #1
0
 def home(self, uridt='null'):
     provinsi = 'jakarta'
     provloc = '106.842041, -6.198240'
     mapzoom = '9'
     kabkotcord = [
         '106.491089, -5.424048', '106.808599, -6.275570',
         '106.906381, -6.273415', '106.830278, -6.18061',
         '106.735284, -6.161188', '106.858377, -6.129396'
     ]
     listkabkot = [
         '%3101%', '%3171%', '%3172%', '%3173%', '%3174%', '%3175%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #2
0
파일: jakarta.py 프로젝트: yandarizky/kuis
 def home(self, uridt='null'):
     provinsi = 'jakarta'
     provloc = '106.842041, -6.198240'
     mapzoom = '9'
     kabkotcord = [
         '106.496812, -5.796648', '106.811003, -6.276594',
         '106.904321, -6.227001', '106.835776, -6.182991',
         '106.755540, -6.170063', '106.892013, -6.133137'
     ]
     listkabkot = [
         '%3101%', '%3171%', '%3172%', '%3173%', '%3174%', '%3175%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #3
0
	def home(self,uridt='null'):
		provinsi = 'gorontalo'
		provloc = '122.410923, 0.723049'
		mapzoom = '9'
		kabkotcord = [
		'122.271955, 0.718607',
		'122.465735,0.728542',
		'121.52287,0.707775',
		'123.286145, 0.580945',
		'122.966074, 0.837543',
		'123.051864,0.546691'
		]
		listkabkot = [
		'%7501%','%7502%','%7503%','%7504%','%7505%'
		'%7571%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #4
0
파일: kaltim.py 프로젝트: peuyeum/peuyeum
 def home(self, uridt='null'):
     provinsi = 'kaltim'
     provloc = '116.365086, 0.659612'
     mapzoom = '9'
     kabkotcord = [
         '115.944746, -1.714400', '115.843966, -0.402557',
         '116.609979, -0.143989', '116.609979, 0.930410',
         '117.357600, 2.035446', '116.513376, -1.297642',
         '114.713004, 0.963945', '116.871469, -1.149904',
         '117.126077, -0.503505', '117.448006,0.082551'
     ]
     listkabkot = [
         '%6401%', '%6402%', '%6403%', '%6404%', '%6405%', '%6409%'
         '%6411%', '%6471%', '%6472%', '%6474%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #5
0
	def home(self,uridt='null'):
		provinsi = 'yogya'
		provloc = '110.384671, -7.828832'
		mapzoom = '9'
		kabkotcord = [
		'110.155113, -7.790746',
		'110.321545, -7.875042',
		'110.616720, -8.030678',
		'110.332540, -7.716233',
		'110.365231, -7.795085'
		]
		listkabkot = [
		'%3401%','%3402%','%3403%','%3404%',
		'%3471%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #6
0
 def home(self, uridt='null'):
     provinsi = 'babel'
     listkabkot = [
         '%1901%', '%1902%', '%1903%', '%1904%', '%1905%', '%1906%',
         '%1971%'
     ]
     provloc = '106.400525, -2.755146'
     mapzoom = '9'
     kabkotcord = [
         '105.963606, -1.887512', '107.962581, -2.869221',
         '105.462183, -1.925556', '106.198428, -2.372431',
         '106.429581, -2.856389', '108.106855, -2.883306',
         '106.117265, -2.132463'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     cal.close()
     return dt
예제 #7
0
 def home(self, uridt='null'):
     provinsi = 'ntb'
     provloc = '117.231158, -8.240186'
     mapzoom = '9'
     kabkotcord = [
         '116.101926, -8.667428', '116.347291, -8.720206',
         '116.526059, -8.508658', '117.473154,-8.732179',
         '118.193416, -8.487878', '118.745947, -8.463057',
         '116.927607, -8.847619', '116.259665, -8.369862',
         '116.103038, -8.577178', '118.743887, -8.464246'
     ]
     listkabkot = [
         '%5201%', '%5202%', '%5203%', '%5204%', '%5205%', '%5206%',
         '%5207%', '%5208%', '%5271%', '%5272%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #8
0
 def home(self, uridt='null'):
     provinsi = 'sulbar'
     provloc = '118.848668, -2.272918'
     mapzoom = '8'
     kabkotcord = [
         '118.879902, -3.105170', '119.124650, -3.286153',
         '119.364817, -2.960717', '119.330609, -2.528387',
         '119.475132, -1.525900', '119.542985, -1.992118'
     ]
     listkabkot = [
         '%7601%', '%7602%', '%7603%', '%7604%', '%7605%', '%7606%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #9
0
 def home(self, uridt='null'):
     try:
         uridt = int(uridt)
     except ValueError:
         uridt = datetime.now().year
     uridt = str(uridt)
     provcord = [
         '97.157133, 4.408571', '99.024808, 2.039450',
         '100.562894, -0.706683', '101.683500, 0.336998',
         '102.595365, -1.618351', '103.990629, -3.275716',
         '102.3268839, -3.6343766', '105.188138, -4.886557',
         '107.110746, -2.771050', '104.232328, 1.056545',
         '106.842041, -6.198240', '107.594144, -6.891804',
         '109.945218, -7.284288', '110.384671, -7.828832',
         '112.351224, -7.698205', '106.143949, -6.460788',
         '115.184055, -8.425745', '117.430759, -8.675622',
         '121.199070, -8.681052', '111.421238, -0.241252',
         '113.376804, -1.713165', '115.200535, -3.096190',
         '116.365086, 0.659612', '116.584812, 3.491935',
         '123.616062, 0.725525', '121.506687, -1.493524',
         '120.100437, -3.600696', '121.880222, -3.644554',
         '122.443724, 0.717559', '119.389525, -2.739325',
         '129.804564, -3.178191', '127.695189, 1.631968',
         '133.252734, -1.337635', '138.141650, -4.261678'
     ]
     listprov = [
         'aceh', 'sumut', 'sumbar', 'riau', 'jambi', 'sumsel', 'bengkulu',
         'lampung', 'babel', 'kepri', 'jakarta', 'jabar', 'jateng', 'yogya',
         'jatim', 'banten', 'bali', 'ntb', 'ntt', 'kalbar', 'kalteng',
         'kalsel', 'kaltim', 'kaltara', 'sulut', 'sulteng', 'sulsel',
         'sultra', 'gorontalo', 'sulbar', 'maluku', 'malut', 'pabar',
         'papua'
     ]
     listkodeprov = [
         '%11%', '%12%', '%13%', '%14%', '%15%', '%16%', '%17%', '%18%',
         '%19%', '%21%', '%31%', '%32%', '%33%', '%34%', '%35%', '%36%',
         '%51%', '%52%', '%53%', '%61%', '%62%', '%63%', '%64%', '%65%',
         '%71%', '%72%', '%73%', '%74%', '%75%', '%76%', '%81%', '%82%',
         '%91%', '%94%'
     ]
     petaloc = '118.015776, -2.6000285'
     mapzoom = '5'
     periode = uridt
     batik.nasional('peta', listkodeprov, petaloc, mapzoom, provcord)
     cal = calendar.Calendar()
     dt = {}
     for namaprov, kodeprov in zip(listprov, listkodeprov):
         dt[kodeprov] = cal.getYearCountProv(kodeprov[1:3], uridt)
         dt[kodeprov[:3] + ' uri%'] = urlEncode16(keyuri + '%' + namaprov +
                                                  '%home%' + periode)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #10
0
 def home(self, uridt='null'):
     provinsi = 'bengkulu'
     listkabkot = [
         '%1701%', '%1702%', '%1703%', '%1704%', '%1705%', '%1706%',
         '%1707%', '%1708%', '%1709%'
         '%1771%'
     ]
     provloc = '102.265780, -3.793485'
     mapzoom = '9'
     kabkotcord = [
         '103.007302, -4.324655', '102.702270, -3.421670',
         '101.926784, -3.237190', '103.385116, -4.623465',
         '102.633522, -4.054247', '101.433101, -2.642920',
         '102.260408, -3.123849', '102.630506, -3.619429',
         '102.400284, -3.578422', '102.264410, -3.793830'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #11
0
 def home(self, uridt='null'):
     provinsi = 'banten'
     listkabkot = [
         '%3601%', '%3602%', '%3603%', '%3604%', '%3671%', '%3672%',
         '%3673%', '%3674%'
     ]
     provloc = '106.143949, -6.460788'
     mapzoom = '9'
     kabkotcord = [
         '105.755996, -6.673431', '106.200032, -6.630999',
         '105.755996, -6.673431', '106.163997, -6.110311',
         '106.652091, -6.201259', '106.010346, -6.003815',
         '106.163997, -6.110311', '106.710786, -6.281848'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #12
0
파일: babel.py 프로젝트: peuyeum/peuyeum
 def home(self, uridt='null'):
     provinsi = 'babel'
     listkabkot = [
         '%1901%', '%1902%', '%1903%', '%1904%', '%1905%', '%1906%',
         '%1971%'
     ]
     provloc = '106.400525, -2.755146'
     mapzoom = '9'
     kabkotcord = [
         '105.934932, -1.895816', '107.670962, -2.863657',
         '105.506129, -1.900851', '106.309493, -2.484852',
         '106.256551, -2.752143', '108.024462, -2.905251',
         '106.117265, -2.125429'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     cal.close()
     return dt
예제 #13
0
 def home(self, uridt='null'):
     provinsi = 'riau'
     provloc = '101.683500, 0.336998'
     mapzoom = '9'
     kabkotcord = [
         '101.256639, -0.397666', '102.27297, -0.665561',
         '103.120766, -0.062549', '102.070138, 0.139318',
         '101.660183, 0.759335', '101.113333, 0.496102',
         '100.471105,0.92068', '101.56657, 1.173689',
         '102.717474, 0.942233', '102.717474, 0.942233',
         '101.455592, 0.496625', '101.392573, 1.685077'
     ]
     listkabkot = [
         '%1401%', '%1402%', '%1403%', '%1404%', '%1405%', '%1406%',
         '%1407%', '%1408%', '%1409%', '%1410%', '%1471%', '%1473%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #14
0
 def home(self, uridt='null'):
     provinsi = 'kepri'
     provloc = '104.113254, 0.900753'
     mapzoom = '9'
     kabkotcord = [
         '103.464510, 0.744183', '104.428549, 1.139037',
         '108.249989, 4.000064', '104.605642, -0.188103',
         '105.655797, 3.104777', '104.028359, 1.047241',
         '104.466572, 0.917920'
     ]
     listkabkot = [
         '%2101%', '%2102%', '%2103%', '%2104%', '%2105%', '%2171%',
         '%2172%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #15
0
 def home(self, uridt='null'):
     provinsi = 'yogya'
     provloc = '110.384671, -7.828832'
     mapzoom = '9'
     kabkotcord = [
         '110.170217, -7.771697', '110.349696, -7.897486',
         '110.611403, -7.987651', '110.381977, -7.693778',
         '110.374157, -7.802229'
     ]
     listkabkot = ['%3401%', '%3402%', '%3403%', '%3404%', '%3471%']
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #16
0
 def home(self, uridt='null'):
     provinsi = 'banten'
     listkabkot = [
         '%3601%', '%3602%', '%3603%', '%3604%', '%3671%', '%3672%',
         '%3673%', '%3674%'
     ]
     provloc = '106.052411, -6.399373'
     mapzoom = '9'
     kabkotcord = [
         '106.114254, -6.326809', '106.234365, -6.360833',
         '106.485909, -6.156607', '106.108131, -6.191190',
         '106.648314, -6.204330', '106.008973, -6.003815',
         '111.527879, -7.630911', '106.163139, -6.109970'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #17
0
파일: gorontalo.py 프로젝트: gaspan/peuyeum
	def home(self,uridt='null'):
		provinsi = 'gorontalo'
		provloc = '122.410923, 0.723049'
		mapzoom = '9'
		kabkotcord = [
		'122.26538870000002, 0.7013419',
		'122.80844960000002, 0.5692733',
		'121.71954589999996,0.7055277999999999',
		'123.34861469999998, 0.5657884999999999',
		'122.49200880000001, 0.9252647',
		'121.993323, 0.843888'
		]
		listkabkot = [
		'%7501%','%7502%','%7503%','%7504%','%7505%'
		'%7571%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #18
0
파일: provinsi.py 프로젝트: peuyeum/peuyeum
 def jateng(self, uridt='null'):
     listkabkot = [
         '%PROV3301%', '%PROV3302%', '%PROV3303%', '%PROV3304%',
         '%PROV3305%', '%PROV3306%', '%PROV3307%', '%PROV3308%',
         '%PROV3309%', '%PROV3310%', '%PROV3311%', '%PROV3312%',
         '%PROV3313%', '%PROV3314%', '%PROV3315%', '%PROV3316%',
         '%PROV3317%', '%PROV3318%', '%PROV3319%', '%PROV3320%',
         '%PROV3321%', '%PROV3322%', '%PROV3323%', '%PROV3324%',
         '%PROV3325%', '%PROV3326%', '%PROV3327%', '%PROV3328%',
         '%PROV3329%', '%PROV3371%', '%PROV3372%', '%PROV3373%',
         '%PROV3374%', '%PROV3375%', '%PROV3376%'
     ]
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%jateng%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%jateng%home' + '%' +
                                            str(int(uridt) + 1))
     cal.close()
     return dt
예제 #19
0
파일: banten.py 프로젝트: peuyeum/peuyeum
 def home(self, uridt='null'):
     provinsi = 'banten'
     listkabkot = [
         '%3601%', '%3602%', '%3603%', '%3604%', '%3671%', '%3672%',
         '%3673%', '%3674%'
     ]
     provloc = '106.143949, -6.460788'
     mapzoom = '9'
     kabkotcord = [
         '105.790328, -6.572485', '106.208272, -6.655552',
         '106.650031, -6.181121', '106.167182, -6.109267',
         '106.485223, -6.173674', '106.011024, -6.004235',
         '106.134223, -6.223955', '106.712159, -6.305395'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #20
0
파일: bali.py 프로젝트: D4TI3B-AI/Tugas_ots
	def home(self,uridt='null'):
		provinsi = 'bali'
		listkabkot = [
		'%5101%','%5102%','%5103%','%5104%','%5105%','%5106%','%5107%','%5108%',
		'%5171%'
		]
		provloc = '115.184055, -8.425745'
		mapzoom = '9'
		kabkotcord = [
		'114.701385, -8.295495',
		'115.055052, -8.435786',
		'115.178503, -8.534605',
		'115.323008, -8.230679',
		'115.542554, -8.719174',
		'115.354594, -8.454195',
		'115.570658, -8.382352',
		'114.958329, -8.227131',
		'115.211556, -8.669962'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		cal.close()
		return dt
예제 #21
0
	def home(self,uridt='null'):
		provinsi = 'jambi'
		provloc = '103.616048, -1.610092'
		mapzoom = '9'
		kabkotcord = [
		'101.592764, -2.157274',
		'102.680876, -2.425497',
		'102.711088, -2.420009',
		'102.990716, -1.638899',
		'103.757669, -1.531895',
		'104.106413, -1.107999',
		'103.049654, -1.1474971',
		'102.355934, -1.282591',
		'101.846269, -1.672173',
		'103.604032, -1.614553',
		'101.411225, -2.066537'
		]
		listkabkot = [
		'%1501%','%1502%','%1503%','%1504%','%1505%','%1506%','%1507%','%1508%','%1509%'
		'%1571%','%1572%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #22
0
파일: kaltara.py 프로젝트: yandarizky/kuis
 def home(self, uridt='null'):
     provinsi = 'kaltara'
     provloc = '116.584812, 3.491935'
     mapzoom = '9'
     kabkotcord = [
         '115.679529, 2.526932', '116.975930, 2.871611',
         '117.061310, 3.516243', '116.727059, 4.036004',
         '117.597311, 3.367060'
     ]
     listkabkot = ['%6501%', '%6502%', '%6503%', '%6504%', '%6571%']
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #23
0
 def home(self, uridt='null'):
     provinsi = 'jabar'
     provloc = '107.543382, -6.919011'
     mapzoom = '9'
     kabkotcord = [
         '106.597066, -5.796648',
         '106.932931, -6.931305',
         '107.146612, -6.815292',
         '107.628391, -6.907193',
         '107.782221, -7.358223',
         '108.223480, -7.370463',
         '108.333012, -7.327543',
         '108.594609, -7.045500',
         '108.578243, -6.736305',
         '108.362311, -6.800160',
         '107.951509, -6.807383',
         '108.146650, -6.436696',
         '107.726287, -6.439268',
         '107.504658, -6.568864',
         '107.477713, -6.275045',
         '106.975437, -6.270206',
         '107.392381, -6.861554',
         '108.515785, -7.606407',
         '106.904683, -6.593036',
         '106.956675, -6.858946',
         '107.570520, -7.116538',
         '108.715400, -6.860310',
         '106.975437, -6.270206',
         '106.852816, -6.392455',
         '107.547988, -6.888430',
         '108.221763, -7.341521',  #rf
         '108.534659, -7.371715',
         '107.268667, -6.759950'  #88
     ]
     listkabkot = [
         '%3201%', '%3202%', '%3203%', '%3204%', '%3205%', '%3206%',
         '%3207%', '%3208%', '%3209%', '%3210%', '%3211%', '%3212%',
         '%3213%', '%3214%', '%3215%', '%3216%', '%3217%', '%3218%'
         '%3271%', '%3272%', '%3273%', '%3274%', '%3275%', '%3276%',
         '%3277%', '%3278%', '%3279%', '%3288%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #24
0
	def home(self,uridt='null'):
		provinsi = 'sumut'
		provloc = '99.188581, 2.312969'
		mapzoom = '9'
		kabkotcord = [
		'97.604550, 1.014795',
		'99.495703, 0.768582',
		'99.16264, 1.509810',
		'98.624952, 1.951664',
		'98.927957, 1.994440',
		'99.279916, 2.279898',
		'100.088714, 2.247921',
		'99.593711, 2.805695',
		'98.823982, 3.047948',
		'98.187366, 2.858667',
		'98.142541, 3.205378',
		'98.659970, 3.422239',
		'98.124419, 3.683218',
		'97.729156, 0.841165',
		'98.565878, 2.212137',
		'98.265733, 2.467432',
		'98.612349, 2.495827',
		'98.961789, 3.399369',
		'99.433258, 3.211224',
		'99.623017, 1.678944',
		'99.761596, 1.120830',
		'99.928608, 1.846106',
		'99.643374, 2.411790',
		'97.355786, 1.317017',
		'97.473903, 1.042729',
		'98.781743, 1.739830',
		'99.796590, 2.959028',
		'99.049414, 3.001106',
		'99.147946, 3.322582',
		'98.636521, 3.553873',
		'98.485410, 3.589259',
		'99.284581, 1.365369',
		'97.524199, 1.321364',
		'98.677986, 2.778086'
		]
		listkabkot = [
		'%1201%','%1202%','%1203%','%1204%','%1205%','%1206%','%1207%','%1208%','%1209%','%1210%',
		'%1211%','%1212%','%1213%','%1214%','%1215%','%1216%','%1217%','%1218%','%1219%','%1220%',
		'%1221%','%1222%','%1223%','%1224%','%1225%',
		'%1271%','%1272%','%1273%','%1274%','%1275%','%1276%','%1277%','%1278%','%1288%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #25
0
 def home(self, uridt='null'):
     provinsi = 'aceh'
     listkabkot = [
         '%1101%', '%1102%', '%1103%', '%1104%', '%1105%', '%1106%',
         '%1107%', '%1108%', '%1109%', '%1110%', '%1111%', '%1112%',
         '%1113%', '%1114%', '%1115%', '%1116%', '%1117%', '%1118%',
         '%1171%', '%1172%', '%1173%', '%1174%', '%1175%'
     ]
     provloc = '96.678095, 4.311709'
     mapzoom = '9'
     kabkotcord = [
         '96.083322, 2.583622',
         '97.922151, 2.384000',
         '97.402781, 3.190697',
         '97.591161, 3.296859',
         '97.617067, 4.740899',
         '96.854644, 4.495374',
         '96.099236, 4.296590',
         '95.576441, 5.309828',
         '96.022189, 5.018921',
         '96.583919, 5.050867',
         '97.014686, 4.999058',
         '96.960594, 3.850525',
         '97.489652, 3.961822',
         '97.932741, 4.182834',
         '96.551047, 4.217548',
         '95.723980, 4.838457',
         '97.005428, 4.702244',
         '96.243269, 5.054155',
         '95.339173, 5.560588',  #71
         '95.3422588, 5.867014',
         '97.976595, 4.513544',
         '97.122396, 5.175647',
         '97.889437, 2.724339'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     cal.close()
     return dt
예제 #26
0
파일: jatim.py 프로젝트: peuyeum/peuyeum
 def home(self, uridt='null'):
     kabkotcord = [
         '111.167264, -8.129277', '111.499877, -7.944007',
         '111.627133, -8.151020', '111.917984, -8.094515',
         '112.241974, -8.130902', '112.019961, -7.848198',
         '112.676300, -8.116527', '113.135328, -8.123947',
         '113.653415, -8.228840', '114.214591, -8.323004',
         '113.951084, -7.927509', '114.021227, -7.737271',
         '113.319942, -7.855937', '112.822945, -7.722645',
         '112.712702, -7.450121', '112.485135, -7.538308',
         '112.266772, -7.564860', '111.933524, -7.596743',
         '111.643859, -7.626769', '111.356993, -7.671703',
         '111.356365, -7.441320', '111.809742, -7.260447',
         '111.906969, -6.951138', '112.320664, -7.122953',
         '112.568628, -7.135579', '112.933259, -7.046912',
         '113.253593, -7.060773', '113.498031, -7.059933',
         '113.867135, -7.001525', '112.020304, -7.844117',
         '112.166113, -8.094994', '112.632467, -7.970139',
         '113.203695, -7.776052', '112.903893, -7.650159',
         '112.438201, -7.470042', '111.528737, -7.629550',
         '112.721487, -7.275234', '112.529364, -7.832329'
     ]
     listkabkot = [
         '%3501%', '%3502%', '%3503%', '%3504%', '%3505%', '%3506%',
         '%3507%', '%3508%', '%3509%', '%3510%', '%3511%', '%3512%',
         '%3513%', '%3514%', '%3515%', '%3516%', '%3517%', '%3518%',
         '%3519%', '%3520%', '%3521%', '%3522%', '%3523%', '%3524%',
         '%3525%', '%3526%', '%3527%', '%3528%', '%3529%', '%3571%',
         '%3572%', '%3573%', '%3574%', '%3575%', '%3576%', '%3577%',
         '%3578%', '%3579%'
     ]
     provinsi = 'jatim'
     provloc = '112.351224, -7.698205'
     mapzoom = '9'
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #27
0
파일: sumbar.py 프로젝트: peuyeum/peuyeum
 def home(self, uridt='null'):
     provinsi = 'sumbar'
     provloc = '100.562894, -0.706683'
     mapzoom = '9'
     kabkotcord = [
         '99.111353, -1.632146',
         '100.727108, -1.470586',
         '100.846072, -1.011281',  #03
         '101.023388, -0.592427',
         '100.549821, -0.425873',
         '100.288159, -0.627809',  #06
         '100.101498, -0.231207',
         '100.544888,0.049669',
         '100.060971,0.550926',
         '101.182893,-1.393285',
         '101.585028,-1.036393',
         '99.58297,0.244264',
         '100.39263,-0.932656',
         '100.651001,-0.782816',
         '100.742198,-0.645677',
         '100.401388,-0.466746',
         '100.373096,-0.300014',
         '100.625714,-0.219539',
         '100.138625,-0.595904',
         '100.522962,-0.574756'
     ]
     listkabkot = [
         '%1301%', '%1302%', '%1303%', '%1304%', '%1305%', '%1306%',
         '%1307%', '%1308%', '%1309%', '%1310%', '%1311%', '%1312%',
         '%1371%', '%1372%', '%1373%', '%1374%', '%1375%', '%1376%',
         '%1377%', '%1388%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #28
0
	def home(self,uridt='null'):
		provinsi = 'sulsel'
		provloc = '119.9740534, -3.6687994'
		mapzoom = '9'
		kabkotcord = [
		'120.481566, -6.040677',
		'120.214471, -5.415704',
		'120.026454, -5.513190',
		'119.970836, -5.461244',
		'119.496695, -5.408397',
		'119.759638, -5.314980',
		'120.145422, -5.197022',
		'119.600310, -5.004761',
		'119.583535, -4.742654',
		'119.663691, -4.473399',
		'120.098866, -4.674330',
		'119.874706, -4.32333',
		'120.222073,-3.992848',
		'119.919562, -3.857376',
		'119.599392, -3.626818',
		'119.819438, -3.486817',
		'120.154072, -3.36392',
		'119.712573, -3.066465',
		'120.001852, -2.22533',
		'121.073119, -2.52923',
		'119.796522, -2.833211',
		'119.46058, -5.152792',
		'119.6290617, -4.0096221',
		# '120.1985141, -3.0016343'
		]
		listkabkot = [
		'%7301%','%7302%','%7303%','%7304%','%7305%','%7306%','%7307%','%7308%','%7309%','%7310%',
		'%7311%','%7312%','%7313%','%7314%','%7315%','%7316%','%7317%','%7318%',
		'%7322%','%7325%','%7326%',
		'%7371%','%7372%','%7373%'
		]
		batik.provinsi(provinsi,listkabkot,provloc,mapzoom,kabkotcord)
		cal = calendar.Calendar()
		dt = {}
		for kabkot in listkabkot:
			dt[kabkot]=cal.getYearCountKabKot(str(int(kabkot[1:3])),str(int(kabkot[3:5])),uridt)
		cal.close()
		dt['%WMTS%']=getWMTS()
		dt['%PERIODE%']=uridt
		dt['%LAMAN INDONESIA%']=urlEncode16(keyuri+'%peta%home'+'%'+uridt)
		dt['%TAHUN SEBELUMNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)-1))
		dt['%TAHUN SETELAHNYA%']=urlEncode16(keyuri+'%'+provinsi+'%home'+'%'+str(int(uridt)+1))
		return dt
예제 #29
0
파일: papua.py 프로젝트: gaspan/peuyeum
 def home(self, uridt='null'):
     provinsi = 'papua'
     provloc = '135.220428, -5.231223'
     mapzoom = '7'
     kabkotcord = [
         '139.041312, -7.783833', '138.799512, -4.000448',
         '139.854727, -2.987923', '135.501625, -3.372225',
         '136.170901, -1.746936', '135.980085, -1.038102',
         '136.362469, -3.787644', '137.159507, -4.078728',
         '136.4922, -4.722688'
         '140.3481835, -5.7400018', '139.6911374, -6.7606468',
         '138.3988186, -5.0573958', '139.5279996, -4.4939717',
         '140.5135589, -4.5589872', '138.4787258, -3.481132',
         '139.2030851, -2.4678144', '140.7624493, -3.3449536',
         '136.670534, -2.8435717', '135.6385125, -0.7295099',
         '137.7637565, -2.5331255', '138.2393528, -4.4069496',
         '138.3190276, -3.971033', '138.3190276, -2.3745692',
         '139.4466005, -3.7852847', '137.6061625, -3.8649098',
         '135.6763443, -4.0454139', '136.569279, -3.392247',
         '136.4393054,-4.0974893', '140.6689995, -2.5916025'
     ]
     listkabkot = [
         '%9401%', '%9402%', '%9403%', '%9404%', '%9408%', '%9409%',
         '%9410%', '%9411%', '%9412%', '%9413%', '%9414%', '%9415%',
         '%9416%', '%9417%', '%9418%', '%9419%', '%9420%', '%9426%',
         '%9427%', '%9428%', '%9429%', '%9430%', '%9431%', '%9432%',
         '%9434%', '%9435%', '%9436%'
         '%9471%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt
예제 #30
0
파일: papua.py 프로젝트: yandarizky/kuis
 def home(self, uridt='null'):
     provinsi = 'papua'
     provloc = '135.220428, -5.231223'
     mapzoom = '7'
     kabkotcord = [
         '140.480464, -8.503258', '139.415294, -4.347261',
         '140.644632, -2.591545', '135.515479, -3.463997',
         '136.104039, -1.702560', '135.929511, -0.878215',
         '136.301946, -3.623314', '137.159496, -4.078749',
         '136.544838, -4.464788', '140.211462, -5.436491',
         '139.101504, -6.355493', '138.525013, -5.318847',
         '139.350852, -4.175618', '140.475505, -4.149516',
         '138.397951, -3.388663', '140.7624493, -3.3449536',
         '136.670534, -2.8435717', '135.6385125, -0.7295099',
         '137.7637565, -2.5331255', '138.2393528, -4.4069496',
         '138.3190276, -3.971033', '138.3190276, -2.3745692',
         '139.4466005, -3.7852847', '137.6061625, -3.8649098',
         '135.6763443, -4.0454139', '136.569279, -3.392247',
         '136.4393054,-4.0974893', '140.6689995, -2.5916025'
     ]
     listkabkot = [
         '%9401%', '%9402%', '%9403%', '%9404%', '%9408%', '%9409%',
         '%9410%', '%9411%', '%9412%', '%9413%', '%9414%', '%9415%',
         '%9416%', '%9417%', '%9418%', '%9419%', '%9420%', '%9426%',
         '%9427%', '%9428%', '%9429%', '%9430%', '%9431%', '%9432%',
         '%9434%', '%9435%', '%9436%'
         '%9471%'
     ]
     batik.provinsi(provinsi, listkabkot, provloc, mapzoom, kabkotcord)
     cal = calendar.Calendar()
     dt = {}
     for kabkot in listkabkot:
         dt[kabkot] = cal.getYearCountKabKot(str(int(kabkot[1:3])),
                                             str(int(kabkot[3:5])), uridt)
     cal.close()
     dt['%WMTS%'] = getWMTS()
     dt['%PERIODE%'] = uridt
     dt['%LAMAN INDONESIA%'] = urlEncode16(keyuri + '%peta%home' + '%' +
                                           uridt)
     dt['%TAHUN SEBELUMNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) - 1))
     dt['%TAHUN SETELAHNYA%'] = urlEncode16(keyuri + '%' + provinsi +
                                            '%home' + '%' +
                                            str(int(uridt) + 1))
     return dt