https://reactjs.org/docs/thinking-in-react.html
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
| require({ | |
| packages: [{ | |
| name: 'agrc', | |
| location: 'http://mapserv.utah.gov/cdn/dojo/agrc/2.0/' | |
| }] | |
| }, [ | |
| 'esri/map', | |
| 'esri/layers/ArcGISTiledMapServiceLayer', | |
| 'agrc/widgets/locate/FindAddress' | |
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
| require([ | |
| 'esri/map', | |
| 'esri/layers/ArcGISTiledMapServiceLayer' | |
| ], | |
| function (Map, Tiled) { | |
| var serviceUrl = 'http://mapserv.utah.gov/arcgis/rest/services/BaseMaps/Terrain/MapServer'; | |
| var map = new Map('map-div'); | |
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
| { | |
| "SamplingEvents": { | |
| "geometry": { | |
| "paths": [ | |
| [ | |
| [ | |
| 439243, | |
| 4500045 | |
| ], | |
| [ |
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 | |
| streets = r'\\Mac\Downloads\streetsforlinearreferencing\streets_for_linear_referencing.shp' | |
| fldFULLNAME = 'FULLNAME' | |
| routes = {} | |
| with arcpy.da.SearchCursor(streets, [fldFULLNAME, 'Shape@', 'OID@'], sql_clause=(None, 'ORDER BY {}'.format(fldFULLNAME))) as cursor: | |
| for name, shape, oid in cursor: |
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 timeit | |
| from os.path import abspath, dirname, join | |
| import arcpy | |
| current_directory = abspath(dirname(__file__)) | |
| sgid = join(current_directory, 'SGID10.sde') | |
| def dowalk(): |
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 sys | |
| import pyodbc | |
| import datetime | |
| # field names | |
| X_fld = 'X' | |
| Y_fld = 'Y' | |
| PRECINCT_ID_fld = 'PRECINCT_ID' | |
| COUNTY_ID_fld = 'COUNTY_ID' |
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
| private void AddSelectedToTemp() | |
| { | |
| QueuedTask.Run(() => | |
| { | |
| using (FeatureClass tempSegsFC = TempSegmentsLayer.GetFeatureClass()) | |
| using (RowCursor segmentsCursor = SegmentsLayer.GetSelection().Search((QueryFilter)null, false)) | |
| { | |
| EditOperation operation = new EditOperation(); | |
| operation.Name = "add selected to temp segments"; | |
| bool newPartCreated = false; |
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
| ''' | |
| fix_corrupt_geometries.py | |
| A module that contains code for fixing geometries that stubbornly refused to give you their WKT | |
| This code assumes that the OBJECTIDs are sequential. | |
| Example usage: | |
| from fix_corrupt_geometries import fix |
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
| ''' | |
| find_duplicates.py | |
| A module that contains code that finds duplicate features and notifies the owner of them. | |
| ''' | |
| from os.path import basename | |
| import arcpy | |
| import messaging |