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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Firesmoke Video Viewer</title> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> | |
<link href="https://api.mapbox.com/mapbox-gl-js/v3.11.0/mapbox-gl.css" rel="stylesheet"> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v3.11.0/mapbox-gl.js"></script> | |
<style> |
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 fontforge | |
import json | |
from shapely.geometry import shape, MultiPolygon | |
from shapely.affinity import translate | |
font = fontforge.open("Arial.ttf") # font to edit | |
font.fullname = "Geo Ligatures" | |
font.familyname = "Geo Ligatures" | |
font.fontname = "GEO_LIGATURES" |
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 PyQt5.QtCore import QTimer | |
from qgis.core import QgsCoordinateReferenceSystem | |
from qgis.utils import iface | |
current_index = 0 | |
def update_crs(): | |
global current_index | |
custom_proj = f"+proj=ortho +lat_0=0 +lon_0={current_index} +x_0=0 +y_0=0 +ellps=sphere +units=m +no_defs +type=crs" | |
custom_crs = QgsCoordinateReferenceSystem() |
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
-- add this to a road LINE layer that also has | |
-- a geometry geometry applied that buffers it | |
-- by 1000m. That's wide, I know! | |
-- change the reference to your water layer below. | |
-- all layers must be in a projected crs. | |
collect_geometries( | |
array_foreach( | |
geometries_to_array( | |
intersection( |
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
-- qgis geometry generator expression | |
-- to be used in water polygon layer | |
-- water polygons must be in a projected CRS | |
-- enable animation on the layer | |
-- change geometry generator geometry type to linestring | |
intersection( | |
$geometry, | |
translate( | |
wave_randomized( | |
collect_geometries( |
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
# MIT License | |
# Copyright (c) 2024 Darren Wiens | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>High Resolution Canopy Height</title> | |
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"> | |
<link href="https://api.mapbox.com/mapbox-gl-js/v3.2.0/mapbox-gl.css" rel="stylesheet"> | |
<script src="https://api.mapbox.com/mapbox-gl-js/v3.2.0/mapbox-gl.js"></script> | |
<style> |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="description" content=""> | |
<meta name="author" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
<title>MPC COPC Viewer</title> |
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
mapboxgl.accessToken = 'YOUR_MAPBOX_ACCESS_TOKEN'; | |
let center = [-74.5, 40] | |
const map = new mapboxgl.Map({ | |
container: 'map', | |
center: [-74.426, 40.1792], | |
zoom: 9, | |
pitch: 50, | |
keyboard: false, | |
preserveDrawingBuffer: true, | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder