Skip to content

Instantly share code, notes, and snippets.

View ivn951's full-sized avatar
:atom:

Ivano Giuliano ivn951

:atom:
View GitHub Profile
@ivn951
ivn951 / QGIS3_Install_MacOS.txt
Last active March 3, 2018 16:42
Installazione di QGIS 3 beta su piattaforme macOS tramite Macports
In questo gist descrivero' come installare la versione 2.99.0-Master su MacBook Pro - macOS High Sierra v. 10.13.2
L'installazione e' stata eseguita totalmente da terminale Mac, facendo largo uso di <sudo> (switch user do) al fine di accedere e gestire con ruolo di amministratore.
Ho riscontrato alcuni problemi durante le varie fasi, <Error: Failed to checksum: ....> per alcune dipendenze che mostrero' nel seguito.
E' importante ribadire che il comando <sudo> e'temporizzato, al di fuori del timer stabilito, viene richiesta nuovamente la pwd di amministratore del sistema.
Verificare se e' installato <Xcode> altrimenti procedere con l'installazione.
E' una parte molto consistente di programma, necessita tempo di download, memoria e pazienza. Qui mi riferisco alla Version 9.2 (9C40b) - Purtroppo non è più in bundle da un po' di tempo con il sistema operativo, ma è possibile scaricarlo gratuitamente :
a) dal Mac App Store:https://itunes.apple.com/us/app/xcode/id497799835?mt=12
@ivn951
ivn951 / PointsAlongLine.py
Last active August 21, 2018 08:48
QGIS: Create new equidistant points along a line based on attribute data
# -------------------------------
# Original Author : ndawson
# -------------------------------
from qgis.core import QgsFeature, QgsVectorFileWriter, QgsGeometry
def create_points(feat,writer):
geometry = feat.constGeometry()
if not geometry:
return
@ivn951
ivn951 / PointAlongLine.py
Last active September 29, 2021 08:24
QGIS3: Create new equidistant points along a line based on attribute data
#Script adapted#
#QGIS Python API 3.0#
from qgis.core import *
def create_points(feat,writer):
geometry = feat.geometry()
if not geometry:
return
length = geometry.length()
@ivn951
ivn951 / xyz_vs_tms.md
Created November 17, 2018 16:18 — forked from tmcw/xyz_vs_tms.md
The difference between XYZ and TMS tiles and how to convert between them

The difference between XYZ and TMS tiles and how to convert between them

Lots of tile-based maps use either the XYZ or TMS scheme. These are the maps that have tiles ending in /0/0/0.png or something. Sometimes if it's a script, it'll look like &z=0&y=0&x=0 instead. Anyway, these are usually maps in Spherical Mercator.

Good examples are OpenStreetMap, Google Maps, MapBox, MapQuest, etc. Lots of maps.

Most of those are in XYZ. The best documentation for that is slippy map tilenames on the OSM Wiki, and Klokan's Tiles a la Google.

@ivn951
ivn951 / rst_to_md.sh
Created December 3, 2018 04:16 — forked from zaiste/rst_to_md.sh
Convert RST to Markdown using Pandoc
FILES=*.rst
for f in $FILES
do
filename="${f%.*}"
echo "Converting $f to $filename.md"
`pandoc $f -f rst -t markdown -o $filename.md`
done
@ivn951
ivn951 / gist:ced5aad2f001b55e0bd6a7d5d4997937
Created March 16, 2020 20:44 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@ivn951
ivn951 / GIF-Screencast-OSX.md
Created April 23, 2020 07:12 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ivn951
ivn951 / Spatialite_Brew_Installation
Created March 22, 2021 01:13
Homebrew Installation Spatialite on macOS
/Users/ivano$brew install spatialite-tools
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
as-tree libpipeline qt-mysql
bas55 libunwind qt-percona-server
crispy-doom lttng-ust qt-postgresql
datalad name-that-hash qt-unixodbc
delve numactl rdkit
@ivn951
ivn951 / WriteFile_AppendString.py
Last active April 27, 2021 01:51
Write Files (for Latex) with Iteration & Append strings in list as separate new lines
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 26 19:35:55 2021
@author: ivano
"""
# importing modules
import os

Conversione da Tabella Attuali Punti Fiduciali a CSV

Queste tabelle hanno lo schema descritto qui https://www.agenziaentrate.gov.it/portale/web/guest/schede/fabbricatiterreni/punti-fiduciali/tabella-attuale-dei-punti-fiduciali-professionisti

Ecco alcune righe di esempio

A045     1      3 72          SPIGOLO S E                                                               89757.263     3862.131 52    1      2 110790 198938312                                                                                             
A045     1      6 43          SPIGOLO NORD EST                                                          89392.627     3402.251 52    1      6 240909 2009131461      QUOTA A TERRA                                                           4      251.726
A045     1      7 101         SPIGOLO N O                                                               89027.609     3393.507 52    1      7 231210 2010168788      QUOTA A TERRA SUL PAVIMENTO