Skip to content

Instantly share code, notes, and snippets.

View kauevestena's full-sized avatar
💭
working on my PhD =D

Kauê de Moraes Vestena kauevestena

💭
working on my PhD =D
View GitHub Profile
@kauevestena
kauevestena / curitiba_ortophoto_josm.xml
Last active March 4, 2024 23:37
curitiba_ortophoto_josm
<entry eli-best="true">
<name>Curitiba Orthophoto 2019</name>
<name lang='pt_BR'>Curitiba Ortofoto 2019</name>
<id>cwb_ortho_2016</id>
<category>photo</category>
<date>2019</date>
<country-code>BR</country-code>
<type>tms</type>
<url>https://geocuritiba.ippuc.org.br/server/rest/services/Hosted/Ortofotos2019/MapServer/tile/{zoom}/{y}/{x}</url>
<max-zoom>22</max-zoom>
@kauevestena
kauevestena / simple_model.model3
Created August 8, 2023 21:25
QGIS Model Builder - Python Conversion not generating unique dict keys, version 3.32
<!DOCTYPE model>
<Option type="Map">
<Option type="Map" name="children">
<Option type="Map" name="native:creategrid_1">
<Option type="bool" value="true" name="active"/>
<Option name="alg_config"/>
<Option type="QString" value="native:creategrid" name="alg_id"/>
<Option type="QString" value="" name="color"/>
<Option type="Map" name="comment">
<Option type="QString" value="" name="color"/>
node:
{
# find nodes with same coordinates
match:near(0.15)
}
@kauevestena
kauevestena / buildings_import_osm_fortaleza.ipynb
Last active April 23, 2023 03:24
buildings_import_osm_fortaleza.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kauevestena
kauevestena / GDAL_C_COORD_TRANSF.h
Last active December 2, 2019 16:30
intended to translate from one CRS to another in C language
// #include <stdio.h>
#include <C:\OSGeo4W64\include\ogr_srs_api.h>
/*
2019 Kaue de Moraes Vestena
Intended for integration in C code
*/
@kauevestena
kauevestena / multihtnk2rnx.bash
Created November 23, 2018 18:06
script para converter múltiplos hatanaka em RINEX
#!/bin/bash
####
#### script para converter múltiplos hatanaka em RINEX
####
#### usage:
#### $ bash multihtnk2rnx.bash <foldername>
#### requires CRX2RNX from http://terras.gsi.go.jp/ja/crx2rnx.html
####
@kauevestena
kauevestena / nmeaRead.cpp
Created July 2, 2016 06:42
programa para a separação de mensagens NMEA
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <windows.h>
#include <sstream>
#include <stdio.h>
#include<time.h>
#include<ctime>
@kauevestena
kauevestena / smmtleverarm.cpp
Last active February 17, 2016 15:50
programa, com a implementação das classes e funções para cálculo da leverArm e do boresight
#include <iostream>
#include <armadillo>
#include <fstream>
#include <string>
#include <vector>
#include <math.h>
#include <iomanip>
using namespace std;
@kauevestena
kauevestena / kplanes.hpp
Created January 12, 2016 01:02
plane estimation
vec4 plane3points(vec3 u,vec3 v,vec3 w)
{
//the function returns a 4-vector with the plane equation coefficients
//assuming the form ax + by + cz + d = 0
vec4 res;
vec3 p1,p2,n;
vec d;
p1 = normalise(v - u);
p2 = normalise(w - u);
n = normalise(cross(p1,p2));
@kauevestena
kauevestena / fileManip.h
Created December 17, 2015 22:54
to do all file manipulations
vector<string> readFile(string filename)
{
ifstream in(filename);
vector<string> res;
string line;
while (std::getline(infile,line))
{
res.push_back(line);
}