POST
|
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? Actually am adding feature to Featurelayer. Its works fine in ags 10
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);
... View more
01-31-2013
03:16 AM
|
0
|
0
|
226
|
POST
|
How to get MapServer object in ArcGIS 10.1? In ArcGIS 10 I used the following code.
..........................
MapServer mapServer = (MapServer) context.getServerObject();
IMap map = mapServer.getMap(mapServer.getDefaultMapName());
IEnumLayer maplayers = map.getLayers(null, true);
............................
... View more
01-30-2013
11:57 PM
|
0
|
3
|
712
|
POST
|
How to connect to ArcGIS server using java API in ArcGIS Server 10.1. Its working in 10. Following code is the working code for ArcGIS Server 10. ServerInitializer serverInitializer = null; ServerConnection connection = null; serverInitializer = new ServerInitializer(); serverInitializer.initializeServer("domain", "username", "password"); try { connection = new ServerConnection(); connection.connect("host"); } catch (AutomationException ae) { System.err.println("Caught AutomationException: " + ae.getMessage() + "\n"); ae.printStackTrace(); } catch (IOException e) { System.err.println("Caught IOException: " + e.getMessage() + "\n"); e.printStackTrace(); }
... View more
01-30-2013
02:32 AM
|
0
|
3
|
391
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|