Skip to content

Instantly share code, notes, and snippets.

View smathermather's full-sized avatar

Stephen Mather smathermather

View GitHub Profile
@smathermather
smathermather / lineToStreet
Created July 30, 2013 18:57
Make Lines from Points to nearest road
CREATE OR REPLACE FUNCTION line_to_street (geometry) RETURNS geometry AS $$
WITH index_query as
(SELECT ST_Distance($1,road.the_geom_webmercator) as dist,
ST_MakeLine(ST_ClosestPoint(road.the_geom_webmercator, $1), $1) as the_geom_webmercator
FROM cuy_streets As road
ORDER BY $1 <#> road.the_geom_webmercator limit 10)
SELECT the_geom_webmercator
FROM index_query
@smathermather
smathermather / strongsville_test.geojson
Last active December 21, 2015 23:29
test GeoJSON for Strongsville, OH
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smathermather
smathermather / UAS specs 2014.md
Last active August 29, 2015 13:56
UAS flight specifications and business needs

#UAS flight specifications & business needs

Interactive Map: http://cdb.io/1nvcgRT

###Acacia Reservation #####Acreage 196 #####Location: -81.492562, 41.505428 ######BBOX: -81.497625, 41.501209, -81.486774, 41.51008 ####Business need:

  1. Mapping of existing drainage tiles
@smathermather
smathermather / Cool Computer Vision Stuff
Last active August 29, 2015 13:58
Cool Computer Vision Stuff
Structure from Motion (SfM)
* http://flightriot.com/post-processing-software/
* http://wedidstuff.heavyimage.com/index.php/2013/07/12/open-source-photogrammetry-workflow/
* http://www.lancaster.ac.uk/staff/jamesm/software/sfm_georef.htm
* http://www.agisoft.ru/products/photoscan/professional/
* http://www.agisoft.ru/products/photoscan/standard/
* http://ccwu.me/vsfm/
Deep Learning
* http://vimeo.com/91460768
@smathermather
smathermather / drape.sql
Created May 11, 2014 04:20
Working on drape PostGIS SQL (temporary fork from stamen/isometric-maps while keeping that code clean...
-- Modifies all
--
--
CREATE OR REPLACE FUNCTION drape_sampled(line geometry) RETURNS geometry AS $$
DECLARE line3d geometry;
BEGIN
RAISE NOTICE 'draping';
WITH linemeasure AS
-- Add a measure dimension to extract steps
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smathermather
smathermather / leaflet-mapmaking-notes.md
Last active August 29, 2015 14:01
Randon Notes on Leaflet Mapmaking

each huc has interactive points for sampling locations identify gaps problem areas (not in attainment) another layer with the different projects

Timeline: End of June...

http://www.maptime.io/

@smathermather
smathermather / odm texture mapping.md
Last active August 29, 2015 14:03
OpenDroneMap Texture Mapping

OpenDroneMap Texture Mapping

Background

Current status of OpenDroneMap

A fork of https://github.com/qwesda/BundlerTools, currently OpenDroneMap project uses Bundler SfM, Patch-based Multi-view Stereo Software (PMVS), Clustering Views for Multi-view Stereo (CMVS), and related tools to ingest a set of unreferenced images, perform multistereo matching, reconstruct original camera positions, sparse point cloud, and dense point cloud from image inputs. ODM is intended to act as a workflow for processing ground level and civilian UAS (drone) imagery to do 3D reconstruction, with target outputs of point clouds, surfaces, textured surfaces, and orthophotos. Currently ODM can provide outputs similar to figures 1 and 2.

Figure 1:

Project scope:

  • Assessment of existing hardware, software, and oganizational capacity
  • Review of 5 existin and costs structures
  • Develop ROI
  • Develop guidlines to allow for shared costs
  • Create short, medium, and long term implementation roadmap with recommendations
  • Facilitate and build consensus with initial and possible future partners

Four tier model (generic model of how GIS services organizes)

@smathermather
smathermather / Centennial Webby People.md
Last active August 29, 2015 14:13
Centennial Webby People

Elements:

  • Web & Social Media
  • Video
  • Book
  • Events
  • Gala
  • Money

Website types/ Ideas

  • Timelines