|
POST
|
thanks Vishes. I was referring to the sample here Search multiple sources | ArcGIS API for JavaScript. It works for one single field as displayField like below, displayField : "DISTRICT", Is there an option to display multiple fields or concatenate two fields as displayField like below. displayFields: ["DISTRICT", "NAME"] Or displayField: "DISTRICT" + "NAME" We are trying to avoid map service change to display concatenated results to user. Thanks and Regards, Shay
... View more
06-04-2015
04:57 PM
|
0
|
0
|
736
|
|
POST
|
Hi All, Exploring esri search widet for version 3.13. It's great widget and very easy to configure. It saved lot of development time to come up with such widget. I was wondering, if displayField can have multiple fields or combined like below. Basically i was trying to avoid us to change the map service changes to add new field with combined results. displayFields : ["DISTRICT", "NAME"] Or displayFields: "DISTRICT" + "NAME" Thanks in advance. Thanks and Regards, Shay,,,
... View more
06-04-2015
12:29 PM
|
1
|
2
|
4062
|
|
POST
|
Hello Steve G, I just saw in your sample PermitView. It's so smooth and good app with jquery that i saw in a while. I was looking for such examples. One thing i noticed that in your print map, there were buffer circles in the final map. I was wondering, how were you able to get buffer graphics exported to map? Did you use buffer_analysis inside of your python script or did you export graphics from javascript and sent it to export_map? http://www.sloplanning.org/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_225bd9c041ac4ca5b7… Thanks and Regards, Shay~
... View more
02-09-2015
06:22 PM
|
0
|
0
|
1703
|
|
POST
|
Hi, I was looking into options to Export Map using ArcPy and Javascript client. I have a point geometry that i get it from javascript client and i pass the point to Toolbox that i published on ArcGIS Server. The question i had was, how do i show buffer with say "10 miles" on the exported map (PDF or PNG) format? I tried using the Buffer_analysis sample inside the python script from the sample below but output PDF does not show the buffer circle. http://blogs.esri.com/esri/arcgis/2010/02/23/how-do-i-use-arcpy-geometry-objects-in-scripting/ Thanks and Regards, Shay ~
... View more
02-09-2015
05:47 PM
|
0
|
2
|
4505
|
|
POST
|
Hello Aaron, Did you find the fix for it? I am seeing the similar behavior. Thanks and Regards, Shay ~ Hi, I'm intermittently experiencing an error when rapidly changing map scales (i.e. from very large to very small, or vice-versa) wherein my application will crash. It appears that the LayerCanvas.ArrangeOverride is, for some reason, attempting to set an invalid Width property on the FrameworkElement's dependency property. Based on this link, it appears that the issue was carried over from the Silverlight API: http://stackoverflow.com/questions/14051823/unhandled-error-in-silverlight-application-code-4004-system-argumentexception. Has anyone else encountered this problem and been able to work around it? The following is a snippet of the stack trace with the offending method: System.ArgumentException: '-907.750834278924' is not a valid value for property 'Width'.
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at System.Windows.FrameworkElement.set_Width(Double value)
at ESRI.ArcGIS.Client.LayerCanvas.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) Thanks, Aaron
... View more
01-22-2014
07:19 AM
|
0
|
0
|
445
|
|
POST
|
Hello, I am using ArcGIS Runtime SDK for WPK - 10.1.1 with source map data as tile package. One thing, I noticed that my labels gets smaller at certain scale levels for packages that contains layer labels turned on. I used SnapToLevels ="True". But that slow down the zoom in/out operation , since Application tries to zoom to nearest scale level. This is not an option for me as we also want our users to be able to zoom to exact scale (e.g. 8600 or 5200 etc). I was wondering, if there is any setting in arcmap that can be done. This is my tile package scheme that i am using. Was wondering, if anything wrong. <?xml version="1.0" encoding="utf-8" ?> <TileCacheInfo xsi:type='typens:TileCacheInfo' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/10.1'> <SpatialReference xsi:type='typens:GeographicCoordinateSystem'> <WKT>GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4326]]</WKT> <XOrigin>-400</XOrigin> <YOrigin>-400</YOrigin> <XYScale>11258999068426.24</XYScale> <ZOrigin>0</ZOrigin> <ZScale>1</ZScale> <MOrigin>-100000</MOrigin> <MScale>10000</MScale> <XYTolerance>8.983152841195215e-009</XYTolerance> <ZTolerance>2</ZTolerance> <MTolerance>0.001</MTolerance> <HighPrecision>true</HighPrecision> <LeftLongitude>-180</LeftLongitude> <WKID>4326</WKID> <LatestWKID>4326</LatestWKID> </SpatialReference> <TileOrigin xsi:type='typens:PointN'> <X>-114.362082</X> <Y>51.267074999999998</Y> </TileOrigin> <TileCols>512</TileCols> <TileRows>512</TileRows> <DPI>96</DPI> <PreciseDPI>96</PreciseDPI> <LODInfos xsi:type='typens:ArrayOfLODInfo'> <LODInfo xsi:type='typens:LODInfo'> <LevelID>0</LevelID> <Scale>500000</Scale> <Resolution>0.00118973050291514</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>1</LevelID> <Scale>250000</Scale> <Resolution>0.00059486525145757002</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>2</LevelID> <Scale>125000</Scale> <Resolution>0.00029743262572878501</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>3</LevelID> <Scale>64000</Scale> <Resolution>0.00015228550437313792</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>4</LevelID> <Scale>32000</Scale> <Resolution>7.6142752186568962e-005</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>5</LevelID> <Scale>16000</Scale> <Resolution>3.8071376093284481e-005</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>6</LevelID> <Scale>8000</Scale> <Resolution>1.903568804664224e-005</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>7</LevelID> <Scale>5000</Scale> <Resolution>1.1897305029151402e-005</Resolution> </LODInfo> <LODInfo xsi:type='typens:LODInfo'> <LevelID>8</LevelID> <Scale>3000</Scale> <Resolution>7.138383017490841e-006</Resolution> </LODInfo> </LODInfos> </TileCacheInfo> I noticed labels gets smaller between following scale ranges. 1. Between Scale 48,000 and 30,000 2. Between Scale 24,000 and 16,000 3. Between Scale 12,000 and 8,000 4. Between Scale 5300 and 3500 Note: labels are not from the annotation layer type here, but they are maplex label engine rendered labels. Thanks and Regards, Shay ~
... View more
01-15-2014
11:47 AM
|
0
|
0
|
870
|
|
POST
|
Hello, I am able to get the Engine Editor working in our Engine Application. But i am not able to get the Undo/Redo button enabled correctly. What i noticed is, Editor toolbar Undo/Redo buttons works the first time (after creating a toolbar in code behind using AxToolbar and adding Engine Editor Controls). For example, i create a feature between following code block editor.StartOperation(); and editor.StopOperation(GUID); But after closing the Toolbar and reopening a same Toolbar second time (without shutting down the application), Undo/Redo button never gets enabled even if my same code block for create a feature is executed. I can add , delete feature just fine but Undo/Redo doesn't get enabled. My data is in file geodatabase, could it be because of the file lock as file is locked even if the Editor is not in Editing mode? Saw the similar behavior on ESRI's EditingUsingCustomForm sample as well. Web link, http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000007s000000 Directory Location. C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\Samples\ArcObjectsNet\EditingUsingCustomForm\CSharp Thanks and Regards, Shay ~
... View more
10-08-2013
05:02 PM
|
0
|
0
|
724
|
|
POST
|
All, I am in a unique situation to symbolize point layer. For example, I have a point Layer that has following attributes. Field1, Field2, X, Y, Field3, Field4, Field5 1,1,-71.438467,41.825945,egsq,price rite - eagle square,0,0,0 0,2,-71.438467,41.825945,016495,PRICE RITE EAGLE SQUARE,16495,0,0 0,0,-71.438511,41.826,50 2,0,-71.438041,41.82638,0 I wanted to symbolize based upon Field values with the following criteria. Field3 = 50 , Then color is Green Field3 = 0, Then color is blue. How to achieve this using IUniqueValueRenderer? I am using following code snippet ... #region loop for featurecursor while (!(i == n)) { //System.Threading.Thread.Sleep(1000); IFeature pFeat = default(IFeature); pFeat = pFeatCursor.NextFeature(); ISimpleRenderer simpleRender = default(ISimpleRenderer); simpleRender = new SimpleRenderer(); IUniqueValueRenderer pRender = default(IUniqueValueRenderer); pRender = new UniqueValueRenderer(); pRender.FieldCount = 1; pRender.set_Field(0, "Field1"); pRender.FieldDelimiter = ","; pRender.UseDefaultSymbol = false; SimpleMarkerSymbol markerSYmbol = new SimpleMarkerSymbol(); IRgbColor color = new RgbColor(); int indefOfField = pFeat.Fields.FindField("Field5"); int fieldValue = 0; object TPTYpeValue = pFeat.get_Value(indefOfField); string tpTypeVal = TPTYpeValue.ToString(); bool isIntger = int.TryParse(tpTypeVal, out fieldValue); if (isIntger) //Check to see, if it's integer first { if (fieldValue == 0) //If value is 0 then assign Red color { //markerSYmbol.Color = (IColor)color; markerSYmbol.Color = new RgbColorClass {Red = 255, Green = 0, Blue = 0}; markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle; markerSYmbol.Size = 6; } else { markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle; markerSYmbol.Size = 20; markerSYmbol.Color = new RgbColorClass { Red = 0, Green = 0, Blue = 255 }; } } else { markerSYmbol.Style = ESRI.ArcGIS.Display.esriSimpleMarkerStyle.esriSMSCircle; markerSYmbol.Size = 14; markerSYmbol.Color = new RgbColorClass { Red = 0, Green = 0, Blue = 255 }; } string w = null; w = iRedField + "," + iGreenField + "," + iBlueField; ValFound = false; for (uh = 0; uh <= (pRender.ValueCount - 1); uh++) { if (pRender.Value[uh] == w) { NoValFound = true; break; } } if (!ValFound) { ESRI.ArcGIS.Display.ISymbol symbol = (ESRI.ArcGIS.Display.ISymbol)markerSYmbol; // Explicit Cast pRender.AddValue(w, "", symbol); pRender.set_Symbol(w, symbol); //Symbolize Feature simpleRender.Symbol = symbol; ESRI.ArcGIS.Carto.IFeatureRenderer _featRender = (ESRI.ArcGIS.Carto.IFeatureRenderer)simpleRender; pLayer.Renderer = _featRender; //_featRender.SymbolByFeature.Draw = symbol; //pLayer.MaximumScale = 3000.00; //pLayer.MinimumScale = 500000.00; #region LabelFeature stdole.IFontDisp font = new stdole.StdFontClass() as stdole.IFontDisp; font.Name = "Times New Roman"; font.Bold = false; font.Size = 10; IAnnotateLayerPropertiesCollection _layerAnnotate; _layerAnnotate = pLayer.AnnotationProperties; IElementCollection placedElement = new ElementCollection(); IElementCollection unplacedElement = new ElementCollection(); IAnnotateLayerProperties _layerAnnotateProps; _layerAnnotate.QueryItem(0, out _layerAnnotateProps, out placedElement, out unplacedElement); //Min / Max Scale for Layer Labels _layerAnnotateProps.AnnotationMaximumScale = 3000.00; _layerAnnotateProps.AnnotationMinimumScale = 500000.00; ILabelEngineLayerProperties pLayerLabelEngineProps; pLayerLabelEngineProps = (ILabelEngineLayerProperties)_layerAnnotateProps; pLayer.DisplayAnnotation = true; #endregion } i = i + 1; } #endregion IUID pUID = new UIDClass(); pUID.Value = "{683C994E-A17B-11D1-8816-080009EC732A}"; //** This makes the layer properties symbology tab show //** show the correct interface. IRendererPropertyPage pRPpage = new UniqueValuePropertyPageClass(); pLayer.RendererPropertyPageClassID = pUID as UIDClass; // pRPpage.ClassID; //Add Layer to static list to acces in future k++; //Release feature cursor //Marshal.ReleaseComObject(pFeatCursor); // } #endregion //Add Layer to Map pMap.AddLayer(pLayer); //** Refresh the TOC pMxDoc.ActiveView.ContentsChanged(); pMxDoc.UpdateContents(); //** Draw the map pMxDoc.ActiveView.Refresh(); #endregion ***************************************** Thanks and Regards, Shailesh Gavathe
... View more
07-29-2013
06:05 PM
|
0
|
1
|
696
|
|
POST
|
I am new to ArcGIS Runtime SDK for WPF. Can we use Map Packages directly using Runtime SDK? If yes, Is there any documentation that is available for reference please? Thanks and Regards, Shay ~
... View more
05-17-2013
07:28 AM
|
0
|
2
|
752
|
|
POST
|
To prevent your WPF App from crashing, handle exceptions at Application.DispatcherUnhandledException Read this forum, http://stackoverflow.com/questions/1472498/wpf-global-exception-handler Thanks and Regards, Shay ~
... View more
04-05-2013
07:36 PM
|
0
|
0
|
2099
|
|
POST
|
Hi, I was wondering if you guys found the solution to this problem. It happened to me twice today (good thing this application is not in production yet). I am actually already handling the TileLoading event and it did not fire at all. I only had on my map the base layer (which is the one that handles the TileLoading) and a graphics layer which I don't think uses tiles, correct? So my assumption is that it came from the base layer. I had never seen this in more than a year programming with your WPF control until today. Hello Garcia, I have had tileloading and tileloaded events handled as well. They are in try catch as well. But it didn't really help. What really helped us was when we bumped the memory of ArcGIS Server machine. We also cleaned up caches and recreated the services and cache to avoid any corrupted tiles etc. Since then, we didn't see any crash related to this event. It seemed to be related to ArcGIS Server performance, network latency and memory on the Server. If you have resources, you can use ArcGIS Server 10.1 cluster with web adaptor to balance the server load. Thanks and Regards, Shay ~
... View more
02-03-2013
09:19 AM
|
0
|
0
|
2099
|
|
POST
|
I'm not sure but with your configuration you have more work because you need maintain change configuration (and data?) in two nodes (active-passive) you could create a single site with two gis server (in node active and in node passive). You store configuration directories in a SAN so you have a single configuration. for web adaptor I think that you need use another machine ( see http://blogs.technet.com/b/askcore/archive/2010/02/12/windows-server-2008-failover-clusters-networking-part-1.aspx and http://blogs.technet.com/b/askcore/archive/2010/02/22/windows-server-2008-failover-clusters-networking-part-2.aspx ) I haven't tried this configuration but I check in next days. Thanks ciava for the input. I agree, we may have to run configuration directories from SAN and ask both Nodes (ArcGIS Server) to use the directories from SAN. Quick question -> SO for Web Adaptor, can one Web Adaptor be configured for two ArcGIS Server URLs or they can run independently for failover scenario or do we need to introduce third machine (Node03) in cluster which only has Web Adaptor configured to connect to Node01 and Node03? Thank you for the links about Windows Cluster set up. I will discuss with our network guy to go over these links. In Cluster, do i have to put the path for ArcGIS Service exe to failover to another Node within cluster? Thanks and Regards, Shay
... View more
01-31-2013
06:14 AM
|
0
|
0
|
1030
|
|
POST
|
Hello, I have installed ArcGIS Server 10.1 on Node01 and Node02 and both are accessing ArcGIS Server directories from local drive. Both nodes have exact same configuration in terms of Services and ArcGIS Server Admin user. I have Web Adaptor installed on both nodes as well. Both nodes are onto one cluster and we are using Windows 2008 Cluster. When i connect to Cluster by typing "http://Cluster name/arcgis/rest/services", i can see services installed on Node01 since it's an active node for this particular cluster. Is this a correct way to configure ArcGIS Server 10.1 for failover. And what extra settings you need to do within Windows Cluster to test ArcGIS Server failover scenario? Thanks and Regards, Shay
... View more
01-30-2013
05:01 PM
|
0
|
6
|
4230
|
|
POST
|
Indeed Ken, It's the same issue. Thank you for pointing me in right directions. Thanks and Regards, Shay
... View more
01-03-2013
04:41 AM
|
0
|
0
|
1684
|
|
POST
|
This is relatively old thread. But i have a different issue that i can't see Command Bars when i Add New Project -> ArcGIS -> Desktop Add-Ins I don't see Add-in Command Container or Add-in Component. Instead i am seeing the one in screenshot below. [ATTACH=CONFIG]20382[/ATTACH] After i click "OK" to create new project, i see options as shown in the screenshot below. [ATTACH=CONFIG]20383[/ATTACH] I am using ArcMap 10.1 with Visual Studio 2010 and .net framework 4.0. Thanks in Advance, Shailesh Gavathe
... View more
01-02-2013
12:55 PM
|
0
|
0
|
1684
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-17-2025 07:12 AM | |
| 1 | 08-25-2023 12:14 PM | |
| 1 | 06-05-2023 07:19 AM | |
| 1 | 08-01-2022 10:50 AM | |
| 1 | 06-04-2015 12:29 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-26-2025
01:18 PM
|