Skip to content

Instantly share code, notes, and snippets.

View jgravois's full-sized avatar

john gravois jgravois

View GitHub Profile
@jgravois
jgravois / outline
Last active March 2, 2017 19:45
git for geographers
john and pat demo time!
two different text editors
two different git clients
pat made a project with markdown and geojson
john forks it
clones
branches
commits
creates PR
@jgravois
jgravois / post.py
Last active April 22, 2022 18:15
what's required to use python requests to POST to AGOL/ArcGIS Server?
import requests
import json
agol_url = r'http://services1.arcgis.com/uRIm5IkWjDXybgFb/arcgis/rest/services/LA_Nhood_Change/FeatureServer/0/query'
server_url = r'http://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/FeatureServer/0/query'
# i tried several different headers, to no avail
# headers={"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
# headers = {"Content-Type": "application/x-www-form-urlencoded", "Accept":"/*/", "Accept-Encoding":"gzip, deflate", "Accept-Language":"en-US,en;q=0.8,ar;q=0.6"}
headers={"content-type":"application/json","Accept":"application/json"}
@jgravois
jgravois / lerc.js
Created January 10, 2017 20:00
use lerc in node
var http = require('http');
var request = require('request');
var Lerc = require('./LercDecode');
http.get('http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer/tile/0/0/0', function (res) {
var data = [];
res.on('data', function (chunk) {
data.push(chunk);
})
res.on('end', function () {
@jgravois
jgravois / pat_review.md
Last active November 29, 2017 17:15
issues / pull requests that would benefit from Pat code review whenever he can spare the time
@jgravois
jgravois / .block
Last active May 2, 2016 19:45
static token feature layer
license: apache-2.0
@jgravois
jgravois / ama.md
Last active April 21, 2016 16:31
Slack Community AMA with Andrew Turner

#ama-esri-20160419

This is the very beginning of the #ama-esri-20160419 channel, which was created by @gisdev-km on April 19th. Purpose: AMA w/ Andrew Turner and John Gravois of Esri. Andrew and John are some of the top technical talents at Esri and help Esri contribute to open source projects and open data initiatives. Feel free to ask your questions ahead of time!


gisdev-km [9:43 AM] joined #ama-esri-20160419. Also, @jerrad joined, @nathalie joined, @flippmoke joined, @langdon joined, @khutchins joined, @robodonut joined, @jmunowitch joined, @zia joined, @ambell joined, @tmcgee joined, @patrickarlt joined.

gisdev-km [9:50 AM] Hi everyone, thanks for joining today's AMA with Esri's own @ajturner and @jgravois. We will be starting at 11AM Pacific! 1

@jgravois
jgravois / ama.md
Last active April 18, 2016 18:47
notes for upcoming AMA

Notes for upcoming Spatial Community AMA with @ajturner (4/19 26 @ 11:00am PDT)

talking points 😝

  • esri is neither as big or homogenous as people sometimes guess
  • we're not a monolith
  • making 'open data' easier and more pervasive is a no brainer for us
  • esri is 100% customer driven. some of our customers are dragging us into modernity, we're dragging others.
  • its harder for us to track success of our Open Source projects than what we license
  • open or closed, my own interest has always been to promote problem solving and professional development
@jgravois
jgravois / hi.md
Last active December 25, 2017 06:48
ArcGIS Server instances i use for testing and their versions (last time i checked)
@jgravois
jgravois / index.html
Last active January 14, 2016 20:14
display GeoEnriched attributes from a feature when someone searches for an address
<html>
<head>
<meta charset=utf-8 />
<title>Esri-Leaflet Starter App</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.css" />
<script src="//cdn.leafletjs.com/leaflet/v1.0.0-beta.2/leaflet.js"></script>
@jgravois
jgravois / .block
Last active April 26, 2016 01:36
locate, query
license: Apache-2.0