Currently i am developing a Server Object Extension. On my project i am creating a new line class with
LineClass myLine = new LineClass();
and getting a polygon from client as JsonObject than converting this polygon to IPolygon with

i guess i need to use a function like ESRI.ArcGIS.ADF.ArcGISServer.Converter.ComObjectToValueObject, but i dont have and use adf on my soe, any ideas or similar function for soe?
–
bahadirJun 6 '12 at 9:16

1 Answer
1

All the geometry objects you have created (either by deserializing from JSON or instantiating them with new) are COM objects and are created in the same process space.

Your issue probably stems from the fact that the ITopologicalOperator.Intersect method works only on high-level geometries
(see the Remarks section in the link). Line is not a high-level geometry, whereas Polyline is, that's why your first call of Intersect works and the other does not. You will need to represent your line with a Polyline instance instead.