Skip to content

Instantly share code, notes, and snippets.

View dbouwman's full-sized avatar
😎
Hubbin it up @ Esri

Dave Bouwman dbouwman

😎
Hubbin it up @ Esri
View GitHub Profile
@dbouwman
dbouwman / payload.json
Last active August 29, 2015 14:22
POST to composer-jobs-api /api/groups
{
"type": "harvest:group",
"inputs": {
"group_id": "ye-olde-groupid"
}
}
{
"meta": {
"host": "services.arcgis.com/C34zQ7veRS0V1t04",
"host_hash": "d31530f94cf04fffaa63c7dc5a9a9faf",
"server": "services.arcgis.com/C34zQ7veRS0V1t04/arcgis/rest/services",
"server_hash": "92aaf83cefefbef179fdaa8d27aa53fa",
"service": "services.arcgis.com/C34zQ7veRS0V1t04/arcgis/rest/services/IndexWells/FeatureServer",
"service_hash": "542bc00c380caa38655eb7f8c46e32b2",
"layer": "services.arcgis.com/C34zQ7veRS0V1t04/arcgis/rest/services/IndexWells/FeatureServer/0",
"layer_hash": "2f5b5ada1257fdca0226a30204c248cc",
@dbouwman
dbouwman / dataset.json
Created June 8, 2015 16:37
Payload returning accepted:false
{
"dataset": {
"meta": {
"status": "finished"
},
"messages": [],
"id": "1a63b2ba7ed04824b8bcef8a106d824f_0",
"advanced_query_capabilities": [],
"created_at": "2014-12-02T19:50:47.000Z",
"description": "",
@dbouwman
dbouwman / compare.txt
Created July 7, 2015 03:23
Comparison output for devext. ds1 is from opendatadev.arcgis.com, ds2 is from the jobs api
2015-07-07T03:21:33.963Z - info: ------------------------------------------------
2015-07-07T03:21:33.966Z - info: Compare.js Run at: 2015-07-07T03:21:33.964Z
2015-07-07T03:21:33.966Z - info: Dataset 1 from: http://opendatadev.arcgis.com
2015-07-07T03:21:33.966Z - info: Dataset 2 from: http://52.7.36.120/proxy/api/datasets
2015-07-07T03:21:33.966Z - info: ------------------------------------------------
2015-07-07T03:21:34.881Z - info: Added 11 paged urls to queue.
2015-07-07T03:21:43.499Z - info: Comparison for dataset U.S. Highways (100000 - 350000) [451abb27f5e4452cb4f896525ed96ac7_33]
2015-07-07T03:21:43.499Z - info: ds1[type]:Layer !== ds2[type]:Feature Layer
2015-07-07T03:21:43.500Z - info: Key [public] not present in ds2
2015-07-07T03:21:43.500Z - info: Key [comments_enabled] not present in ds2
@dbouwman
dbouwman / dataset.json
Created July 9, 2015 19:17
Error json
{
"dataset": {
"meta": {
"host": "opendataqa.arcgis.com/datasets",
"host_hash": "3ddfcc160a6bb0ef4c86fab746a14a0f",
"server": "opendataqa.arcgis.com/datasets/8d39e6ff51704706babefee5c2bf440f_0/featureserver/0services",
"server_hash": "bffbe6f5cb175c32539ad5b6f67faa96",
"service": "opendataqa.arcgis.com/datasets/8d39e6ff51704706babefee5c2bf440f_0/FeatureServer",
"service_hash": "1e44a83065cf60d842f917f19ee47b53",
"layer": "opendataqa.arcgis.com/datasets/8d39e6ff51704706babefee5c2bf440f_0/FeatureServer/0",
@dbouwman
dbouwman / log.txt
Created July 10, 2015 04:02
Example Compare
2015-07-10T04:00:43.255Z - info: Comparison for dataset Ice and Snow - 1M [b9061e5d0ae3450d9f20060cc1960f38_50]
2015-07-10T04:00:43.255Z - info: ds1[object_id_field]:null !== ds2[object_id_field]:OBJECTID
2015-07-10T04:00:43.255Z - info: ds1[item_name]:Ice and Snow - 1M !== ds2[item_name]:Yukon Base Information (GeoYukon) - Dynamic
2015-07-10T04:00:43.255Z - info: ds1[type]:ItemLayer !== ds2[type]:Layer
2015-07-10T04:00:43.255Z - info: ds1[public]:null !== ds2[public]:true
2015-07-10T04:00:43.255Z - info: ds1[created_at]:2015-02-17T22:04:03.000+00:00 !== ds2[created_at]:2015-02-17T22:04:03.000Z
2015-07-10T04:00:43.256Z - info: Field GEOMETRY esriFieldTypeGeometry has stats in ds2 but not in ds1.
2015-07-10T04:00:43.256Z - info: Field GEOMETRY.AREA esriFieldTypeDouble has stats in ds2 but not in ds1.
2015-07-10T04:00:43.256Z - info: Field GEOMETRY.LEN esriFieldTypeDouble has stats in ds2 but not in ds1.
2015-07-10T04:00:43.256Z - info: ds1 does not have spatial_reference or
@dbouwman
dbouwman / diff.txt
Created July 10, 2015 14:20
Name Diffs
This file has been truncated, but you can view the full file.
2015-07-10T04:00:41.720Z - info: ds1[name]:Building Permit Locations !== ds2[name]:Permit Locations
2015-07-10T04:00:41.844Z - info: ds1[name]:Police Districts !== ds2[name]:Police District
2015-07-10T04:00:41.850Z - info: ds1[name]:Fire Stations !== ds2[name]:Fire Station
2015-07-10T04:00:41.950Z - info: ds1[name]:Open Space District Holdings for Website !== ds2[name]:District_Conservation_Program
2015-07-10T04:00:43.198Z - info: ds1[name]:CSW FORESTRY.INVENTORY LABEL ADDITIONL TBL !== ds2[name]:CSW_FORESTRY.INVENTORY_LABEL_ADDITIONL_TBL
2015-07-10T04:00:44.215Z - info: ds1[name]:libraries !== ds2[name]:Libraries
2015-07-10T04:00:44.867Z - info: ds1[name]:Outside Tahoe Sierra Watershed Boundaries !== ds2[name]:Outside Tahoe_Sierra Watershed Boundaries
2015-07-10T04:00:44.914Z - info: ds1[name]:DAC Tracts 2009 2013 !== ds2[name]:DAC Tracts 2009_2013
2015-07-10T04:00:44.928Z - info: ds1[name]:SWWG IRWMs !== ds2[name]:SWWG_IRWMs
2015-07-10T04:00:45.165Z - info: ds1[name]:
{"item":{"title":"New Map","snippet":"Water","extent":[[-115.85,-38.82],[119.25,52.58]]},"itemData":{"operationalLayers":[{"url":"http://orfmaps.norfolk.gov/orfgis/rest/services/OpenData/Environmental/MapServer/0","visibility":true,"opacity":0.78,"mode":1,"id":"graphicsLayer0","minScale":0,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"visualVariables":[{"type":"colorInfo","field":"Maps_GISNORFOLK_hydro_AREA","stops":[{"value":0.27574298,"color":[255,247,251,200],"label":null},{"value":106701682.51302722,"color":[236,226,240,200],"label":null},{"value":213403364.75031146,"color":[208,209,230,200],"label":null},{"value":320105046.98759574,"color":[166,189,219,200],"label":null},{"value":426806729.22488,"color":[103,169,207,200],"label":null},{"value":533508411.4621642,"color":[54,144,192,200],"label":null},{"value":640210093.6994485,"color":[2,129,138,200],"label":null},{"value":746911775.9367328,"color":[1,100,80,200],"label":null}]}],"type":"simple","label":"","description":"","symbol":{"color":
{"item":{"title":"New Map","snippet":"Water","extent":[[-115.85,-38.82],[119.25,52.58]]},"itemData":{"operationalLayers":[{"url":"http://orfmaps.norfolk.gov/orfgis/rest/services/OpenData/Environmental/MapServer/0","visibility":true,"opacity":0.78,"mode":1,"id":"graphicsLayer0","minScale":0,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"type":"simple","label":"","description":"","symbol":{"color":[43,140,190,200],"outline":{"color":[255,255,255,255],"width":0.5,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}}}}],"baseMap":{"baseMapLayers":[{"opacity":0.8,"visibility":false,"url":"http://services.arcgisonline.com/arcgis/rest/services/Canvas/World_Light_Gray_Base/MapServer"},{"opacity":0.5,"visibility":true,"url":"http://services.arcgisonline.com/arcgis/rest/services/Specialty/DeLorme_World_Base_Map/MapServer"}],"title":"basemap"},"version":"1.0"}}
@dbouwman
dbouwman / index.html
Last active August 29, 2015 14:26
Wetlands
<!DOCTYPE html> <meta charset="utf-8"> <link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css"> <style> #map { height:500px; } </style> <body> <div id="map"></div> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script> <script src="http://js.arcgis.com/3.14/"></script> <script> require(["esri/map","esri/urlUtils","esri/arcgis/utils","esri/layers/FeatureLayer","esri/renderers/SimpleRenderer","esri/renderers/jsonUtils","dojo/domReady!"], function(Map,urlUtils,arcgisUtils,FeatureLayer,SimpleRenderer,jsonUtils) { $.getJSON("https://api.github.com/gists/f6d5d993c48c5a074f00", function(data) { var webmap; for (var file in data.files ) { if ( file !== "index.html" ) { webmap = JSON.parse(data.files[file].content); } }; arcgisUtils.createMap(webmap, "map").then(f