|
POST
|
I trimmed down my Wells Feature class to just 5 Wells and republished my service and the App will run and the Chart displays. The Chart seems static though and shows all records at once so I'm not sure what's going on there. I didn't think 2000 records would be that much for this to handle so I guess I will try to add the full 2000 record Wells layer as a layer and have the Chart pull off of a simplified Wells layer (maybe 20 records) in that same service. Thoughts?
... View more
03-11-2011
05:29 AM
|
0
|
0
|
1178
|
|
POST
|
Perhaps just slow because too much objects in the chart. How many features in your layer? If it's the case, the filtering by timeextent will help. The WellsFeatureLayer has 2,551 features is that too many? I tried commenting all the code in the codebehind out like you mentioned yesterday so I'm just using the code in XAML but it still locks up. I will uncomment all the codebehind code you provided me and wait a few more seconds before selecting anything in the Map to see if that works. My TimeSlider control is called MyTimeSlider so where you have this line in the codebehind does it need to say "== MyTimeSlider" or "== TimeEvent"? if (e.PropertyName == "TimeEvent")
SetLastObservations(); Also I attached my MainPage.XAML.cs as a text file in case you see any issues. Best regards,
... View more
03-11-2011
04:14 AM
|
0
|
0
|
1178
|
|
POST
|
You need to initialize the OutFields property of your feature layer : OutFields="*" or OutFields="EOM,Adj_Close" Sorry, I should have noticed that at your previous post but I missed the point. You beat me to the response 😉 Here is what I was typing.. If I add the below code where I declare my FeatureLayer and run my App I do not get the error above but when I select anything in the App I just get an hour glass. any idea why I get an hour glass? I'll keep testing <esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" >
<esri:FeatureLayer.OutFields>
<sys:String>EOM</sys:String>
<sys:String>Adj_Close</sys:String>
</esri:FeatureLayer.OutFields>
</esri:FeatureLayer>
... View more
03-11-2011
03:54 AM
|
0
|
0
|
1178
|
|
POST
|
You feature layer ID is WellsFeatureLayer (not WellsLayer).
Path=Layers[WellsFeatureLayer].Graphics
Hi Dominique- If I set it to WellsFeatureLayer then I get the attached error message (picture attached). It states an Object Reference is not set. Did I declare the WellsFeatureLayer correctly or did I need to publish my MapService as something more than just a MapService? <esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" />
... View more
03-11-2011
03:35 AM
|
0
|
0
|
1178
|
|
POST
|
No clue. Do you get something if you use the first version I gave that doesn't need any code:
<Charting:Chart>
<Charting:Chart.Series>
<Charting:ColumnSeries Title="Wind Speed" ItemsSource="{Binding ElementName=MyMap, Path=Layers[MyHurricaneFeatureLayer].Graphics}" IndependentValueBinding="{Binding Attributes[EVENTID]}" DependentValueBinding="{Binding Attributes[WINDSPEED]}"/>
</Charting:ColumnSeries>
</Charting:Chart.Series>
</Charting:Chart>
Hi Dominique- Thank you again for the fast response. I used just your code above and made some minor changes and I will post it below in case you see any problems. First, I'm not sure if this is the issue but I published my MSD to a MapService and that MapService is what I was calling in your code below. Do I need to publish it as more than a Mapservice because I'm not sure how the Chart will know which layer to use in my MapService. I tried just declaring a FeatureLayer but not sure if that was the way to do it. <esri:ArcGISDynamicMapServiceLayer ID="WellsLayer" Opacity="0.8"
Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer"
Initialized="ArcGISDynamicMapServiceLayer_Initialized" />
<esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" />
Second, below is my code of small changes I made in the chart. Any issue? I also attached a picture of the Attribute Table showing the two columns in my Wells Layer in my MapService that I need to use for this Chart. <charting:Chart HorizontalAlignment="Left" VerticalAlignment="Bottom">
<charting:Chart.Series>
<charting:ColumnSeries Title="Wind Speed" ItemsSource="{Binding ElementName=map1, Path=Layers[WellsLayer].Graphics}" IndependentValueBinding="{Binding Attributes[EOM]}" DependentValueBinding="{Binding Attributes[Adj_Close]}">
</charting:ColumnSeries>
</charting:Chart.Series>
</charting:Chart> Thoughts? I'm sure I'm forgetting something and that's why my Chart is not drawing. I feel this is very close to working.
... View more
03-10-2011
02:58 PM
|
0
|
0
|
1252
|
|
POST
|
In your project, add a reference to System.Windows.Controls.DataVisualization.Toolkit. and in your xaml, add this line: xmlns:Charting="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" Hi Dominique- The reference you gave me worked so now I'm trying to test all the code you provided. The Graph comes in my Silverlight just fine but when I run the website in my browser nothing ever gets drawn in the graph. No line or or anything. I'm testing to see if the Layer name I used instead of MyHurricaneFeatureLayer is an issue. I used your code nearly exactly accept changed MyHurricaneFeatureLayer to WellsFeatureLayer and the Attributes in my layer I need to use are in a column called EOM (X-axis) and column called Adj_Close (Y-Axis). If you have any suggestions I'd be glad to hear them. Thanks again Dominique Also, the WellsFeatureLayer is just from my Dynamic Layer but I added a line after the dynamic service in my XAML like this: <esri:FeatureLayer ID="WellsFeatureLayer" Url="http://serverprd02/ArcGIS/rest/services/SilverLightDir/Wells_Timeline/MapServer/0" />
... View more
03-10-2011
11:58 AM
|
0
|
0
|
1252
|
|
POST
|
If you need to get one line or one column by graphic, the ItemSources of your chart can be the Graphics property of your layer. Something like (based on this sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#TemporalRendererTracks) : Hi Dominique- Thank you for posting this reply. Where you are saying <Chart.Chart> what do I need to do to reference Chart so I can that part working?
... View more
03-10-2011
09:15 AM
|
0
|
0
|
1252
|
|
POST
|
I have not used LineSeries myself but if you look at the code and chart sample, you will notice that they set ItemsSource, IndependentValueBinding (X-axis) and DependentValueBinding (Y-axis). Hi Jennifer- Where is "Rainfall" and "Particulate" coming from? I can tell its affecting the X and Y axis but am not sure where exactly its coming from. Also what would I do differently to have it read from a layer in my Map? Thanks Jennifer
... View more
03-09-2011
02:26 PM
|
0
|
0
|
1252
|
|
POST
|
Hello All- I have a simple Silverlight Application that uses a Timeline and I just want to put in a simple Line Chart above the timeline that will dynamically change if possible. I've been looking at this link (http://www.silverlight.net/content/samples/sl4/toolkitcontrolsamples/run/default.html) but in the Line Series Section for the XAML I do not understand how they are passing the values to the chart. Does anyone have any good examples of code that show the chart linked to a layer in the Map? Many Thanks,
... View more
03-09-2011
12:48 PM
|
0
|
20
|
3406
|
|
POST
|
Hey, saw your post over at StackExchange, too. 🙂 Are you accessing the REST endpoint of your map service, i.e. http://servername/ArcGIS/rest/services/foldername/MapServer ? That error looks like you might be trying to hit a SOAP endpoint. Thanks Dan- You are correct. Thanks again for your help. Best regards,
... View more
03-09-2011
05:44 AM
|
0
|
0
|
342
|
|
POST
|
Please help, I'm not understanding this error. I have a simple Silverlight App with a Tiled layer ESRI service and a Dynamic Layer MapService (dynamic is running off same server as the silverlight app) and when I try to run my Silverlight App, I'm getting the attached error. Something to do with JSON and extraneous data, etc. I saw in one forum someone had mentioned that there might not be a clientaccesspolicy.xml file in the wwwroot folder so I downloaded one and place it in my inetpub/wwwroot folder but no luck. Thoughts?
... View more
03-08-2011
06:31 AM
|
0
|
2
|
604
|
|
POST
|
1. A feature dataset is also a workspace, so set your feature dataset as the environment workspace. 2. Iterate through each feature class in the workspace and delete it. I don't have ArcGIS 10.0 but in 9.3 it looks like this:
import arcgisscripting
gp = arcgisscripting.create(9.3)
gp.workspace = r"C:\workspace\fileGeodatabase.gdb\featureDataset"
for objFeatureClass in gp.listfeatureclasses():
gp.delete(objFeatureClass)
Try this in 10:
import arcpy
arcpy.env.workspace = r"C:\Temp\fileGeodatabase.gdb\featureDataset"
for objFeatureClass in arcpy.ListFeatureClasses():
arcpy.Delete_management(objFeatureClass)
many thanks Brad
... View more
02-09-2011
10:31 AM
|
0
|
0
|
636
|
|
POST
|
Does anyone have any sample code that will delete all featuresclasses in a featuredataset using arcpy? Many thanks for any help. Regards,
... View more
02-08-2011
10:58 AM
|
0
|
2
|
5139
|
|
POST
|
The error means that the FeatureClassName class does not have a public constructor, meaning that you cannot create a new instance of the class. You obtain a reference to this type of object from another class which is capable of accessing the private constructor and returning an instance of the class to you. In your particular case, one way to get the reference you're looking for is through IDataset.FullName. Neil do you know how I can fix this issue on the FeatureClassNameClass object without using IDataset.FullName? I'm not sure what has caused this. Could a custom class be created that could get this working on FeatureClassNameClass?
... View more
02-07-2011
04:53 AM
|
0
|
0
|
978
|
|
POST
|
Use something like below IFeatureClassName pOutFeatClassName = new FeatureClassNameClass(); I've tried that and I get two errors. FeatureClassNameClass has no constructors defined and Interop type FeatureClassNameClass cannot be embedded so use the applicable interface instead. Neil's suggestion makes sense although I still don't understand why FeatureClassName has no constructors defined. I'll try to see if I can use Dataset.FullName instead.
... View more
02-07-2011
04:11 AM
|
0
|
0
|
978
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-15-2023 01:27 PM | |
| 1 | 05-02-2017 11:40 AM | |
| 1 | 06-16-2010 08:09 AM | |
| 1 | 05-02-2017 10:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-16-2025
02:03 PM
|