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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import datetime | |
import pyexiv2 | |
import re | |
from dateutil.tz import tzlocal | |
from PIL import Image |
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
from owslib.fes import * | |
from owslib.etree import etree | |
from owslib.wfs import WebFeatureService | |
wfs11 = WebFeatureService(url='http://example.com:8080/geoserver/wfs/', version='1.1.0') | |
f = open('download.sh', 'wb') | |
f.write('#!/bin/bash'+'\n') | |
f.write(''+'\n') | |
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 -*- | |
from __future__ import unicode_literals | |
import os | |
URL = 'http://example.com/ngw' | |
AUTH = ('administrator', 'admin') | |
GRPNAME = "Загрузка из python" | |
import requests | |
from json import dumps |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# anchor extraction from html document | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import urlparse | |
import re | |
import csv | |
import time |
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 -*- | |
#создаёт в группе ресурсов wfs-сервис со всеми слоями | |
from __future__ import unicode_literals | |
import os | |
import json | |
#для создания ключей транслитом | |
from transliterate import translit, get_available_language_codes |
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
#!/usr/bin/python | |
import os | |
import datetime | |
import time | |
def get_args(): | |
import argparse | |
p = argparse.ArgumentParser(description='Move images to folder with his date') | |
p.add_argument('path', help='Path to folder containing JPG files') | |
return p.parse_args() |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import ijson | |
from shapely.geometry import Polygon, MultiPolygon | |
import urllib |
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 -*- | |
''' | |
Generate a geojson file with coordinates of all photos in folder. | |
Using exiftool via exiftool module | |
Usage: | |
python geo3.py "E:\PHOTO\z_bat\geo\test1" |
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
exiftool -a -G1 -s R0010031.JPG | |
[ExifTool] ExifToolVersion : 10.08 | |
[System] FileName : R0010031.JPG | |
[System] Directory : . | |
[System] FileSize : 4.0 MB | |
[System] FileModifyDate : 2016:01:11 22:16:42+03:00 | |
[System] FileAccessDate : 2016:01:11 23:27:07+03:00 | |
[System] FileCreateDate : 2016:01:11 23:27:07+03:00 | |
[System] FilePermissions : rw-rw-rw- | |
[File] FileType : JPEG |
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
POST /osc/commands/execute | |
{ | |
"name": "camera.startSession", | |
"parameters": {} | |
} | |
#shoot | |
192.168.1.1/osc/commands/execute | |
{ | |
"name": "camera.takePicture", |