View generaluze.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
import math | |
class Generalize(object): | |
def __init__(self,workspace,in_feature,out_feature): | |
arcpy.env.workspace = workspace | |
self.workspace = workspace | |
self.in_feature = in_feature |
View unsplitline.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
from collections import Counter | |
import os | |
import traceback | |
import pandas as pd | |
class UnsplitLine(): | |
column_unsplit_length = "UNSPLIT_LENGTH" #作成するカラム名 |
View unsplitline.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
from collections import Counter | |
import os | |
import traceback | |
import pandas as pd | |
class UnsplitLine(): | |
column_unsplit_length = "UNSPLIT_LENGTH" #作成するカラム名 |
View unsplitline.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
from collections import Counter | |
import os | |
import traceback | |
import pandas as pd | |
class UnsplitLine(): | |
column_unsplit_length = "UNSPLIT_LENGTH" #作成するカラム名 |
View 0_reuse_code.js
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View get_datacollection_info.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
import pandas as pd | |
import numpy as np | |
fields = "" | |
dataSource = "" | |
subfields = "" | |
def output_csv(info,f,flg,subTypeCd): |
View featureclass_info.py
This file contains 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
# -*- coding: utf-8 -*- | |
import arcpy | |
from os.path import join | |
import pandas as pd | |
import numpy as np | |
def getInfo(dataSource,fList): | |
#サブタイプを取得 | |
subtypefields = arcpy.da.ListSubtypes(dataSource) |
View add_geotag.py
This file contains 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
# -*- coding: utf-8 -*- | |
import pyexiv2 | |
from PIL import Image | |
def to_deg(value, loc): | |
if value < 0: | |
loc_value = loc[0] | |
elif value > 0: | |
loc_value = loc[1] | |
else: |