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
|
694
|
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
|
585
|
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
|
448
|
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
|
487
|
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
|
1248
|
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
|
1248
|
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
|
493
|
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
|
3693
|
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
|
624
|
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
|
624
|
POST
|
Hello, Is there any way to group all dynamic layers together with filter criteria under one legend item. For example, I have 5 different dynamic services that are poi_1, poi_2,poi_3 and so on. When i consume all 5 , WPF/Silverlight client will display as poi_1, poi_2 etc(with checkboxes to represent group layer) in the legend. Is there any way to group/regroup all 5 services under POI and display all sub-layers from (poi_1,poi_2) under one group called POI? Thanks and Regards, Shailesh Gavathe
... View more
10-31-2012
06:49 AM
|
0
|
1
|
678
|
POST
|
Fiddler didn't have any error on tile loading either. I was hoping, it would display error on tile download with httpwebrequest. We are using AGS 10.1 with about 100 some services running on the box. Since ESRI stopped multi-layer caching in AGS 10.1, we had to split our multi-layer cache service into multi cache services. This server is internal not accessible publicly. I will try to get more details on error from event log and arcgis server or iis logs will email you to your email id provided. Thanks and Regards, Shay~
... View more
09-15-2012
06:24 AM
|
0
|
0
|
1248
|
POST
|
Thank you, Mike for suggestions. We tried handling error in TileLoaded Event. It did not catch an error at that Event but app still crashed. Could that be related ESRI Tile Download API and WPF Cache? Running Fiddler didn't tell us much either. Thanks and Regards, ~ Shay
... View more
09-13-2012
05:33 AM
|
0
|
0
|
1248
|
POST
|
We occassinaly get the following error on WPF Client and it crashes application. We are using ArcGIS Server 10.1 with PNG images as our server tiles from services. Is there any solution to it? Would registry changes in the following link help us or we need to look at ArcGIS Server Tiled Services?? http://swimmingpooldotnet.wordpress.com/2010/08/09/wpf-error-no-imaging-component-suitable-to-complete-this-operation-was-found/ at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle) at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions, BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy, Boolean insertInDecoderCache) at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation() at System.Windows.Media.Imaging.BitmapImage.EndInit() at ESRI.ArcGIS.Client.TiledLayer.tileLoadCompleted(ImageTileInfo data, Stream imgStream, Exception error) at ESRI.ArcGIS.Client.TiledLayer.client_DownloadDataCompleted(Object sender, DownloadDataCompletedEventArgs e) at System.Net.WebClient.OnDownloadDataCompleted(DownloadDataCompletedEventArgs e) at System.Net.WebClient.DownloadDataOperationCompleted(Object arg) 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) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 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) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at System.Windows.Threading.Dispatcher.Run() at System.Windows.Application.RunDispatcher(Object ignore) at System.Windows.Application.RunInternal(Window window) at System.Windows.Application.Run(Window window) at System.Windows.Application.Run() Thanks and Regards, Shay ~
... View more
09-11-2012
11:39 AM
|
0
|
7
|
4109
|
POST
|
I was trying to create composite geolocator using ESRI locator services. http://tasks.arcgisonline.com/ArcGIS/rest/services/Locators Is it possible to create composite geolocators using locators hosted at esri servers? Thanks and Regards, Shay~
... View more
08-13-2012
07:18 AM
|
0
|
0
|
150
|
Title | Kudos | Posted |
---|---|---|
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 |
12-12-2023
09:51 PM
|