POST
|
I believe NIM079055 is the correct number. I believe it was only fixed in 10.2.1 (and higher). Good luck getting the fix from support.
... View more
01-10-2014
09:06 AM
|
0
|
0
|
241
|
POST
|
You will be happy to know I received my response from ESRI support. Our recommendation for this case is to not use labels. This is documented here: http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/#/Using_a_GraphicTracker/0001000004tv000000/ At the bottom of the page you will notice the added section saying to not use labels. Who needs labels on a map anyway?
... View more
08-30-2013
03:42 AM
|
0
|
0
|
267
|
POST
|
I think this is closer to what you want. Keep in mind it may not plug into the rest of your code but I hope you get the idea. I removed the labeling code to make it a shorter example. //Added for syntax checking
IFeatureCursor pFeatCursor = null;
Int32 i = 0;
Int32 n = 0;
Boolean ValFound;
IGeoFeatureLayer pLayer = null;
//Added for syntax checking
IUniqueValueRenderer pRender = new UniqueValueRendererClass();
pRender.FieldCount = 1;
pRender.set_Field(0, "Field3");
pRender.UseDefaultSymbol = false;
//pFeatCursor = Intialize from your source
while (!(i == n))
{
IFeature pFeat = default(IFeature);
pFeat = pFeatCursor.NextFeature();
SimpleMarkerSymbol markerSYmbol = new SimpleMarkerSymbolClass();
IRgbColor color = new RgbColorClass();
int indefOfField = pFeat.Fields.FindField("Field3");
int fieldValue = 0;
object TPTYpeValue = pFeat.get_Value(indefOfField);
string tpTypeVal = TPTYpeValue.ToString();
bool isIntger = int.TryParse(tpTypeVal, out fieldValue);
if (!isIntger) //if not integer then assume value of 100 for blue
{
fieldValue = 100;
}
if (fieldValue == 0) //If value is 0 then assign Red color
{
color.Blue = 0;
color.Green = 0;
color.Red = 255;
markerSYmbol.Color = color;
markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle;
markerSYmbol.Size = 6;
}
else if (fieldValue == 50)
{
color.Blue = 0;
color.Green = 255;
color.Red = 0;
markerSYmbol.Color = color;
markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle;
markerSYmbol.Size = 20;
}
else
{
color.Blue = 255;
color.Green = 0;
color.Red = 0;
markerSYmbol.Color = color;
markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle;
markerSYmbol.Size = 14;
}
ValFound = false;
string w = fieldValue.ToString(); //0=Red, 50=Green, 100=Blue
for (Int32 uh = 0; uh < pRender.ValueCount; uh++)
{
if (pRender.Value[uh] == w)
{
ValFound = true;
break;
}
}
if (!ValFound)
{
ESRI.ArcGIS.Display.ISymbol symbol = (ESRI.ArcGIS.Display.ISymbol)markerSYmbol; // Explicit Cast
pRender.AddValue(w, null, symbol);
}
}
pLayer.Renderer = (IFeatureRenderer)pRender;
... View more
08-20-2013
06:11 AM
|
0
|
0
|
195
|
POST
|
I was hoping for transparency as well and noticed this in the documentation for the "IGraphicTracker.SetTransparency" method. Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.
... View more
08-19-2013
11:33 AM
|
0
|
0
|
301
|
POST
|
You can find a sample when you install the EDN in the following location (Windows 7 64-bit) C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsNet\GraphicTrackerMap I assume the 32-bit path would be: C:\Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsNet\GraphicTrackerMap See the following link for limitations regarding Dynamic Display. http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000004t000000
... View more
08-19-2013
11:25 AM
|
0
|
0
|
262
|
POST
|
Although I am not giving up, here is part of the response from ESRI support. It is recommended that not to use labels when using the GraphicTracker to display moving points. For performance reasons the Graphics in the GraphicTracker draw in the same phase as labels. Therefore labels may conflict with the graphics, cause flickering, and slowdown the overall performance of the GraphicTracker. I don't understand this since the graphics themselves are drawn on top of everything else on the map. The placement of labels (for map layers) and graphics on the tracker do not position themselves in relation to each other to improve visibility. The graphics are always drawn exactly where you tell them. The only other thing I can think of is to use annotation layers instead of standard dynamic map labels. The problem is that takes time to do and many of my users would not know how to do this.
... View more
08-19-2013
10:07 AM
|
0
|
0
|
267
|
POST
|
I only mentioned these things because I am also using the GraphicsTracker for an application receiving constant GPS data and I support a function that "follows" a graphic around the map as it moves. Essentially the same thing as dachenbach. The blip mentioned sounded like the flashing I see but perhaps it is different.
... View more
08-19-2013
09:45 AM
|
0
|
0
|
362
|
POST
|
I do create the graphic once and then move the graphic. The graphic tracker graphics do get refreshed because labeling and graphics are drawn in the same drawing phase. This happens when I pan the map. I have an open incident with ESRI regarding this.
... View more
08-19-2013
09:34 AM
|
0
|
0
|
362
|
POST
|
The problem is that v10 locators only use the "iSimpleStandarization" interface. What we do is detect the version of the locator: either v10 or prior. For version 10 locators (or higher) we can use this. Dim standardize As ESRI.ArcGIS.Location.ISimpleStandardization = locator
StandardizedPropertySet = standardize.SimpleStandardizeAddress(Address)
StandardizeFields = standardize.SimpleStandardizeFields() For version 9.3.1 or prior locators, the old code should work just fine. The trick then is to determine what type of locator you have (v9.3.1 or v10). If TypeOf m_pLocator Is ESRI.ArcGIS.Location.IGeocodingProperties2 Then
'You have a version 10 locator
End If
... View more
08-19-2013
09:24 AM
|
0
|
0
|
197
|
POST
|
Yes you can convert the coordinates between different systems. You must know the coordinate system of the source data though. If you know the spatial reference of the source just plug it in below along with the source x/y coordinates (via "PutCoords"). Once you execute the "Project" method with the desired spatial reference, you can query the X, Y (via "QueryCoords") to get the new coordinates. Dim NewPoint As ESRI.ArcGIS.Geometry.IPoint = New ESRI.ArcGIS.Geometry.PointClass
NewPoint.SpatialReference = _sourceSpatialReference
NewPoint.PutCoords(SourceX, SourceY)
NewPoint.Project(_desiredSpatialReference)
NewPoint.QueryCoords(X, Y)
... View more
08-19-2013
06:46 AM
|
0
|
0
|
477
|
POST
|
I have been trying to use the GraphicsTracker for a similar purpose. When I add graphics to the graphic tracker, I get a flashing effect when any of the map layers have labels turned on. If I turn off the labels for those layers, then the flashing goes away. Also, enabling Dynamic Display will stop the flashing but there are many known limitations with Dynamic Display. See the link. http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000004t000000
... View more
08-19-2013
06:21 AM
|
0
|
0
|
362
|
POST
|
It was not too difficult overall, but was tricky to get it to work without redrawing all my objects (caused annoying flickering), so I had to put them into different layers to get them to draw independently. Do the items that update flicker?
... View more
04-09-2013
12:53 PM
|
0
|
0
|
241
|
POST
|
In 10.1 you have the "Runtime" and "Engine" (formerly ArcEngine Runtime). The "Runtime" is a new separate product and requires a rewrite for any version 10.0 code you have. We have some developers who made a very promising prototype with the "Runtime". The graphics outperform anything I have seen from ESRI so far. The demo I saw (developed in house) had hundreds of items moving around the screen with very low CPU usage and very low memory footprint (hundreds of kilobytes instead of megabytes). I cannot say if there are "Easter eggs" waiting to be discovered here but we will do more testing no doubt. Although it would require a rewrite of code, it may be worth your time to investigate. So far I have been burned by DynamicDisplay and now the GraphicTracker...
... View more
04-09-2013
12:50 PM
|
0
|
0
|
414
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|