POST
|
We found the error to be related to a file (tif) that had a file attribute of AT. The problem was the T portion, which refers to "Temporary." To remove the temporary portion we ran a PowerShell script: PS C:\> Get-childitem D:\Data -recurse | ForEach-Object -process {if (($_.attributes -band 0x100) -eq 0x100) {$_.attributes = ($_.attributes -band 0xFEFF)}} This script removes the temporary from all files in the folder. Here is the link to the PowerShell solution: Attrib - Edit file attributes | Windows CMD | SS64.com
... View more
08-13-2014
08:54 AM
|
0
|
0
|
905
|
POST
|
I think I solved it... MyMap.Layers.Clear();
MyMap.Extent = new Envelope(); Then add new layers.
... View more
07-11-2012
12:15 PM
|
0
|
0
|
275
|
POST
|
I would like to completely reset the extent of a map. I have tried: MyMap.Extent = new Envelope(); This does not work. It keeps the original extents even after I have deleted all the layers in the map. Any recommendations? Basically I'm refreshing the map with all new added layers and need a new extent.
... View more
07-11-2012
11:44 AM
|
0
|
2
|
2131
|
POST
|
Well I found my mistake. I had some C# code assigning the graphics into the wrong graphics layer. Symbology works fine now.
... View more
06-18-2012
01:51 PM
|
0
|
0
|
167
|
POST
|
I have a graphics layer that has graphics populated, but I am unable to see the graphics in the map. I know the graphics exist because it is possible to zoom to selected graphics. I am currently using the same working renderer methodology for lines and polygons, but it is not working for points. The point graphics layer does show the symbol correctly in the legend, just nothing is showing up in the map. <esri:SimpleRenderer x:Key="SelectRendererPoint">
<esri:SimpleRenderer.Symbol>
<esri:MarkerSymbol>
<esri:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<Ellipse x:Name="Element" Width="8" Height="8" Fill="blue" Stroke="blue" HorizontalAlignment="Center" VerticalAlignment="Center">
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="SelectionStates">
<VisualState x:Name="Unselected" />
<VisualState x:Name="Selected" >
<Storyboard>
<ColorAnimation Storyboard.TargetName="Element"
Storyboard.TargetProperty="(Ellipse.Fill).(SolidColorBrush.Color)"
To="#99FFFF00" Duration="00:00:0.25"/>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Ellipse>
</ControlTemplate>
</esri:MarkerSymbol.ControlTemplate>
</esri:MarkerSymbol>
</esri:SimpleRenderer.Symbol>
</esri:SimpleRenderer> <esri:GraphicsLayer ID="MyGraphicsLayerPoints" Renderer="{StaticResource SelectRendererPoint}"></esri:GraphicsLayer> What would cause the point graphics layer that contains graphics to not show the renderer symbology?
... View more
06-08-2012
08:21 AM
|
0
|
2
|
361
|
POST
|
Well...I can't believe it. It looks like the main issue I have been having was I had the feature layers Shape fields turned off when I created the Map Services.
... View more
06-06-2012
12:28 PM
|
0
|
0
|
410
|
POST
|
I'm currently struggling with the query returning the attributes okay, but graphics are always null. I tried the featurelayer code with no success. Does the service have to have Feature Access selected? Currently the service has just Mapping.
... View more
06-05-2012
02:12 PM
|
0
|
0
|
410
|
POST
|
Most of my logic is in C#. I suspect my issue is the relationship of the featurelayer and graphics layer. Here is some of my code: The Query: for (int i = 0; i < theSubLayers.Count(); i++)
{
theLayInfo = (LayerInfo)theSubLayers.GetValue(i);
if (theLayInfo.Name == theActiveLayerName)
{
//Do a query to return all the records for the featuredatagrid
QueryTask theQueryTask = new QueryTask();
theQueryTask.ExecuteCompleted += Query_ExecuteCompleted;
Query theQuery = new Query();
theQuery.ReturnGeometry = true;
theQuery.Where = "1=1";
theQuery.OutSpatialReference = MyMap.SpatialReference;
theQuery.OutFields.Add("*");
theQueryTask.Url = dynamicLayer.Url + "/" + i.ToString();
theQueryTask.ExecuteAsync(theQuery, "initial");
break;
}
} The Query_ExecuteCompleted: FeatureLayer theFeatureLayer = new FeatureLayer();
FeatureSet theFeatSet = args.FeatureSet;
if (theFeatSet != null && theFeatSet.Features.Count > 0)
{
GraphicsLayer theGraphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer;
theGraphicsLayer.Graphics.Clear();
foreach (Graphic theGFeature in theFeatSet.Features)
{
theGraphicsLayer.Graphics.Insert(0, theGFeature);
}
featureDataGrid1.GraphicsLayer = theGraphicsLayer;
//Set renderer to the graphics layer
IRenderer theRenderer;
theRenderer = grid1.Resources["SelectRenderer"] as ESRI.ArcGIS.Client.IRenderer;
theGraphicsLayer.Renderer = theRenderer;
}
... View more
05-18-2012
09:25 AM
|
0
|
0
|
410
|
POST
|
No this is not supported. FeatureDataGrid.GraphicsLayer must be of type GraphicsLayer. FeatureLayer for example inherits from GraphicsLayer. You can either perform a query on this sub layer URL and put the results in a GraphicsLayer or create a FeatureLayer with this sub layer URL, then use this layer to set FeatureDataGrid.GraphicsLayer property. I am struggling to get the "zoom to selection" and "auto zoom to selected" to work after performing a query on the sub layer URL and putting the results in a GraphicsLayer. Eric
... View more
05-17-2012
08:09 AM
|
0
|
0
|
410
|
POST
|
I know in ArcMap it is under the Customize menu, ArcMap Options, General tab, click on "Make relative paths the default for new map documents"
... View more
01-25-2011
07:49 AM
|
0
|
0
|
127
|
Online Status |
Offline
|
Date Last Visited |
a month ago
|