Skip to content

Instantly share code, notes, and snippets.

View cageyjames's full-sized avatar

James Fee cageyjames

View GitHub Profile
@cageyjames
cageyjames / cuba.geojson
Last active March 22, 2016 19:33
Cuban Baseball Parks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var mylinestring = turf.linestring([
[50.72514692, -113.98716416], [50.724645649, -113.98753118]
]);
<geo>
<type>polygon</type>
<coordinates>
[39.6939396490001,-21.4994442689999], [39.6939396490001,-21.4952124979999],[39.6973576180001,-21.4979794249999]
</coordinates>
</geo>
@cageyjames
cageyjames / FGDC_Metadata.txt
Created November 5, 2014 16:55
600 lines of metadata
Metadata:
Identification_Information:
Citation:
Citation_Information:
Originator:
Publication_Date:
Publication_Time:
Title:
Edition:
Geospatial_Data_Presentation_Form:
@cageyjames
cageyjames / ballparks.geojson
Created February 21, 2014 20:03
MLB, PCL and IL Ballparks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Arizona Diamondbacks Chase Field 33.445081 -112.066564
Atlanta Braves Turner Field 33.735044 -84.389848
Baltimore Orioles Oriole Park at Camden Yards 39.283487 -76.621914
Boston Red Sox Fenway Park 42.346202 -71.097757
Chicago Cubs Wrigley Field 41.947904 -87.65581
Chicago White Sox U.S. Cellular Field 41.830189 -87.634206
Cincinnati Reds Great American Ball Park 39.096549 -84.509007
Cleveland Indians Jacobs Field 41.495506 -81.685286
Colorado Rockies Coors Field 39.755683 -104.99414
Detroit Tigers Comerica Park 42.339474 -83.049027
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<style type='text/css'>
body {
font-family: 'Helvetica';
letter-spacing:-5px;
Google Glass
State of the Map US - http://stateofthemap.us
Single page apps versus frameworks
Traveling and visiting foreign countries
FOSS-4G NA
OSM-Plus - http://osmplus.co
iD, the new OSM editor - http://www.spatiallyadjusted.com/2013/05/07/mapboxs-openstreetmap-editor/
Esri's REST API being an OGC standard - http://lists.osgeo.org/pipermail/discuss/2013-May/011599.html
Renting ArcGIS - http://spatiallyadjusted.com/2013/05/06/arcgis-cloud-is-in-your-future/
Leaflet over OpenLayers - http://acuriousanimal.com/blog/2013/05/05/the-problem-with-openlayers/
/* I, Brandon Martin-Anderson, release this into the public domain or whatever. */
BufferedReader reader;
double ll, bb, rr, tt;
float A = 1000.0;
GlobalMercator proj = new GlobalMercator();
def scan_forward( fp ):
for line in fp:
if line==[]:
return True
return False
def rowcmp(a,b):
if a==[]:
return 1
if b==[]: