gptools

gptools is a collection of tools I have built for ESRI’s desktop geoprocessing. While not complete, there are functioning parts I make available for all to use under an MIT-style license.

Download

There is a bitbucket repository storing the project from where you can download here.

Functionality

gptools provide you with the following functionality:

Conversions

There are multiple conversions made possible, split up in three domains: conversion of feature classes, of tables and of units. Read below for more details.

Feature Class

There are a few transformations made possible. These are:

  • Point Feature Class to Line Feature Class
    Command: pointsToLines(pointFC, outputFC, {whereClause}, {lineDifferentiator})
  • Point Feature Class to Polygon Feature Class
    Command: pointsToPolygons(pointFC, outputFC, {whereClause}, {polygonDifferentiator})
  • Multi-Point Feature Class to Point Feature Class
    Command: multiPointsToPoints(pointFC, outputFC, {whereClause})
  • Point Feature Class to Multi-Point Feature Class
    Command: pointsToMultiPoints(pointFC, outputFC, {whereClause})
  • Line Feature Class to Point Feature Class
    Command: linesToPoints(lineFC, outputFC, {whereClause})
  • Line Feature Class to Multi-Point Feature Class
    Command: linesToMultiPoints(lineFC, outputFC, {whereClause})
  • Polygon Feature Class to Point Feature Class
    Command: polygonsToPoints(polygonFC, outputFC, {whereClause})
  • Polygon Feature Class to Multi-Point Feature Class
    Command: polygonsToMultiPoints(polygonFC, outputFC, {whereClause})
  • KML File to appropriate Feature Class
    Command: kmlToFC(kmlFile, outputFC)
  • Any Feature Class to KML File
    Command: fcToKML(fcFile, kmlFile, {whereClause})

Table

There is currently only one conversion available.

  • Excel Spreadsheet to DBF File
    Command: xlsToDBD(xlsFile, dbfFile, {worksheet}, {headerInFirstRow})

Units

There are multiple unit conversions available.

  • Meters to Feet
    Command: metersToFeet(meters)
  • Meters to US Feet
    Command: metersToUsFeet(meters)
  • Meters to Miles
    Command: metersToMiles(meters)
  • Feet to Meters
    Command: feetToMeters(feet)
  • US Feet to Meters
    Command: usFeetToMeters(usFeet)
  • Feet to Miles
    Command: feetToMiles(feet)
  • Square Meters to Square Feet
    Command: meters2ToFeet2(meters2)
  • Square Feet to Square Miles
    Command: feet2ToMiles2(feet2)
  • Square Meters to Square Miles
    Command: meters2ToMiles2(meters2)
  • Square Miles to Square Meters
    Command: miles2ToMeters2(miles2)
  • Degrees to Radians
    Command: degreesToRadians(degrees)
  • Radians to Degrees
    Command: radiansToDegrees(radians)

Calculations

gptools also provide some calculation methods to make things easier.

  • Vicenty Distance
    Command: distanceVicenty(lat1, long1, lat2, long2, {ellipsoid})
  • Great Circle Distance
    Command: distanceGreatCircle(lat1, long1, lat2, long2, {earthRadius})

Leave a Reply

preload preload preload
Easy AdSense by Unreal