.......................... MapServer mapServer = (MapServer) context.getServerObject(); IMap map = mapServer.getMap(mapServer.getDefaultMapName()); IEnumLayer maplayers = map.getLayers(null, true); ............................
In 10.1 you can use this code if you can connect ags 10 but if you connect with to 10.1 ags has been remove dcom connection.
What do you do in details?
IFeatureCursor featureCursor = new IFeatureCursorProxy(featureClass.IFeatureClass_insert(true)); IPoint point = new IPointProxy(context.createObject(Point.getClsid())); point.setX(pointX); point.setY(pointY); featureBuffer.setShapeByRef(point); featureCursor.insertFeature(featureBuffer);