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
""" | |
/*************************************************************************** | |
Name : Erone https://it.wikipedia.org/wiki/Formula_di_Erone | |
Description : Calcolo superficie PoligonZ da file CSV (XYZ) | |
Date : 25 - marzo - 2016 | |
copyright : (C) 2016 by Salvatore Fiandaca | |
email : [email protected] | |
***************************************************************************/ |
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
PolygonZ ((967569.83999999996740371 4165799.08000000007450581 829, 954254.42000000004190952 4152822.06000000005587935 755, 957341.85999999998603016 4173449.14999999990686774 458, 967569.83999999996740371 4165799.08000000007450581 829)) | |
PolygonZ ((967569.83999999996740371 4165799.08000000007450581 829, 959935.60999999998603016 4147696.77000000001862645 669, 954254.42000000004190952 4152822.06000000005587935 755, 967569.83999999996740371 4165799.08000000007450581 829)) | |
PolygonZ ((967569.83999999996740371 4165799.08000000007450581 829, 973804.56999999994877726 4151234.29999999981373549 883, 959935.60999999998603016 4147696.77000000001862645 669, 967569.83999999996740371 4165799.08000000007450581 829)) | |
PolygonZ ((967569.83999999996740371 4165799.08000000007450581 829, 976720.17000000004190952 4165318.29999999981373549 657, 973804.56999999994877726 4151234.29999999981373549 883, 967569.83999999996740371 4165799.08000000007450581 829)) | |
PolygonZ ((967569.83999999996740371 4165799.08000000007450581 829, 981652.819999 |
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 12 columns, instead of 8 in line 4.
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
967569.83999999996740371,4165799.08000000007450581,829,954254.42000000004190952,4152822.06000000005587935,755,957341.85999999998603016,4173449.14999999990686774,458,967569.83999999996740371,4165799.08000000007450581,829 | |
967569.83999999996740371,4165799.08000000007450581,829,959935.60999999998603016,4147696.77000000001862645,669,954254.42000000004190952,4152822.06000000005587935,755,967569.83999999996740371,4165799.08000000007450581,829 | |
967569.83999999996740371,4165799.08000000007450581,829,973804.56999999994877726,4151234.29999999981373549,883,959935.60999999998603016,4147696.77000000001862645,669,967569.83999999996740371,4165799.08000000007450581,829 | |
967569.83999999996740371,4165799.08000000007450581,829,976720.17000000004190952,4165318.29999999981373549,657,973804.56999999994877726,4151234.29999999981373549,883,967569.83999999996740371,4165799.08000000007450581,829 | |
967569.83999999996740371,4165799.08000000007450581,829,981652.81999999994877726,4173070.77000000001862645,466,976720.17000000004190952,4165318.2 |
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 git import * | |
# edit | |
username = 'your_github_username' # modoficare | |
password = 'your_github_password' # modoficare | |
email = 'your_github_email' # modoficare | |
repo_dir = 'C:\Users\nome_utente\dev\QGIS_fork' # modoficare | |
branch = 'processing_test' | |
commit_message = "add polygon to lines test" # modoficare in seguito ad altri test |
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
repo = Repo.init(repo_dir) |
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
test = ''' | |
- algorithm: qgis:polygonstolines | |
name: Test (qgis:polygonstolines) | |
params: | |
INPUT: | |
name: polys.gml | |
type: vector | |
results: | |
OUTPUT: | |
name: expected/polys2lines.gml |
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
status = repo.git.status() | |
untracked_files = [] | |
for l in status.split('\n'): | |
if l.strip().startswith('python/plugins'): | |
untracked_files.append(l.strip()) | |
untracked_files.append(definition_file) | |
author = Actor('Author', email) |
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
# create a new branch | |
new_branch = repo.create_head('processing_test') | |
# create upstream remote urls | |
upstream = repo.create_remote('upstream', repo_qgis) | |
origin = repo.remotes.origin | |
upstream = repo.remotes.upstream | |
# get heads and checkout new branch |
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
import sys | |
import os | |
sys.path.append('/Users/larosa/dev/ext-libs') |
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
x | y | z | |
---|---|---|---|
348042.279610000030000 | 5087336.008500000500000 | 3494.000000000000000 | |
348122.546770000020000 | 5087336.008500000500000 | 3494.000000000000000 | |
348202.813930000000000 | 5087336.008500000500000 | 3483.000000000000000 | |
348283.081089999990000 | 5087336.008500000500000 | 3473.000000000000000 | |
348363.348249999980000 | 5087336.008500000500000 | 3460.000000000000000 | |
348403.894480000020000 | 5087336.008500000500000 | 3460.000000000000000 | |
348403.894480000020000 | 5087255.741299999900000 | 3537.000000000000000 | |
348484.161640000010000 | 5087255.741299999900000 | 3503.000000000000000 | |
348564.428799999990000 | 5087255.741299999900000 | 3484.000000000000000 |
OlderNewer