This file contains hidden or 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
| version: '3' | |
| services: | |
| confluence: | |
| image: idalko/atlassian-confluence | |
| environment: | |
| - DISABLE_NOTIFICATIONS=TRUE | |
| - CONF_ARGS=-Datlassian.plugins.enable.wait=300 | |
| volumes: |
This file contains hidden or 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
| gdal_edit.py \ | |
| -gcp 10590 5452 -47.6504744 -20.7733625 \ # assign a gcp order is : pix_x pix_y lon lat | |
| -gcp 8120 2911 -47.6513638 -20.7725031 \ | |
| -gcp 13985 5237 -47.6492496 -20.7732887 \ | |
| -gcp 13352 9067 -47.6494754 -20.7745861 \ | |
| -gcp 6626 7356 -47.6518992 -20.7740086 \ | |
| orthomosaic.tif # Set GCP pixels and according geographic coordinates | |
| gdalwarp -tps -r bilinear orthomosaic.tif orthomosaic2.tif # do the transfo using the preassigned GCPs |
This file contains hidden or 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 kotlinx.coroutines.Dispatchers.Default | |
| import kotlinx.coroutines.joinAll | |
| import kotlinx.coroutines.launch | |
| import kotlinx.coroutines.runBlocking | |
| import mu.KotlinLogging | |
| import java.lang.Thread.sleep | |
| private val logger = KotlinLogging.logger {} | |
| fun main() { |
This file contains hidden or 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 io.ktor.client.* | |
| import io.ktor.client.engine.cio.* | |
| import io.ktor.client.features.* | |
| import io.ktor.client.features.auth.* | |
| import io.ktor.client.features.auth.providers.* | |
| import io.ktor.client.features.json.* | |
| import io.ktor.client.features.logging.* | |
| import io.ktor.client.request.* | |
| import io.ktor.http.* | |
| import io.ktor.http.ContentType.Application.Json |
This file contains hidden or 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
| package demo | |
| import org.geotools.feature.DefaultFeatureCollection | |
| import org.geotools.feature.simple.SimpleFeatureBuilder | |
| import org.geotools.feature.simple.SimpleFeatureTypeBuilder | |
| import org.geotools.referencing.crs.DefaultGeographicCRS.WGS84 | |
| import org.locationtech.jts.geom.Coordinate | |
| import org.locationtech.jts.geom.GeometryFactory | |
| import org.locationtech.jts.geom.Point |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo apt-key fingerprint 0EBFCD88 | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
| sudo apt-get update | |
| sudo apt-get install docker-ce docker-ce-cli containerd.io | |
| sudo docker run hello-world | |
| docker pull osgeo/gdal:ubuntu-full-3.1.2 |
This file contains hidden or 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
| Install globally a lib with cmake to make it avaiable for C++ project | |
| Easiest way to add a lib to c++ project. | |
| Download source code under `Downloads`: | |
| ```sh | |
| cd /home/geoffrey/Downloads/mylib | |
| cmake -DBUILD_SHARED_LIBS=ON . | |
| make install | |
| ``` |
This file contains hidden or 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 scipy.interpolate import interp2d | |
| def matrix_interp(): | |
| mat = numpy.array([[70.45, 0, 21.78, 0], | |
| [0, 0, 0, 0], | |
| [105.12, 0, 1000.45, 0], | |
| [0, 0, 0, 0]]) | |
| ix = numpy.where(mat != 0) |
NewerOlder