nearestCoordinate method does not return the z-value in the Proximity Result

1203
4
12-29-2020 08:39 PM
SarthakMishra
New Contributor II

I am trying to find the nearest point to a point in a multi-point geometry using the `nearestCoordinate` method of the Geometry Engine. However, when I print the ProximityResult obtained from the nearestCoordinate method, the resultant point does not contain the z-index value. I can confirm that all the points in the parent multi-point geometry have z-index values present in them.

Here is how I am using the nearest coordinate method

val nearestPt = GeometryEngine.nearestCoordinate(multiPointGeometry, point)
// nearestPt's z-index missing

 

Any help/ insight on this would be greatly appreciated!

Thanks,

Sarthak

4 Replies
MarkBaird
Esri Regular Contributor

I've taken a quick look at this and see exactly the same issue.  It feels like it should probably work so I've asked my friends in the geometry team to take a look.  It might be a bug, but let's see what they say...

SarthakMishra
New Contributor II

Thanks a lot for confirming the bug. Looking forward to the release fixing it 🙂

0 Kudos
MarkBaird
Esri Regular Contributor

I've talked more to the geometry engine team about this issue and this will be resolved eventually by the creation of a new set of geometry operations which will support 3D operations.  This isn't something which is currently under development, but if you wanted to raise the profile of this then I would suggest that you enter a request in the Ideas section:

https://community.esri.com/t5/arcgis-runtime-sdks-ideas/idb-p/arcgis-runtime-sdks-ideas

If you enter something here, I'll raise it with the team so it can be considered for a future release.

0 Kudos
SarthakMishra
New Contributor II

Sure. I've created a request in the ideas forum. Here is the link: https://community.esri.com/t5/arcgis-runtime-sdks-ideas/support-for-3d-analysis-in-the-nearest-point...