Select to view content in your preferred language

Please add QueryPointsAndDistances method to IGeometryEngine Interface

1048
6
04-20-2024 02:06 PM
Status: Implemented
Labels (1)
MRJ1
by
Emerging Contributor

In the ArcObjects SDK there is a method called QueryPointsAndDistances, which is a member of the ICurve3 Interface. Can you please add support for this in the ArcGIS Pro SDK as part of the IGeometryEngine Interface under the ArcGIS.Core.Geometry namespace? This functionality would be really useful for my linear referencing work. Please note: this method is not to be confused with the QueryPointAndDistance method, which is already available in the Pro SDK but only returns a single map point and does not provide an enumerator returned from QueryPointsAndDistances available in ArcObjects. Thank you!

6 Comments
AnnetteLocke

Hi,

We will add it in the next release. Thank you for the suggestion.

Annette

MRJ1
by

Hi. Still looking for this specific functionality to be implemented in the ArcGIS Pro SDK. The method provides an enumerator over all the closest points on a geometry given an input point:

https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#ICurve3_QueryPointsAndDistances.htm

 

Thank you!

AnnetteLocke

Hi, 

This functionality has been added to the next release which is 3.5. 

VedantBajaj
Status changed to: Implemented

Hi, This has been implemented as QueryPoints.

AnnetteLocke

There are two new methods.

IReadOnlyList<MapPoint> QueryPoints(Segment segment, SegmentExtensionType extensionType, IEnumerable<double> distancesAlongCurve, AsRatioOrLength asRatioOrLength)

 

IReadOnlyList<MapPoint> QueryPoints(Multipart multipart, SegmentExtensionType extensionType, IEnumerable<double> distancesAlongCurve, AsRatioOrLength asRatioOrLength)

AnnetteLocke

Correction: This was added in 3.4.