Does GeometryEngine operations need spatialreference attribute defined for the input geometries ?

466
3
01-08-2020 10:07 AM
Sai_PhaneendraPoludasu2
New Contributor III

Does GeometryEngine operations need spatialreference attribute defined for the input geometries ?

I have tried polygon intersection, where both the input geometries(and their vertex points) does not have any spatial reference defined which yielded no results whereas the polygon geometries should be intersecting

0 Kudos
3 Replies
AnnetteLocke
Esri Contributor

Hi Sai,

A spatial reference is not required for most of the GeometryEngine methods. For the Project and geodesic methods, you must have a spatial reference defined. The other methods use the tolerance of the spatial reference to determine if points that are close to each other should be considered equal. If you don't have a spatial reference defined, then a default tolerance is used. 

When you say that you tried GeometryEngine.Intersection with geometries that don't have a spatial reference, what do you mean that it yielded no results? Did it return an empty geometry, a null geometry, or throw an exception? It should work.

Annette

0 Kudos
Sai_PhaneendraPoludasu2
New Contributor III

Hi Annette,

Thanks for your response. It resulted in an empty polygon with 0 points. 

0 Kudos
AnnetteLocke
Esri Contributor

If the geometries are disjoint, then an empty geometry will be returned. Can you share your data?

0 Kudos