I hereby claim:
- I am steveoh on github.
- I am steveoh (https://keybase.io/steveoh) on keybase.
- I have a public key whose fingerprint is E5D4 9904 BB9D 3482 A06A DE5D 2143 A56C 0A0A 53CD
To claim this, I am signing this object:
| <Project DefaultTargets="UpdateSOE" ...> | |
| <Target Name="UpdateSOE" DependsOnTargets="Build"> | |
| <!-- Python needs to be in the path --> | |
| <Exec Command="python $(MSBuildProjectDirectory)\PostBuildEvents\Runner.py"/> | |
| </Target> | |
| </Project> |
| using System.IO; | |
| using System.Xml.Linq; | |
| using System.Xml.XPath; | |
| using System.Diagnostics; | |
| //version could probably come from REPL input or something | |
| string version = "1.9.1"; | |
| /* bunch of file and folder moving around */ |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web.Http; | |
| public static class ModelStateDictionaryExtensions | |
| { | |
| public static IEnumerable<string> ToErrors(this ModelStateDictionary dict) | |
| { | |
| return dict.OrderBy(kvp => kvp.Key) |
| #: the fields in the feature class | |
| actual = set([str(x.name) for x in arcpy.ListFields(r'')]) | |
| #: the fields you are trying to use | |
| expected = set([]) | |
| fouled_up = expected - actual |
| #!/usr/bin/env python | |
| # * coding: utf8 * | |
| ''' | |
| test.py | |
| A module that tests inserting and joining records | |
| ''' | |
| import arcpy | |
| from os.path import basename |
| #!/usr/bin/env python | |
| # * coding: utf8 * | |
| ''' | |
| args.py | |
| A module that contains sample code to get params | |
| ''' | |
| import sys |
| #!/usr/bin/env python | |
| # * coding: utf8 * | |
| ''' | |
| args.py | |
| A module that contains sample code to get params | |
| ''' | |
| import arcpy | |
| import timeit |
I hereby claim:
To claim this, I am signing this object:
| import json | |
| import arcpy | |
| def resize_symbol(layer): | |
| if not layer.isFeatureLayer: | |
| return | |
| symbology = json.loads(layer._arc_object.getsymbology()) |
| var shape = (Polyline)row["Shape"]; | |
| var point = (MapPoint)GeometryEngine.Instance.Project(userClickGeometry, shape.SpatialReference); | |
| var proximity = GeometryEngine.Instance.NearestPoint(shape, point); | |
| var distance = proximity.Distance * 2; | |
| var vertices = new List<Coordinate2D> | |
| { | |
| new Coordinate2D(point), | |
| new Coordinate2D(proximity.Point), |