Closed mfunk closed 6 years ago
confirmed this is an issue. Cross-checked against what we did for the last release. We had an issue that #343 GRG From Area was producing bad outputs with WGS84. This new issue is not an issue we fixed from the June2018 release. @kgonzago is this something you can look at when you finish with what you are currently working on?
I'm trying to repro this, but not seeing it. Create GRG From Point is working with both 0 and non-zero rotations for me. (Pro 2.2, Military Tools 3.0.0.76)
Coordinate system dependent? I was using UTM Zone 10N WGS1984.
Working in UTM Zone 10N for me:
@mfunk - how did you install the tools? Via the conda package, or just using what's in the PYT file?
Conda package. That shouldn't matter though. Does the Conda package use the PYT or TBX?
If I run from the version installed by the conda package, it seems to run fine: If I run the tool from the PYT in the GitHub repo, it fails:
Also, I see that the symbology for the input points is different (blue pushpin vs yellow dot).
@mfunk - conda package should be using the PYT - after it has been packaged/extracted. There are some folder structure differences as a result of that cycle, compared to in the repo.
@BobBooth I was able to reproduce the error you got returned NULL without setting an error
. Looking into it now.
After uninstalling my python conda environments in Pro and creating a new one, reinstalling the MT conda package, and searching for GRG, I am still successfully running the tool with a rotation using UTM Zone 10N.
@mfunk - could it be your license level?
With WGS84 coordinate system, using the tool from the conda package, I am seeing this issue.
With non-zero rotation, the tool runs & reports success, but no features are generated.
With a 0 rotation value the tool is running and producing output, but instead of meters, the units seem to be degrees. A 5x5 grid of 100 meter cells is covering the planet.
@kgonzago - note that it seems coordinate system dependent. Tool worked fine in Web Mercator.
This reminds me of https://github.com/Esri/military-tools-geoprocessing-toolbox/issues/343
Is it possible that we lost the fix to that at some point in the last week?
Please see this comment
Scenarios I tested with:
@kgonzago from the comment above I am placing the dev label back on the issue. When the PR has been updated to allow a user to use a GCS map I will review the PR. Let me know if there is any input needed on my part.
@topowright is currently working on the development task
I have figured out a way that the tool will work with a PCS and a GCS. The approach I am taking has to do with projecting the input point to a standard PCS
''' create a spatial reference object for the output coordinate system out_coordinate_system = arcpy.SpatialReference(54032)
# run the Project management tool
arcpy.Project_management(input_features, output_feature_class, out_coordinate_system)
targetPointOrigin = output_feature_class
'''
I will have the fix in in the morning.
This is only an issue in ArcGIS Pro not ArcMap.
CMS has been updated in both GRG and Military Tools.
Taking off the label for checklist test being that there is already a checklist that has a grid rotation.
reviewed doc changes and re-published, updated versions here ...\DesktopHelp\10.6\review_pdf\grg_pdf http://solutionsdev.arcgis.com/defense/help/gridded-reference-graphic/resources/august-2018-gridded-reference-graphic.htm
...\DesktopHelp\10.6\review_pdf\military_tools_release_notes http://solutionsdev.arcgis.com/defense/help/military-tools/resources/august-2018-military-tools-for-arcgis.htm
I'm working on UC demos with the final version of Military Tools 3.0 with Create GRG From Point using a Grid Rotation. When I use a non-zero Grid Rotation value the tool runs successfully (no errors or warnings) but produces no output: the output features are not created, and not added to the map (of course).
Expected Behavior
Output grid should be rotated around the input point by the specified amount (degrees) in a clockwise direction.
Current Behavior
No output is created. The feature class is not created, so no features, and no grid added to map...
This does NOT work:
This does work:
Possible Solution
Steps to Reproduce (for bugs)
Context
Working on UC demo showing Military Tools, and can't show GRG with rotation. Not a huge problem for the demo but for people using the tool this could be a bad one.
Your Environment