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

#341 - Add Number Features to GRG Toolset and address labeling on Pro 2.2 #342

Closed csmoore closed 6 years ago

csmoore commented 6 years ago

341 - Add Number Features to GRG Toolset and address labeling on Pro 2.2

Description

341 - Add Number Features to GRG Toolset and address labeling on Pro 2.2

Related Issue

341

Motivation and Context

341

How Has This Been Tested?

Manually (Note: we were requested to not add any more unit tests to repo)

Screenshots (if appropriate):

Types of changes

Checklist:

csmoore commented 6 years ago

@topowright - please see question/comment at: https://github.com/Esri/military-tools-geoprocessing-toolbox/issues/341#issuecomment-397589167

csmoore commented 6 years ago

While trying to repro @topowright 's possible problem I noticed another existing issue with the tool.

The python code assumes the "Features to Number" parameter is a Feature Layer (at the SelectByLayer step) - so if you supply a feature class to the tool it will fail.

UPDATE: it looks like this problem only occurs if there is an existing layer with the same name as the feature class in the Map/TOC. In this case there was a TOC layer called "Structures" so the tool did not create a new layer called "Structures"

image

image

topowright-zz commented 6 years ago

This pull request addresses the addition of the tool, but not the labels. I could be missing something, but wanted to add the statement for full clarification.