POST
|
So, i managed to debug my code and it seems the following part is not working anymore: IMapServer3 mapServer = serverObjectHelper.ServerObject as IMapServer3; IMapServerObjects3 mapServerObjects = mapServer as IMapServerObjects3; IMap map = mapServerObjects.get_Map(mapServer.DefaultMapName); I found that pre 10.1, this code would only work for MXD and not for MSD documents. ESRI says this: All map services now use the fast drawing engine that was associated with MSDs in versions 10.0 and previous. So it seems logic this piece of code would not work anymore. Anyone has an idea on how I get my IMap variable in 10.2? Thanks
... View more
07-28-2014
07:46 AM
|
0
|
1
|
328
|
POST
|
Hi, I'm updating a SOE from pre 10.1 arcgis server to arcgis server 10.2.2. I followed the instructions here and can build my REST SOE in visual studio without problems (for Any CPU as target). My mapservice works correctly. However, when selecting my SOE as a new capability and restarting that mapservice, I get the message: object reference not set to an instance of an object Any ideas on what I have to check to make sure the Mapservice can run with the SOE? Thanks!
... View more
07-24-2014
11:39 PM
|
0
|
2
|
5490
|
POST
|
Hi, I actually need two related things: 1) I have another points layer and I need to find the closest point at every moment in time 2) I want to draw a line between the ship and that point. This line thus has to move together with the ship while dragging it. I can do all this by grabbing the geometry in the MouseMove event. But I only want this geometry while dragging, and therefore i need to know when the dragging started. Thanks, Joris
... View more
06-09-2014
10:21 PM
|
0
|
0
|
384
|
POST
|
Hi, I created a sample project of it with Silverlight 5 and the 3.1 API. You can dowload it here To reproduce my problem: 1) Click on a ship. In the output window of VS, you see the Featurelayer.Buttondown, the Map.Buttondown, the Map.MouseButtonUp and the EditGeometry.Action.EditStarted are fired. The object is now focused and read to be dragged. 2) If you click again, you ONLY get LeftButtonUp event and EditCanceled action. So NO buttondown. 3) Click again on a ship to start editing, this gives the same as 1. 4) Click outside the focused object, you get the Map.ButtonDown and Map.ButtonUp 5) Hold your mouse left button down within the focused object. You see that there is NO Map.LeftButtonDown fired, nor a FeatureLayer.ButtonDown. 6) Drag the object and release: You get the MousLeftButtonUp and the GeometryMoved action. What I thus need I in step 5, a certain LeftButtonDown event. One of my thoughts was that from the moment you start editing, the object is transferred to a new object. And maybe I need NewObject.MouseLeftButton down. But I�??ve no idea on how to find that object. Do you maybe have an idea or trick to solve this? Thanks!
... View more
06-05-2014
02:34 AM
|
0
|
0
|
384
|
POST
|
Hi, Recently we updated from ArcMap 10.1 to 10.2.2. ArcGIS Server is still on 10.1. We have numerous GP and Mapservices that were published on ArcMap 10.1 and are still running without problems. I also published a Map service from ArcMap 10.2, with data in an Enterprise GDB that is registered, without any problems. Now I have a python script that uses data from the same DB and works perfectly in ArcMap 10.2. I can publish it but when I run it, it fails on the first arcpy.Exists(sdeconnection\\FeatureClass). According to this link I should however be able to publish form 10.2.2 to 10.1 without too many problems? Any ideas on what could be wrong? I guess it should be the data connection. But my Map service uses the same SDE, so my data should still be accessible. Thank you, Joris
... View more
06-03-2014
12:04 AM
|
0
|
1
|
755
|
POST
|
I did. With the same result... But how does the EditGeometry tracks the dragging then? Or is there maybe a way to drag a polygon with the first click? Now I have to make the polygon editable by clicking on it, and then I have to click again to drag it. Thanks, Joris
... View more
05-29-2014
01:15 AM
|
0
|
0
|
384
|
POST
|
Thanks for the reply! The problem is that, from the moment the editor.StartEdit is called, I don't receive any MouseLEftButtonDown events anymore. When the dragging is finished, I get the GeometryMoved action, I stop the editing, and then I get the 'MouseLeftButtonUp'. Any thoughts on how to get something similar to the MouseLeftButtonDown event when the editor is already started? Thanks, Joris
... View more
05-28-2014
02:26 AM
|
0
|
0
|
384
|
POST
|
Hi, I'm using the EditGeomtry class for moving polygons in a graphic layer, and I need to know when I'm dragging the graphic. First I click the polygon, this starts the editing session. Then I can drag it around. With the first click, both Map.MouseLeftButtonDown and Map.MouseLeftButtonUp are fired. When I then hold my left button to drag the graphic, the Map.MouseLeftButtondDown is not fired. When I release, Map.MouseLeftButtonUp does get fired. The problem is that I want the ButtonDown event to know that I started dragging the graphic. Or is there another property to indicate this? Map.MouseLeftButtonDown += (sender, e) =>
{
editor.StartEdit(graphic);
editing = true;
};
void editor_GeometryEdit(object sender, EditGeometry.GeometryEditEventArgs e)
{
if (e.Action.ToString() == "EditCanceled")
{
editing = false;
}
else if (e.Action.ToString() != "EditStarted")
{
editor.StopEdit();
editing = false;
}
}
Thanks
... View more
05-27-2014
06:21 AM
|
0
|
7
|
487
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|