Hi,
I am trying to do the following arcmap functionality in java arcobjects.
In ArcMap, I have a map in projected UTM nad27 17N. The map has two SDE layers: a point and polygon. The underlying datasets are both geographic Nad 27. I did a selection of a point and tried tried to get all the polygons that intersected that point + buffer 1000feet using the ArcMap select by location function. I got 10 selections.
Now I am trying to do a similar thing in ArcObjects on the GIS Server. I published the projected GIS Map on the server.
Using java arcobjects I called the method FeatureLayer.search on the polygon layer. The input geometry supplied was UTM 17n buffer around the point. But, I get only 8 results back.
After debugging, the problem seems to be that intersection calculation in FeatureLayer.search are being done in the projection of the native dataset(Geogrpahic). So I only get 8. But, arcmap seems to be doing it in the projection of the map.
Any help in this is appreciated.
Thanks,
Uday