POST
|
Hi, I have loaded a shape file / File GDB file successfully using the method specified here. Is it possible to apply symbology - using ClassificationMethod or some other way? Please help. Thanks, Saravanan
... View more
06-06-2014
12:23 PM
|
0
|
0
|
304
|
POST
|
Hi Mike, I am curious to know the release date for ArcGIS runtime SDK for .NET. Is this announced? If not, when is it planned? thanks, Saravanan
... View more
06-03-2014
06:00 AM
|
0
|
0
|
335
|
POST
|
Hi, In the WPF SDK we recommend using the accelerated display mode for the entire Map if possible, particularly when your application makes extensive use Graphics. If you find the performance of the non-accelerated display mode acceptable then for labelling you can work with ControlTemplates and/or CompositeSymbols. If you are working with the accelerated display mode, as you have noted, there is currently no built in labelling functionality - this is on the roadmap for the new ArcGIS Runtime SDK for .NET (for a preview of the new labelling functionality you can take a look at the ArcGIS Runtime SDK for .NET beta at https://developers.arcgis.com/net/). In the meantime, in the existing WPF SDK I would suggest you take a look at the GeometryService task which contains a LabelPoints operation (http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~LabelPointsTaskAsync(IList%7BGraphic%7D).html). You can pass your Graphics / FeatureLayer.Graphics to this operation and it will generate the optimum points for display labels. You can then use the TextSymbol to create a label using each point as the geometry. Regards Mike Thanks Mike for the response. The link appears to be broken. could you provide the correct link? Thanks, Saran.
... View more
04-17-2014
11:37 AM
|
0
|
0
|
271
|
POST
|
Thanks Mike, that resolved the problem with the layer not being visible. I can label its features, but I can't select anything with the Editor toolkit control. Why could that be? I should note that I also add the dynamic service layer onto the map in addition to the feature layer, because the layer has too many features, so I show both with the feature layer set to OnDemand mode. Hi George, how did you Label the features of a feature layer? Using a Graphics Layer? How did you pass the features for that? did you QueryTask? Currently we are having trouble with this. Could you please let us know your approach which might help us solve our issue? thanks, Saravanan
... View more
04-16-2014
08:02 PM
|
0
|
0
|
304
|
POST
|
Hi, It's great to hear that ESRI finally introduce Labeling in Runtime WPF. We are currently have a lot of struggle with Labeling. 1) We need to show labels for all of the features in a layer. 2) Labels need to support font, style, size, color, halo, box and other styles such as bold, italic and underline, all caps, expanded. 3) Allow user to change the text of one or more Labels in a layer. 4) When zoomed out, Labels should not be shown in cluttered manner 5) A label should not override another label 6) User should be able move Label to a different place still Label should show a link to its original location using a line pointer. These are the labeling functions we are expecting at this time. Let us know what we can expect from the beta? Also when is the release planned? Thanks, Saran
... View more
04-16-2014
07:35 PM
|
0
|
0
|
226
|
POST
|
OK... I just applied the MinScale value and see that it is performing better (it takes longer than EnableDynamicLayers=false option).. however at least now it is working... for the purpose of someone who is in need to fully working code, here it is. Thank you Dominique.... Appreciate your help. Regards, Saran <esri:Map>
<esri:ArcGISLocalDynamicMapServiceLayer Path="States.mpk" >
<esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:LayerDrawingOptionsCollection>
<esri:LayerDrawingOptions LayerID="0" ShowLabels="True">
<esri:LayerDrawingOptions.LabelClasses>
<esri:LabelClassCollection>
<!--<esri:LabelClass LabelExpression="[NAME1]" >
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="10" Color="Red" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>-->
<esri:LabelClass LabelExpression="[NAME1]" MinScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="15" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
</esri:LabelClassCollection>
</esri:LayerDrawingOptions.LabelClasses>
</esri:LayerDrawingOptions>
</esri:LayerDrawingOptionsCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
<esri:DynamicLayerInfoCollection>
<esri:DynamicLayerInfo ID="0">
<esri:DynamicLayerInfo.Source>
<esri:LayerMapSource MapLayerID="0" />
</esri:DynamicLayerInfo.Source>
</esri:DynamicLayerInfo>
</esri:DynamicLayerInfoCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
</esri:ArcGISLocalDynamicMapServiceLayer>
</esri:Map>
... View more
03-27-2014
11:34 AM
|
0
|
0
|
318
|
POST
|
Thanks. I see the reason now.... But why it is taking longer to draw the layer?... almost it took more than 2 minutes to render... Regards, Saran
... View more
03-27-2014
11:15 AM
|
0
|
0
|
318
|
POST
|
Hi, Thank you for the quick findings... Regarding your points 1) Yes, I did recreate the package with the name States1.mpk so no surprise here... 2) LayerID... this was the key...I tried with 0 earlier and 1, 2... I thought I didn't get any output if I use 0 however just now discovered that infact it takes longer to get the output... not sure why it takes longer to render... finally I got the output but in a way I need... But at the same I couldn't see all the labels displayed for every state.... something weird happening... Is it related to environment? I'm on Windows 2003 OS on a VM... Note: I changed the field to [NAME2] so you are getting the abbr state names in the attached image... [ATTACH=CONFIG]32565[/ATTACH]
... View more
03-27-2014
10:45 AM
|
0
|
0
|
318
|
POST
|
Dominique, Thanks. However after setting the EnableDynamicLayers="True" option, there is no map produced.... output is blank...
<esri:Map>
<esri:ArcGISLocalDynamicMapServiceLayer Path="W:\Inforum Platform_Dev\Mapviewer\ESRIShapeFiles\Boundary\States.mpk" EnableDynamicLayers="True">
<esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:LayerDrawingOptionsCollection>
<esri:LayerDrawingOptions LayerID="1" ShowLabels="True">
<esri:LayerDrawingOptions.LabelClasses>
<esri:LabelClassCollection>
<esri:LabelClass LabelExpression="[NAME1]" MaxScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="20" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
<esri:LabelClass LabelExpression="[NAME1]" MinScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="15" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
</esri:LabelClassCollection>
</esri:LayerDrawingOptions.LabelClasses>
</esri:LayerDrawingOptions>
</esri:LayerDrawingOptionsCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
<esri:DynamicLayerInfoCollection>
<esri:DynamicLayerInfo ID="1">
<esri:DynamicLayerInfo.Source>
<esri:LayerMapSource MapLayerID="1" />
</esri:DynamicLayerInfo.Source>
</esri:DynamicLayerInfo>
</esri:DynamicLayerInfoCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
</esri:ArcGISLocalDynamicMapServiceLayer>
</esri:Map> I verified that I have a column named [NAME1] available... also tried to use the text as suggested.... nothing worked. Any help will be appreciated... Thanks. regards, Saran
... View more
03-27-2014
08:38 AM
|
0
|
0
|
774
|
POST
|
Hi, I have a similar requirement to update Labels using a local dynamic layer (only one layer in the package). I tried the following as suggested <esri:Map>
<esri:ArcGISLocalDynamicMapServiceLayer Path="States.mpk">
<esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:LayerDrawingOptionsCollection>
<esri:LayerDrawingOptions LayerID="0" ShowLabels="True">
<esri:LayerDrawingOptions.LabelClasses>
<esri:LabelClassCollection>
<esri:LabelClass LabelExpression="[NAME1]" MaxScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="20" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
<esri:LabelClass LabelExpression="[NAME1]" MinScale="15000000">
<esri:LabelClass.LabelOptions>
<esri:LabelOptions FontSize="15" Color="Green" />
</esri:LabelClass.LabelOptions>
</esri:LabelClass>
</esri:LabelClassCollection>
</esri:LayerDrawingOptions.LabelClasses>
</esri:LayerDrawingOptions>
</esri:LayerDrawingOptionsCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.LayerDrawingOptions>
<esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
<esri:DynamicLayerInfoCollection>
<esri:DynamicLayerInfo ID="0">
<esri:DynamicLayerInfo.Source>
<esri:LayerMapSource MapLayerID="0" />
</esri:DynamicLayerInfo.Source>
</esri:DynamicLayerInfo>
</esri:DynamicLayerInfoCollection>
</esri:ArcGISLocalDynamicMapServiceLayer.DynamicLayerInfos>
</esri:ArcGISLocalDynamicMapServiceLayer>
</esri:Map> Am I doing anything wrong here? Can someone help? Thanks, Saran
... View more
03-23-2014
09:11 PM
|
0
|
0
|
774
|
POST
|
Hi, Did you resolve this problem? I am also looking for a way to Labeling but nothing seems to be working on my end.... If possible can you post some sample code? Thanks, Saran
... View more
03-20-2014
07:50 PM
|
0
|
0
|
1052
|
POST
|
Hi all, So there is no built in support for Labels in WPF. Is there a work around to achieve this? For example, I have a counties layer which I want travel through each county and label it. I could get the currently clicked area using the Geometry however I am not sure how to loop it to add all the county names. Could someone help? Thanks, Saran Code to add Label to the mouse click point private void AddLabel(ESRI.ArcGIS.Client.Geometry.MapPoint myMapClickPoint) ESRI.ArcGIS.Client.Tasks.IdentifyParameters identifyParams = new IdentifyParameters() { Geometry = myMapClickPoint, MapExtent = mymap.Extent, Width = (int)mymap.ActualWidth, Height = (int)mymap.ActualHeight, LayerOption = LayerOption.visible }; IdentifyTask identifyTask = new IdentifyTask(); identifyTask.Url = _arcGISLocalDynamicMapServiceLayer.Url; // localMapService.UrlMapService; identifyTask.ExecuteCompleted += new EventHandler<IdentifyEventArgs>(identifyTask_ExecuteCompleted); identifyTask.ExecuteAsync(identifyParams); graphic = new ESRI.ArcGIS.Client.Graphic() { Geometry = myMapClickPoint, Symbol = gridMain.Resources["labelSymbol"] as ESRI.ArcGIS.Client.Symbols.MarkerSymbol }; } private void identifyTask_ExecuteCompleted(object sender, IdentifyEventArgs args) { try { if (args.IdentifyResults != null && args.IdentifyResults.Count > 0) { string title = string.Empty; if (args.IdentifyResults != null && args.IdentifyResults.Count > 0) { int i, n; n = graphicsLayer.Graphics.Count; foreach (IdentifyResult result in args.IdentifyResults) { Graphic feature = result.Feature; string res = string.Empty; result.DisplayFieldName = "ID"; title = result.Value.ToString() + " (" + result.LayerName + ")"; graphic.Attributes.Add("NAME", result.Value.ToString()); for (i = 0; i < n; i++) { res = graphicsLayer.Graphics.Attributes["NAME"].ToString(); if (res == result.Value.ToString()) { graphicsLayer.Graphics.Remove(graphicsLayer.Graphics); break; } } graphicsLayer.Graphics.Add(graphic); } } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
... View more
03-10-2014
03:32 PM
|
0
|
3
|
2659
|
POST
|
Hi all, I have Labels drawn as graphics in my map. [ATTACH=CONFIG]32093[/ATTACH] I am able to select it. However I am not able to get the text out of it. Could anyone please help on this? Thanks, Saran
... View more
03-10-2014
02:44 PM
|
0
|
1
|
2034
|
POST
|
Hi, Can someone help me on this? The ExportFeatureClass() method takes longer (about 1 minute to 3 minutes). Approximate number of records range from 1000+. Here is the code snippet 1) My Data is in Excel file (exceeds >5000 records most of the time) -> Due to ESRI limitation of handling >4999 records, I am converting the data to a File Geodatabase. I am achieving this using Python. (since the GP classes don't work in Windows OS 2003... seems to be a bug). cMapWork.ConvertExceltoTableUsingPython(xlsFilePath, excelTableName, dataSheet); 2) My geo data (for example, zipcode) is in a layer (inside MXD file) 3) Both the data are joined to get the Geo area as a table. pRelClass = pMemRelFact.Open("TabletoLayer", (IObjectClass)pTLayer, primaryKeyField, (IObjectClass)excelTable, strJnField, "forward", "backward", esriRelCardinality.esriRelCardinalityOneToOne); //esriRelCardinalityOneToOne IDisplayRelationshipClass pDispRC = (IDisplayRelationshipClass)pFeatLayer; // use Relate to perform a join pDispRC.DisplayRelationshipClass(pRelClass, esriJoinType.esriLeftInnerJoin); //esriLeftInnerJoin 4) This data is then converted as a feature class IDatasetName srcName = (IDatasetName)((pFeatLayer as IGeoFeatureLayer).DisplayFeatureClass as IDataset).FullName; IDatasetName destName = new FeatureClassNameClass() as IDatasetName; destName.Name = "datasetname"; IWorkspaceName destWsName = new WorkspaceNameClass(); destWsName.PathName = gdbPath; //file geo database path destWsName.WorkspaceFactoryProgID = "esriDataSourcesGDB.FileGDBWorkspaceFactory.1"; IFeatureClassName destFeatureClassName = new FeatureClassNameClass(); IDatasetName destDatasetName = (IDatasetName)destFeatureClassName; destDatasetName.WorkspaceName = destWsName; destDatasetName.Name = "destDataSetName"; IExportOperation exOp = new ExportOperationClass(); exOp.ExportFeatureClass(srcName, null, null, null, destFeatureClassName, 0); // Exporting joined results as a Feature Class The issues I face are in the last step. 1. I am getting the dialog box during the process which is good but it is showing the feature class name which is not required for my user so I want to get rid of the dialog box. I don't see any option to turn off the dialog box. [ATTACH=CONFIG]32000[/ATTACH] 2. The Export FeatureClass operation takes too long depends on my records size; minimum it takes around 1.5 minutes to maximum 5 minutes (I didn't go crazy with the maximum). Thanks, Saran
... View more
03-06-2014
05:21 PM
|
0
|
0
|
322
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|