Skip to content

Instantly share code, notes, and snippets.

View talllguy's full-sized avatar
🎯
Focusing

Elliott Plack talllguy

🎯
Focusing
View GitHub Profile
@talllguy
talllguy / BCDOT_2024-03-26_Truck.geojson
Created March 27, 2024 16:20
Latest truck routes from Baltimore City DOT via Discord
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talllguy
talllguy / gsv_arcade_point.js
Last active June 15, 2023 13:31
Arcade expression that returns a Google Street View link for a given feature.
// =================================================================== //
// Arcade Google Street View Point //
// by Elliott Plack (eplack@mdot.maryland.gov) //
// Description: //
// ArcGIS Arcade expression that returns a Google Street View URL //
// at a point's location. Add it to the point layer's attributes and //
// then reference the link as a URL in the popup. //
// =================================================================== //
function MetersToLatLon(x, y) {
@talllguy
talllguy / arcgis_arcade_osm_point_url.js
Last active April 3, 2023 10:08
Arcade Expression to generate an OpenStreetMap URL wherever a point is located in an ArcGIS
// =================================================================== //
// Arcade OpenStreetMap Point URL //
// by Elliott Plack (eplack@mdot.maryland.gov) //
// Description: //
// ArcGIS Arcade expression that returns an OpenStreetMap URL //
// at a point's location. Add it to the point layer's attributes and //
// then reference the link as a URL in the popup. //
// =================================================================== //
function MetersToLatLon(x, y) {
@talllguy
talllguy / MHT_Markers.geojson
Last active November 16, 2022 20:59
Maryland Historical Trust markers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talllguy
talllguy / maryland_dams.geojson
Created December 14, 2021 21:03
maryland dams
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talllguy
talllguy / google_maps_arcade_URL_gen.js
Last active December 6, 2021 20:55
Arcade expression for generating a Google Maps directions link at a point
function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
// Source: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
// Source: https://community.esri.com/thread/222695-latlong-unit-conversion-with-arcade#comment-806053
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
@talllguy
talllguy / brick_streets_no_paths.geojson
Last active June 7, 2021 04:08
brick or paving stone streets in Baltimore
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talllguy
talllguy / md-lidar.md
Last active May 3, 2021 12:44
Maryland iMAP LiDAR sources for JOSM

Maryland iMAP Public Domain Lidar in JOSM

Maryland makes its shaded relief lidar data available for free and in the public domain. You can added as a source for tracing in JOSM using the following WMS imagery entries. To add a county that isn't listed, head to the LiDAR server and copy the WMS link into a text editor. Then update the link with a paremeters like in these examples.

Maryland iMAP PD Lidar: Anne Arundel County

wms:https://lidar.geodata.md.gov/imap/services/AnneArundel/MD_annearundel_shadedRelief_RGB/ImageServer/WMSServer?FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=0&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}

Maryland iMAP PD Lidar: Baltimore City

@talllguy
talllguy / find_replace_caps_npp.txt
Created April 13, 2021 12:31
Find and replace All Caps words to Proper Case in Notepad++
Set Match Case = yes
Set Wrap Around = yes
Find what: (([A-Z])\w+)
Replace with : \L\u\1
@talllguy
talllguy / Imagery-URL.md
Last active February 8, 2021 15:00
Strava Heatmap as a JOSM layer