Coder Social home page Coder Social logo

Comments (17)

pshowalter avatar pshowalter commented on July 28, 2024

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.

image

from distance-direction-addin-dotnet.

rjones0 avatar rjones0 commented on July 28, 2024

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.

rjones0 avatar rjones0 commented on July 28, 2024

@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.

rjones0 avatar rjones0 commented on July 28, 2024

@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.

pshowalter avatar pshowalter commented on July 28, 2024

@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.

rjones0 avatar rjones0 commented on July 28, 2024

@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.

kgonzago avatar kgonzago commented on July 28, 2024

@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.

NatalieCampos avatar NatalieCampos commented on July 28, 2024

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.

lfunkhouser avatar lfunkhouser commented on July 28, 2024

Assigning back to developers to add the fields @NatalieCampos pointed out that are still missing.

from distance-direction-addin-dotnet.

pHill5136 avatar pHill5136 commented on July 28, 2024

pr: #378
please verify

from distance-direction-addin-dotnet.

NatalieCampos avatar NatalieCampos commented on July 28, 2024

I got this one.

from distance-direction-addin-dotnet.

dfoll avatar dfoll commented on July 28, 2024

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.

pHill5136 avatar pHill5136 commented on July 28, 2024

please verify

from distance-direction-addin-dotnet.

NatalieCampos avatar NatalieCampos commented on July 28, 2024

@pHill5136
There are differences in attribute when written to shp vs feature class. The lines are missing the DestinationX and DestinationY fields.
image

from distance-direction-addin-dotnet.

NatalieCampos avatar NatalieCampos commented on July 28, 2024

@pHill5136 Also my KMZs still have no attributes when saved from Pro 1.4

from distance-direction-addin-dotnet.

pHill5136 avatar pHill5136 commented on July 28, 2024

please verify pr: #391

from distance-direction-addin-dotnet.

NatalieCampos avatar NatalieCampos commented on July 28, 2024

The missing fields have been added. Closing issue.

from distance-direction-addin-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.