|
POST
|
Also good to note that the Line that intersects the two polygons has the same Unique value in the API column as the two polygons. So now that I know how to isolate which polygons and line, how can I determine length of the line in each of those polygons and return those values? I assume I just need to write a python script that can be added to my model?
... View more
04-06-2011
12:57 PM
|
0
|
0
|
1573
|
|
POST
|
Using Model builder in 9.3, how can I determine if a line is intersecting more than one polygon and if so what the lengths would be in each of those polygons? Thank you for any advice. -best regards
... View more
04-06-2011
12:38 PM
|
0
|
9
|
1716
|
|
POST
|
Hello jvickrey79, Did you solve the ImportMetadata error ? I have the same error when exporting metadata ??? -------------------------------------------------- Traceback (most recent call last): File "D:\ExportMeta_FromModelBuilder_V2.py", line 24, in <module> arcpy.ExportMetadata_conversion(SDELAYER, ESRI_ISO2ISO19139_xml, export_xml) File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 349, in ExportMetadata raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000816: The tool is not valid. Failed to execute (ExportMetadata). -------------------------------------------------- Even when I use this code from the onlinehelp it doesn't work ???? -------------------------------------------------- # http://help.arcgis.com/fr/arcgisdesktop/10.0/help/index.html#/na/00120000000t000000/ import arcpy from arcpy import env env.workspace = "C:/data" #set local variables dir = arcpy.GetInstallInfo("desktop")["InstallDir"] translator = dir + "Metadata/Translator/ESRI_ISO2ISO19139.xml" arcpy.ExportMetadata_conversion ("data.gdb/roads", translator, "roads_19139.xml") -------------------------------------------------- Thank you !... Hi Daniel. I got what I needed working using the below code. # Local variables...
sde_DEVGIS_Wetlands = "Database Connections\\HOU-SRVRNPRD2 (devgis - sde).sde\\sde.DEVGIS.DevelopmentAndTesting\\sde.DEVGIS.Wetlands"
Wetlands_xml = "K:\\GIS Data\\Metadata\\Wetlands.xml"
arcpy.MetadataImporter_conversion(Wetlands_xml, sde_DEVGIS_Wetlands)
... View more
03-28-2011
09:29 AM
|
0
|
0
|
749
|
|
POST
|
I just looked at your code-behind to see what your FeatureLayer_Initialized event handler does. The issue is that you are setting your time slider intervals three times: 1 when your ArcGISDynamicMapServiceLayer is initialized, and 2 when your FeatureLayers are initialized. The odd behavior that you were experiencing is because the time slider takes the setting of the last layer that initialized and the order of when these layers are initialized is random. Since your TimeSlider Start and End times are set from your WellsLayer (ArcGISDynamicMapServiceLayer), you need the intervals of this layer and not the FeatureLayers'. Hi Jennifer- So in short, you are saying I can just remove the FeatureLayer_Initialized event handlers since my TimeSlider is just using the ArcGISDynamicMapServiceLayer_Initialized handler?
... View more
03-21-2011
11:46 AM
|
0
|
0
|
930
|
|
POST
|
Hi Chris and Jennifer- I was using FeatureLayer_Initialzied on both of the FeatureLayers and using ArcGISDynamicMapServiceLayer_Initialized on the DynamicMapService at the same time. If I remove the FeatureLayer_Initialzed from the two FeatureLayers it appears to work right. Is this ok to do?
... View more
03-21-2011
04:05 AM
|
0
|
0
|
930
|
|
POST
|
In your application, can you try to replace the URL with services from a sample server and does it reproduce the same behavior that you described? Can you share your code on how you defined the FeatureLayer and ArcGISDynamicMapServiceLayer? Please provide us with steps that will allow us to replicate this. Thank you. Hi Jennifer- attached is my XAML and my Codebehind. I tried replacing my DynamicServices with services from ESRI and it seemed to work fine. As mentioned above the strange thing is if I just use my DynamicMapService in the attached Silverlight App then it seems to work fine. If I add in my FeatureLayers and run the TimeSlider the FeatureLayers always seem to run correctly and most of the time the DynamicService will not run correctly (flashes like its building the cache but after multiple iterations it still does the same thing, very rarely does it cache right the first time. but if I run the simplified Silverlight App (only has the dynamic layer) for one iteration and then run the Silverlight App that has my dynamiclayer and the featurelayers it usually runs well.
... View more
03-18-2011
03:41 AM
|
0
|
0
|
930
|
|
POST
|
Which layer are you having an issure with? FeatureLayer or DynamicLayer? Can turn off the visibility of the other layers and look at how a single layer is performing. What is it that you want to cache graphics from feature layer or tiles from dynamic service? Hi Chris- I'm having an issue with the DynamicLayer. The DynamicLayer has only two layers and one of the layers has about 30,000 features and each layer is Time enabled. Now if I create a Silverlight App that just shows that DynamicService and I run the TimeSlider it usually runs perfect. When I add a FeatureLayer to this Silverlight app and run the TimeSlider almost always the DynamicService flashes on and off (as if its caching?) but the FeatureLayer always seems fine. Funny thing is if I run the TimeSlider in a silverlight App with just that DynamicService One Time, pause it after the first run, open a new browser window and then run the Silverlight App that has the DynamicService And the FeatureLayer then it will usually run perfectly. Almost as if it uses the cache from the simplified Silverlight app. Besides the above issue I can't also explain this: If at any time my machine locks out (you know after 10 minutes most admin settings force the machine to lock) and I log back in my App seems to lose its cache and has to run another iteration on the TimeSlider to recreate.
... View more
03-17-2011
11:45 AM
|
0
|
0
|
930
|
|
POST
|
Does anyone have any detailed pointers they can give me on caching with Silverlight? I'd love to hear a detailed analysis on caching with the Timeline tool but if not then just caching with Silverlight and how exactly that works might be beneficial to me. Thank you very much.
... View more
03-17-2011
06:35 AM
|
0
|
0
|
930
|
|
POST
|
I have a Silverlight App that just has a DynamicMapServiceLayer, a TiledMapServiceLayer, and a FeatureLayer. The DynamicMapService just has two layers but one layer has about 30,000 features. I have set TimeEnabled on the two layers in the DynamicMapService. Now when I run the TimeSlider Tool in the Silverlight App, sometimes it will flash the features through the first iteration of the TimeSlider and then appears to get everything showing on the second iteration (I assume because its caching everything on first iteration?). Then there are times when I run this Web App and it will go through multiple iterations of the TimeSlider and always just flashes the features for a second and dissapears for multiple seconds and never seems to fully show everything. Can someone explain what is going on here and how I might be able to get this working everytime I open the App? Thank you very much. Regards,
... View more
03-16-2011
10:19 AM
|
0
|
9
|
1327
|
|
POST
|
Josh, The Map.TimeExtent property is the range of dates you want to see. Each Graphic object has a TimeExtent property when the Graphic.TimeExtent property is within a valid range of the Map.TimeExtent property the graphic is made visible. In the example I linked the Map.TimeExtent property is bound to the TimeSlider control as the Thumbs move the TimeExtent property of the map is changed thus hiding or showing graphics on the map. Thanks Chris- That helped me figure it out. Best regards,
... View more
03-15-2011
01:40 PM
|
0
|
0
|
429
|
|
POST
|
Hi Dominique- In the timeline samples on ESRI site I notice a layer will appear and disappear (I'm guessing based on StartDate and EndDate) as the timeslider slides. I'm trying to mimick this but cannot get it to work. My data just appears as the days go by in my timeslider and never disappear on their enddate.
... View more
03-15-2011
06:11 AM
|
0
|
0
|
213
|
|
POST
|
What is the TimeMode you are using of the TimeSlider. By default the TimeSlider is set to cumulative which locks the minimum thumb to the start and allows the maximum thumb to freely move showing you everything from start to where you maximum thumb is on the slider. there are two other modes of the time slider, TimeInstant and TimeExtent. TimeInstant places both thumbs directly on top of each other only querying graphics that match the current DateTime down to the exact millisecond. the TimeExtent allows both thumbs to move freely letting you examine a range of dates. Here is a link to one of the examples of working with time aware data and the time slider in our SDK http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#TimeFeatureLayer Hi Chris- In the example link you gave me, how is the data appearing and disappearing? That is exactly what I need to do but I don't understand how that is happening. Is a definition query in the map service or something? -Josh
... View more
03-15-2011
04:16 AM
|
0
|
0
|
429
|
|
POST
|
I have a Silverlight App that shows Wells features based on a time event (Start_Date). There is (End_Date) field on that feature that I would like to remove the feature from the map when TimeSlider is past. How can I do this? Many thanks for any help.. -Josh
... View more
03-14-2011
01:09 PM
|
0
|
4
|
967
|
|
POST
|
Check with the debugger that SetLastObservations is being called when the time extent changed. It's likely only an optimization matter. A chart can handle 2000 objects but with this binding ItemsSource="{Binding ElementName=MyMap, Path=Layers[MyHurricaneFeatureLayer].Graphics}", as Graphics is an observable collection, the chart is reinitialized each time a graphic is added to the feature layer so 2000 times in your case. Hovever the timeextent filtering should reduce this number. How many features are displayed at a time? If you have too ma,y features, you can optimize by replacing the ObservableCollection by a simple collection (IEnumerable) and by firing by yourself the PropertyChanged event each time the collection changed (or another option is to use a dependency property, up to you). After debugging multiple times, it appears that the program always errors when adding the graphics to LastObservations. I've tried it with a FeatureClass that only has 5 records and I've tried it with my original FeatureClass of 2000 records but always errors at LastObservations.Add(g); Funny thing is that on the Chart, the Date for the first feature will appear in my X-Axis but no line graph is drawn and then the error occurs. It's very close it seems to working. I deeply appreciate all your help Dominique and look forward to hearing from you. -Regards,
... View more
03-11-2011
10:37 AM
|
0
|
0
|
1109
|
|
POST
|
Hi Dominique- I found out why nothing was drawing on my Chart after repointing my data back to the 2000 record Wells Feature Class. The If Statement in map1_PropertyChanged was never entering SetLastObservations(), so I changed the If condition to where it does enter SetLastObservations. But now I'm getting an error inside SetLastObservations inside the foreach loop. The error is attached. Do I need to actually have a graphics layer present in my Map? Could that be what is causing the error?
... View more
03-11-2011
09:23 AM
|
0
|
0
|
1109
|
| 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
|