This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.node { | |
cursor: pointer; | |
} | |
.node circle { | |
fill: #fff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from subprocess import call | |
import sys | |
import pysal | |
from numpy.testing import assert_equal | |
shps_to_test = [] | |
examplesdir = 'examples/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from struct import unpack | |
import numpy as np | |
import sys | |
#OSRM data type - nodes | |
node_dtype = np.dtype([('lat', '<i'), ('long', '<i'), ('id', '<I'), ('Flags', '<i')]) | |
#Reading the .osrm file | |
f = open(sys.argv[1]) | |
f.seek(156) # Skip the header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
%pylab inline | |
def createhex(xoff=1,yoff=1): | |
A = (math.cos(math.radians(30)), math.sin(math.radians(30))) | |
B = (math.cos(math.radians(90)), sin(math.radians(90))) | |
C = (math.cos(math.radians(150)), sin(math.radians(150))) | |
D = (math.cos(math.radians(210)), sin(math.radians(210))) | |
E = (math.cos(math.radians(270)), sin(math.radians(270))) | |
F = (math.cos(math.radians(330)), sin(math.radians(330))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import arcpy | |
import pythonaddins | |
class LayerList(object): | |
"""Implementation for valuebyalpha_addin.combobox (ComboBox)""" | |
def __init__(self): | |
self.editable = True | |
self.enabled = True | |
self.dropdownWidth = 'WWWWWW' | |
self.width = 'WWWWWW' |
NewerOlder