This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    | sepal.length | sepal.width | petal.length | petal.width | variety | |
|---|---|---|---|---|---|
| 5.1 | 3.5 | 1.4 | .2 | Setosa | |
| 4.9 | 3 | 1.4 | .2 | Setosa | |
| 4.7 | 3.2 | 1.3 | .2 | Setosa | |
| 4.6 | 3.1 | 1.5 | .2 | Setosa | |
| 5 | 3.6 | 1.4 | .2 | Setosa | |
| 5.4 | 3.9 | 1.7 | .4 | Setosa | |
| 4.6 | 3.4 | 1.4 | .3 | Setosa | |
| 5 | 3.4 | 1.5 | .2 | Setosa | |
| 4.4 | 2.9 | 1.4 | .2 | Setosa | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using ImageFileAnalysis.DTO; | |
| namespace ImageFileAnalysis.Modules.DbModuel | |
| { | |
| class DbConnectHandler | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ## file metadata module | |
| import os.path | |
| import shutil | |
| from os import listdir | |
| from os.path import isfile, join | |
| BYNARY_FILE_PATH = 'E:\\map_tile_checker\\train_data' | |
| TEST_FILE_PATH = 'E:\\map_tile_checker\\test_data' | |
| LABEL_ARRAY = ['dispersion', 'line', 'square', 'unspecified_shapes'] | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| import base64 | |
| def main(): | |
| startSvgTag = """<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" | |
| "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
| <svg version="1.1" | |
| xmlns="http://www.w3.org/2000/svg" | |
| xmlns:xlink="http://www.w3.org/1999/xlink" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import cv2 | |
| def transBg(self, img): | |
| tmp = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) | |
| _,alpha = cv2.threshold(tmp,0,255,cv2.THRESH_BINARY) | |
| b, g, r = cv2.split(img) | |
| rgba = [b,g,r, alpha] | |
| dst = cv2.merge(rgba,4) | |
| return dst | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private (double, double) convertWsg84Coordinate(double x, double y, double z) | |
| { | |
| double lat = Math.Asin(z / Math.Sqrt(x * x + y * y + z * z)) * (180 / Math.PI); | |
| double lot = -Math.Atan2(y, x) * (180 / Math.PI); | |
| return (lat, lot); | |
| } | |
| //wsg84 coordinate | |
| public (string, string) calculateTileIdLatLot(double lat, double lot, int level) | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | using System.IO; | |
| // list init for file info dto | |
| List<TargetFileInfoDTO> fileInfoList = new List<TargetFileInfoDTO>(); | |
| // root file path (dds, jpg file root path) | |
| string ROOT_FILE_PATH = @"FILE_PATH"; | |
| // search option dict | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ## url 접속을 위한 실습 | |
| import urllib | |
| import json | |
| import folium | |
| geo_url_context = "http://api.vworld.kr/req/address?service=address&request=getcoord&version=2.0" | |
| ## url 주기 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public void drawTestLine(XDOInfo xdoInfo){ | |
| float radiusRatio = 10000 / (float)6378137; | |
| // convert : -y , z, -x | |
| double min_x = (double)xdoInfo.boundMinY * -1 * radiusRatio; | |
| double min_y = (double)xdoInfo.boundMinZ * radiusRatio; | |
| double min_z = (double)xdoInfo.boundMinX * -1 * radiusRatio; | |
| double max_x = (double)xdoInfo.boundMaxY * -1 * radiusRatio; | |
| double max_y = (double)xdoInfo.boundMaxZ * radiusRatio; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import matplotlib.pyplot as plt | |
| import matplotlib as mpl | |
| import matplotlib.font_manager as fm | |
| %matplotlib inline | |
| %config InlineBackend.figure_format = 'retina' | |
| !apt -qq -y install fonts-nanum | |
| fontpath = '/usr/share/fonts/truetype/nanum/NanumBarunGothic.ttf' |