Comments (17)
Additional consideration for this enhancement: The previous version of "MA" (10.1) had ability to use information from the metrics used to create graphics for labels on Geodesy features, and Range Ring. In addition to the graphics, generating from stored attributes would be nice additional functionality.
from distance-direction-addin-dotnet.
PR: #309
This PR contains the basics of writing the attributes into the exported FC. With this in place it should hopefully be a matter of fine tuning towards the exact functionality required.
from distance-direction-addin-dotnet.
@mcalamito @pshowalter the basics of the functionality have been added. Please review and provide comments or close if appropriate. Note that saving from Pro is a little slow with this fix - this is due to a limitation in the API (the fields have to be added to the output Feature Class one by one).
from distance-direction-addin-dotnet.
@mcalamito @pshowalter I am going to close this issue as I am confident it is resolved. Please let me know if you disagree.
from distance-direction-addin-dotnet.
@rjones0
Would it make sense to copy an existing empty schema, and then populate with features, rather than building up the schema by adding fields one at atime?
from distance-direction-addin-dotnet.
@pshowalter I think that is a superior approach, and I referred to similar/same in my PR: #309
I think the obvious method is to include files with template schema i.e. Shapefile/FGDB containing FC with appropriate fields as embedded resources in the solution. I would have to check if this approach works with an AddIn. Happy to investigate this, especially as the Pro SDK doesn't seem to have what I need to build up the schema fully in code, and the method I was forced to use (adding the fields one by one) seemed very slow in testing.
@kgonzago what is your opinion on above?
from distance-direction-addin-dotnet.
@rjones0 an empty shapefile with a predefined schema and executing the FC to FC tool to create output FC. Seems like a good approach which might be more efficient than calling the add field tool numerous times over.
from distance-direction-addin-dotnet.
This enhancement recommended the following fields be added when graphics are saved.
Lines: Start_Pt, End Pt, Dist_x, Angle_x - where x is the unit the user chose from the unit dropdown.
Circle: Center_Pt, Radius_x OR Diameter_x - depending on if the user chose Radius or Diameter
Ellipse: Center_Pt, Minor_x, Major_x, Orient_x - where x is the unit the user chose from the unit dropdown.
Rings: Center_Pt, Rings, Dist_x, Radials - where x is the unit the user chose from the unit dropdown.
However, only the following fields are added:
Lines: Angle, Distance
Circle: Distance, DistanceType
Elipse: Minor, Major, Angle
Rings: Rings, Distance, Angle
The following fields are still missing from the enhancement request:
Lines: Start_Pt, End Pt
Circle: Center_Pt
Ellipse: Center_Pt
Rings: Center_Pt
@nfeuerstein @lfunkhouser Do these fields need to be added?
from distance-direction-addin-dotnet.
Assigning back to developers to add the fields @NatalieCampos pointed out that are still missing.
from distance-direction-addin-dotnet.
pr: #378
please verify
from distance-direction-addin-dotnet.
I got this one.
from distance-direction-addin-dotnet.
in Pro with build 1474 these fields are being added to feature class and shapefile for line, circle, and ellipse. In ArcMap, Rings are not populating the fields for distance unit and centerpoint. Still at 1474, some of the kmz are seemingly randomly getting corrupted, however the ones that did work did not have the fields added.
In ArcMap, only feature class is working
from distance-direction-addin-dotnet.
please verify
from distance-direction-addin-dotnet.
@pHill5136
There are differences in attribute when written to shp vs feature class. The lines are missing the DestinationX and DestinationY fields.
from distance-direction-addin-dotnet.
@pHill5136 Also my KMZs still have no attributes when saved from Pro 1.4
from distance-direction-addin-dotnet.
please verify pr: #391
from distance-direction-addin-dotnet.
The missing fields have been added. Closing issue.
from distance-direction-addin-dotnet.
Related Issues (20)
- Clear and Save As buttons should have a hover action HOT 2
- Using add-in with existing ArcGIS Pro project at a different scale causes "Spatial Index Grid Size" error HOT 12
- Rename Clear and Save As buttons HOT 3
- ArcGIS Pro crashes when you add a point with Distance and Direction on Pro 2.1 HOT 14
- User should be presented with warning when using invalid names to export HOT 2
- Incorrect axes labels for ellipses in ArcGIS Pro HOT 11
- BUG-000120038 The Military Tools Distance and Direction tool does not work in a .mxd file if it contains data projected to British National Grid. HOT 6
- Entering Lat/Lon Points for line in Web Mercator map produces inaccurate results and a crash in ArcMap HOT 6
- "Point is out of bounds" message does not appear for south outside extent in ArcMap HOT 3
- Opening saved .mxd with add-in from file explorer causes ArcMap crash HOT 5
- Holistic testing: sketching blocks GUI thread HOT 1
- Holistic Testing: Loading layer package prompts Save Project As HOT 4
- Holistic Testing: Distance and Direction Select Output dialog is not dark-theme compliant HOT 1
- Holistic Testing: Possible Hang On New Pro Project when other Project Open HOT 2
- Holistic Testing: Distance And Direction hang during testing HOT 1
- Center point inputted in DDM format is placed in wrong location HOT 6
- Holistic testing: Layer package is loaded after points are selected HOT 1
- Separate ArcMap and ArcGIS Pro code HOT 18
- A user must deactivate and reactivate the Map Point Tool after switching line types
- Graphics created by DD window left in map between sessions cannot be removed by the DD window in new session
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distance-direction-addin-dotnet.