POST
|
That seems to be the standard answer. Delete your user profile, templates, customizations, normal.mxt, etc. and try again. Sometimes this works, but I find that it is usually something deeper than that. Here's what I just figured out. 1) I was just able to build my complete tin without a crash by putting it in the default location (e.g. C:\Documents and Settings\Administrator\My Documents\ArcGIS\Default.gdb). 2) Note that the default location is in the Default.gdb, which is a File GDB. GDB's do not store TINs! Open catalog, navigate to that default.gdb and you will not see any tins in the listing. Go there using the standard file explorer and, bingo!, there's your folder containing your TIN. Cut/Copy and paste it outside the defualt.gdb folder and it shows up in Catalog. This is definitely a bug. You should not be able save a Tin within a File GDB! 3) I figured that perhaps working locally within that default location might help my problems. But, no. I still get the crashes when I try and add additional data to the local tin using Edit TIN. So this is VERY buggy! Let's just go back to ArcView 3.x where everything was simplified and it worked! Sorry for the rant, but as this software "progresses" it just seems to get more buggy and less efficient.
... View more
11-09-2011
11:14 AM
|
0
|
0
|
858
|
POST
|
Any progress on this? I'm running into the exact same problem. 1) I can create a tin from the breaklines, then try and add the mass points. Result, just the tin from breaklines, mass points are ignored. 2) Create the tin from mass points. Add the breaklines, breaklines are ignored. 3) Create a tin from mass points and breaklines, both are represented. 4) Try and add additional mass points to #3, no points are added! I need to do this in steps because if I try and run the entire study area (lidar mass points), ArcMap just crashes! This is on top of spending a half an hour just finding the darn Tin creation and editing functions that used to be in the Toolbar. The desktop hep doesn't even mention that all fo the functionality is now in the Toolbox!
... View more
11-09-2011
08:54 AM
|
0
|
0
|
858
|
POST
|
Hello. I'm running into problems adding an image layer (raster catalog) from a Map Server service as a BaseMap layer. I get the following error. "Layers added as Basemaps must be MapServer or ImageServer ArcGIS Server Web Services" All feature layers from this service work fine. Does ArgGIS Online not support raster catalogs? Here's the url for the image layer. http://gisportal.msl.mt.gov/arcgis/rest/services/application/Yellowstone_Hydrology/MapServer/54 Thanks! -Tony
... View more
08-15-2011
06:53 AM
|
0
|
1
|
349
|
POST
|
Well I went back into search mode for solutions and came up with a thread with similar issues. http://forums.arcgis.com/threads/21602-Zoom-To-Layer-Capability-in-TOC It looks like you can not access the Map from within the Legend, or something like that. In the end Paul ended up writing his own code in C to do the Zoom to Layer. I was able to adapt that to VB and it works just fine. Here's what I came up with. Private Sub ImageZoomToLayer_MouseLeftButtonDown(ByVal sender As System.Object, ByVal e As System.Windows.Input.MouseButtonEventArgs)
Dim strLayer As String = sender.Tag
Dim envLayer As ESRI.ArcGIS.Client.Geometry.Envelope = FindLayerExtent(strLayer)
'MessageBox.Show(envLayer.XMax.ToString)
MyMap.ZoomTo(envLayer)
End Sub
Private Function FindLayerExtent(ByVal desiredLayer As String)
Dim envLayer As ESRI.ArcGIS.Client.Geometry.Envelope = Nothing
Dim myLayerCollection As ESRI.ArcGIS.Client.LayerCollection = MyMap.Layers
Dim fl As FeatureLayer
For Each l In myLayerCollection
If TypeOf (l) Is FeatureLayer Then
fl = l
If (desiredLayer = fl.LayerInfo.Name) Then
MessageBox.Show(desiredLayer)
envLayer = fl.FullExtent
FindLayerExtent = envLayer
End If
End If
Next
End Function
... View more
07-11-2011
12:14 PM
|
0
|
0
|
499
|
POST
|
Some more information on this. When the button with the ZoomToLayerAction EventTrigger is placed in the Legend DataTemplate, the error shows up. If the button is placed anywhere outside the Legend DataTemplate it works fine. So, the question seems to be, "Can the ZoomToLayerAction EventTrigger be run from a legend?" "Or, is there some limitation to this?" "Is there a way to put a ZoomToLayer button within the legend template?
... View more
07-11-2011
11:20 AM
|
0
|
0
|
499
|
POST
|
Bump.... Jennifer? Or anyone at ESRI? Or anyone else, for that matter who would like to chime in. Thanks! -T
... View more
07-11-2011
09:04 AM
|
0
|
0
|
499
|
POST
|
Jenifer- A little nudge.... Any other thoughts on this? -T
... View more
07-06-2011
08:02 AM
|
0
|
0
|
499
|
POST
|
Hi Jennifer. Yes to both LayerID and TargetName. I just renamed both to see if it mattered and I got the same error.
... View more
07-01-2011
10:01 AM
|
0
|
0
|
499
|
POST
|
For today's challenge....ZoomToLayerAction. I'm having trouble with using an EventTrigger to fire the esri:ZoomToLayerAction. I'm trying to implement this in the menu template so that each layer in the menu has a "Zoom To Layer" button associated with it. I've succeeded in getting the Layer Actions sample to work http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#LayerActions). But I'm having trouble getting it to work in my application within the menu template. In order to get the sample to work I had to uninstall all of the Expressions Blend installations and reinstally the Blend 4 SDK. I also upgraded the API to 2.2 from 2.1. I don't get any compile errors. Here's the code from my legend template: <esri:Legend.MapLayerTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<CheckBox Content="{Binding Label}"
IsChecked="{Binding IsEnabled, Mode=TwoWay}"
IsEnabled="{Binding IsInScaleRange}"
>
</CheckBox>
<Image Height="15" Width="15" Source="/PlacePlay1;component/Assets/Images/InfoTag.png" MouseLeftButtonDown="Image_MouseLeftButtonDown" Tag="{Binding Label}" />
<StackPanel>
<Button Content="Zoom" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<esri:ZoomToLayerAction LayerID="MyFeatureLayer" TargetName="MyMap" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</StackPanel>
<Slider Maximum="1" Value="{Binding Layer.Opacity, Mode=TwoWay}" Width="50" />
<Image Source="{Binding ImageSource}" VerticalAlignment="Center" Height="20" Width="20" Margin="2,0"/>
</StackPanel>
</DataTemplate>
</esri:Legend.MapLayerTemplate> Right now I'm just using the same MyFeatureLayer as is used in the sample. The layer is in my map and it is displayed correctly. When I click on any of the resulting Zoom To Layer buttons in the legend I get the following error in the IE error window: "Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS STORE DMC2.6.3411.2) Timestamp: Thu, 30 Jun 2011 21:22:07 UTC Message: Unhandled Error in Silverlight Application Code: 4004 Category: ManagedRuntimeError Message: System.NullReferenceException: Object reference not set to an instance of an object. at ESRI.ArcGIS.Client.Actions.ZoomToLayerAction.Invoke(Object parameter) at System.Windows.Interactivity.TriggerAction.CallInvoke(Object parameter) at System.Windows.Interactivity.TriggerBase.InvokeActions(Object parameter) at System.Windows.Interactivity.EventTriggerBase.OnEvent(EventArgs eventArgs) at System.Windows.Interactivity.EventTriggerBase.OnEventImpl(Object sender, EventArgs eventArgs) at System.Windows.Controls.Primitives.ButtonBase.OnClick() at System.Windows.Controls.Button.OnClick() at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName) Line: 56 Char: 13 Code: 0 URI: http://localhost:4677/PlacePlay1TestPage.aspx" An error message also pops up (See attached graphic). Any thoughts? -T
... View more
06-30-2011
01:27 PM
|
0
|
12
|
1186
|
POST
|
Thanks! Got it. That is exactly where I was headed. Here's the result. Works like a charm. Dim myLayerCollection As ESRI.ArcGIS.Client.LayerCollection = MyMap.Layers
'Dim myLayerCount As Double = myLayerCollection.Count
'MessageBox.Show("Number of Layers in the Map:" + myLayerCount.ToString)
Dim fl As FeatureLayer
For Each l In myLayerCollection
If TypeOf (l) Is FeatureLayer Then
fl = l
fl.Visible = False
End If
Next
... View more
06-30-2011
09:41 AM
|
0
|
0
|
198
|
POST
|
This should be pretty simple, but I can't find an example of how to go about it. I have a map with around 40 FeatureLayers added. I have a request to add a Turn Off All Layers button so you can essentially clear the map of everything but the base layer. Can anyone point me in the right direction? VB.NET is preferable to C. Thanks!
... View more
06-29-2011
01:55 PM
|
0
|
2
|
828
|
POST
|
Looks like it might do the trick, but I'm having trouble implementing the code. First off, I'm in VB, C, so that may be an issue. But I can't get your first line to compile without error. I get: "Renderer is not a member of ESRI.ArcGIS.Client.Layer" And as long as we are at it, I'll need to be able to identify the correct layer, preferably by name, since about a dozen layers are being added and run through the same Legend_Refreshed event. I don't want to re-label the legend in every layer. I can't seem to find a Name/ID/etc. parameter that I can identify the layer with. A suggestion for future versions. Either have the renderer handle empty/null values in an attribute field the way the ArcGIS renderers do, or be able to put a Label on the Default value without having to use code in the Refreshed event. -Tony
... View more
05-31-2011
12:59 PM
|
0
|
0
|
306
|
POST
|
Dominique- I'm using 2.1 and am hesitant to go to 2.2 as it would require the client to be running in a Beta environment. I'd prefer a little snippet of code that fires when the check box for certain layers is clicked in the leged. For example on click if checked, then if layername = one of the names that is an OnDemand layer then run a refresh on that layer's data end if end if -T
... View more
05-31-2011
09:28 AM
|
0
|
0
|
164
|
POST
|
Hello. One more thing and hopefully I'm in good shape here. I have several layers that are large so I set the Mode to "OnDemand" so that more than the defalut 500 features are loaded. These layers are in my legend using legend templates and toggle on and off just fine once the data is loaded. It seems that the OnDemand mode requires some refresh event so that it knows to grab data. So when I click the layer on, check the box in the legend, the data is only displayed once I pan or zoom the map a little bit. So, how do I force the layer to load when I first click the check box in the legend? -T
... View more
05-30-2011
10:00 AM
|
0
|
2
|
489
|
POST
|
I think that this is simple, but it is eluding me. Using a UniqueValueRenderer, how do you handle Null values in the attribute field? I have a simple Attribute Field that is either "X" or is Null. Displaying the features that are attributed with "X" is simple. And I can get the features with Null to display if I use a DefaultSymbol to catch the uncategoriezed values. But I can't figure out how to get a Label in the legend for the DefaultSymbol. There appears to be a DefaultLabel property, but I can't seem to implement it. Here's what I have: <esri:UniqueValueRenderer x:Key="TrailsRenderer" Attribute="Snow">
<esri:UniqueValueRenderer.DefaultSymbol >
<esri:SimpleLineSymbol Color="#70A800" Width="1.5" />
</esri:UniqueValueRenderer.DefaultSymbol>
<esri:UniqueValueRenderer.Infos>
<esri:UniqueValueInfo Value="" Label="Non-Motorized" Symbol="{StaticResource TrailsNonMotorSymbol}" /> <esri:UniqueValueInfo Value="X" Label="Snowmobile" Symbol="{StaticResource TrailsSnomoSymbol}" />
</esri:UniqueValueRenderer.Infos>
</esri:UniqueValueRenderer> I either want the "Non-Motorized" to show up as used in the UniqueValueInfo, or use the DefaultValue, but be able to include a label in the Table of Contents. Thanks, as always! -T
... View more
05-27-2011
12:37 PM
|
0
|
4
|
930
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|