Giter Club home page Giter Club logo

update-gps-meters's Introduction

Update-GPS-Meters

Python Code Documentation

This Python script utilizes ArcPy and Pandas libraries to update feature classes within ArcGIS based on information stored in an Excel workbook.

Requirements

  • ArcGIS Pro
  • Pandas library for Python
  • ArcPy library

Usage

  1. Ensure that ArcGIS Pro is installed on your system.
  2. Install the Pandas library if it's not already installed. You can install it using pip: pip install pandas.
  3. Configure the paths in the script according to your system.
  4. Run the script.

Description

The script performs the following operations:

  1. update_assetID(): Updates the 'ASSETID' field in the feature class based on matching GIS account numbers from an Excel workbook.
  2. SizefromExcel(): Updates the 'SIZE' field in the feature class based on matching GIS account numbers from an Excel workbook.
  3. update_meterSize(): Updates the 'METER_SIZE' field in the feature class based on the 'SIZE' field values.
  4. update_serviceType(): Updates the 'SERVICETYPE' field based on the 'SIZE' field values.
  5. update_editor(): Updates the 'Last Editor' and 'Last Update Field' in the feature class.
  6. update_fixed(): Updates the 'ACCURACY' field in the feature class.
  7. update_accountNum(): Updates the 'ACCOUNTID' field based on the 'GISACCOUNT' field values.
  8. update_location(): Calculates geometry attributes such as Latitude, Longitude, Northing, Easting, and Elevation.
  9. update_empty(): Updates the 'ACCOUNTID' field based on 'Notes' field values.
  10. update_facilityID(): Updates the 'FACILITYID' field in the feature class.

Notes

  • Ensure that all paths to files and feature classes are correctly specified.
  • This script assumes a specific structure and naming convention of fields in the feature class. Adjustments may be needed based on your data schema.
  • Before running the script, ensure that appropriate permissions are set to update the feature class.
  • It's recommended to review and backup your data before running the script, especially operations that involve updating fields.

update-gps-meters's People

Contributors

crusoe22 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.