empty featureSet returned from query always has "point" geometry

629
1
01-05-2013 07:54 AM
MattCooper
Occasional Contributor
I noticed that with FeatureLayer:operation:didQueryFeaturesWithFeatureSet: if the query returns 0 records it always returns a featureSet with geometry type set as esriGeometryPoint even if the layer that was queried is a polygon or polyline layer.  Is that to be expected?

I needed to handle the results based on geometry type and so I was using featureSet.geometryType but it looks like that isn't reliable if your query will ever return 0 records.  I can work around this by using the featureLayer properties, but was just curious if empty featureSets always end up a point geometry.

Thanks,
Matt
0 Kudos
1 Reply
MichaelDavis3
Occasional Contributor III
I am also interested if anyone has seen this behavior before - empty featuresets always being returned as type "point".  This still seems to be the case in 10.2.2
0 Kudos