Skip to content

Instantly share code, notes, and snippets.

@theplatapi
theplatapi / gist:0a7d789afc8028a3c20b
Last active November 26, 2023 05:55
Draw a rectangle in Cesium with shift-click-drag
var viewer = new Cesium.Viewer('cesiumContainer', {
targetFrameRate: 60,
homeButton: false,
sceneModePicker: false,
navigationHelpButton: false,
baseLayerPicker: false,
clock: new Cesium.Clock({
startTime: Cesium.JulianDate.fromIso8601('1880-01-01'),
currentTime: Cesium.JulianDate.fromIso8601('1880-01-01'),
stopTime: Cesium.JulianDate.fromIso8601("2013-12-01"),
@stefanocudini
stefanocudini / getPixelFromGeoTiff.py
Created March 20, 2013 01:45
read pixel value from GeoTiff raster file by lat lon
#!/usr/bin/env python
#http://geoinformaticstutorial.blogspot.it/2012/09/reading-raster-data-with-python-and-gdal.html
#http://www.gis.usu.edu/~chrisg/python/2009/lectures/ospy_slides4.pdf
from osgeo import gdal,ogr
from osgeo.gdalconst import *
import struct
import sys