Esri / military-tools-geoprocessing-toolbox

military-tools-geoprocessing-toolbox is a collection of models, scripts, and tools for use in ArcGIS for Desktop and ArcGIS Pro. This toolbox is one component that is a part of Military Tools.
Apache License 2.0
33 stars 14 forks source link

Bb 386 input of projected coordinates tab 2 pnt #412

Closed BobBooth closed 5 years ago

BobBooth commented 5 years ago

Added logic to detect when the coordinate system is not GCS_WGS_84 and create points from two fields with projected x and Y values (such as State Plane or UTM).

Description

Enhancement to resolve issue 386 - combine the features of Convert Coordinate Notation (current capability) with XY Table To Point.

Related Issue

386

Motivation and Context

Allows input of X and Y values that are in projected coordinate systems

How Has This Been Tested?

Tested tool on Naperville test data included with issue. To test:

  1. Unzip the Naperville Crime data to a local folder.
  2. In ArcGIS Pro, open Table To Point.
  3. Set naperville_crime table as Input Table
  4. Set DD_2 as Input Coordinate Format
  5. Set POINT_X and POINT_Y for X Field and Y Field respectively.
  6. Set Spatial Reference to NAD_1983_HARN_StatePlane_Illinois_East_FIPS_1201_Feet
  7. Run the tool.
  8. Output shows new points on the map.

OR, for UTM:

  1. Use POI_UTM_X_Y.csv from the military-tools-geoprocessing-toolbox\utils\testdata\CSV test data folder.
  2. In ArcGIS Pro, open Table To Point.
  3. Set POI_UTM_X_Y.csv table as Input Table
  4. Set DD_2 as Input Coordinate Format
  5. Set POINT_X and POINT_Y for X Field and Y Field respectively.
  6. Set Spatial Reference to WGS 1984 UTM Zone 10N
  7. Run the tool.
  8. Output shows new points on the map.

Screenshots (if appropriate):

image

Types of changes

Checklist:

BobBooth commented 5 years ago

@kgonzago @csmoore - actually, please hold off on review and merge. I thought of a couple of cases that I want to test, to be sure it is behaving correctly.

csmoore commented 5 years ago

Added a test case and made some changes so would work in ArcMap in https://github.com/Esri/military-tools-geoprocessing-toolbox/pull/412/commits/2994cfee133e79a1b2279af19b1bb5e5f46317b0