Skip to content

Instantly share code, notes, and snippets.

View All4Gis's full-sized avatar
👨‍🚀
Hic sunt dracones

Fran Raga All4Gis

👨‍🚀
Hic sunt dracones
View GitHub Profile
#!/usr/bin/env python3
# encoding: utf-8
# Camaras de trafico de la DGT (España) directamente desde datos Datex
import xmltodict
import requests
import base64
import json
from qgis.core import QgsProject, QgsFeature
@All4Gis
All4Gis / vid2hdf5.m
Created February 4, 2020 10:39 — forked from talmo/vid2hdf5.m
An example of converting video (MP4/AVI/MOV/etc) to HDF5
% Clean start!
clear all, clc
%% Parameters
% Path to input file
videoPath = '..\..\leap\data\examples\072212_163153.clip.mp4';
% Path to output file
% savePath = '..\..\leap\data\examples\072212_163153.clip.h5';
savePath = 'C:\tmp\072212_163153.clip.h5';
@All4Gis
All4Gis / geoserver-install.sh
Last active March 16, 2020 20:08 — forked from iacovlev-pavel/geoserver-install.sh
Install GeoServer on Ubuntu 18.04
#
apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4
# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver
@All4Gis
All4Gis / README.md
Last active May 20, 2020 12:25
Mars MOLA Color
// See this for important info :
http://docs.geoserver.org/stable/en/user/_sources/rest/examples/curl.txt
// Get all workspaces
curl -v -u admin:geoserver -GET http://localhost:8080/geoserver/rest/workspaces.xml
// Create a new WORKSPACE
curl -u admin:geoserver -v -XPOST -H 'Content-type:text/xml'
@All4Gis
All4Gis / QgsMultiplexorGs
Last active October 18, 2024 16:25
Python code for muxing klv and video (MISB) #STANAG #MISB #UAV
# -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import os
import gi
# Author : Fran Raga , 2021
# proof of concept to ingest KLV telemetry into a video. Multiplexer concept to create a MISB Video.
# Related with : https://github.com/All4Gis/QGISFMV/blob/master/code/manager/QgsMultiplexor.py
# Get Video width/Height
@All4Gis
All4Gis / ffmpeg-compress-mp4
Created March 24, 2021 17:49 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4