|
POST
|
Hi, Does your machine meet the minimum requirements for the hardware accelerated display?: DirectX 9 support, Shader model 2.0 or greater and at least 256MB dedicated graphics memory. In the scenario where the display fails we raise an exception: Error: Failed to create Accelerated Display. Please check the display hardware and drivers meet the minimum requirements. However - when you enable the accelerated display on the Map in XAML and the display creation fails then it happens early on and isn't caught by any of our event handlers. Therefore you should register a handler for the Application.Current.DispatcherUnhandledException. In the example below I've added the handler in the window class but you probably want to register this handler and handle the event in the Application class. e.g. public MainWindow()
{
// License setting and ArcGIS Runtime initialization is done in Application.xaml.cs.
Application.Current.DispatcherUnhandledException += AppDispatcherUnhandledException;
InitializeComponent();
}
void AppDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
{
// Process unhandled exception
// If it's display-related the error message is:
// "Failed to create Accelerated Display. Please check the display hardware and drivers meet the minimum requirements."
MessageBox.Show(e.Exception.Message);
// Prevent default unhandled exception processing
e.Handled = true;
this.Close();
}
I appreciate this is not sufficiently documented - I'll investigate that and we'll also consider how better we can handle this for you as the developer. Cheers Mike
... View more
04-10-2013
03:01 AM
|
0
|
0
|
826
|
|
POST
|
Hi, Apologies, for the delay in replying - to pursue this issue a little further I actually demo'd it at the recent Esri Dev Summit. You can download the code for all the demos from GitHub or ArcGIS.com: https://github.com/Esri/tips-and-tricks-wpf http://www.arcgis.com/home/item.html?id=3f69c79bbd7340b09fad396647a977a5 I've also attached the specific demo to this post. Cheers Mike
... View more
04-08-2013
03:21 AM
|
0
|
0
|
2093
|
|
POST
|
Hi, The ArcGIS Runtime SDK for WPF v1.0 release added a lot of new functionality in the areas of ArcGIS Server and ArcGIS Online integration plus the ability to use maps, data, locators, and geoprocessing offline via Packages and a new high performance map display - so much new functionality (and in a fuller SDK) that we decided to call it v1.0 again, although underneath it built on top of v3.0 of the ArcGIS API for WPF. The release of the SDK also introduced licensing. If you build an application with the new SDK and it only uses online services then it continues to be free to deploy with a "Basic" license. If you use the offline functionality then you need to purchase "Standard" licenses when you deploy your application. If you're still using the old API then you are using v2.4. You can check by calling:
Assembly assembly = Assembly.LoadFrom("ESRI.ArcGIS.Client.dll");
Version version = assembly.GetName().Version;
You can find more information on the SDK releases here: What was new @ ArcGIS Runtime SDK for WPF v1.0: http://blogs.esri.com/esri/arcgis/2012/07/02/arcgis-runtime-sdk-1-0-for-wpf-release/ What was new @ ArcGIS Runtime SDK for WPF v10.1.1: http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Release_notes/0170000000nz000000/ Cheers Mike
... View more
04-08-2013
01:39 AM
|
0
|
0
|
3264
|
|
POST
|
Hi, If you're handling the EditGeometry.GeometryEdit event that should give you both the new geometry and the old geometry from which you should be able to determine the point to be moved and work out relative to the new geometry where the point should be located. http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.EditGeometry~GeometryEdit_EV.html Cheers Mike
... View more
04-05-2013
04:04 AM
|
0
|
0
|
1687
|
|
POST
|
Hi, 1) I wasn't able to get the starting geometry as when EditGeometry->StartEdit() function is fired, any GraphicsLayer->MouseLeftButtonDown() event will not be triggered. Hence I can't get the starting corrdinate of initial mouse pointer. Please can you provide some more information on what functionality you're trying to achieve? 2) The distance that it return is in double of the spatial reference and not in (x,y) or (longitude, latitude) value. Can you provide some more information on exactly what measure you would like to obtain? A coordinate pair refers to a specific location, rather than a distance between two locations. Cheers Mike
... View more
04-03-2013
12:21 AM
|
0
|
0
|
1687
|
|
POST
|
Hi, Yes the WebMercator class is part of the API and therefore will remain alongside your application if it goes "offline". You can also use the LocalGeometryService offline, if you're using the Standard license level. To use cached maps offline you'll need to create a Tile Package, or take a copy/extract of the server-side cache. Cheers Mike
... View more
04-03-2013
12:16 AM
|
0
|
0
|
1645
|
|
POST
|
Hi, If you're translating between WGS1984 and Web Mercator Auxiliary Sphere there is a WebMercator class to support this very common case: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Projection.WebMercator_members.html. Otherwise - for the greatest flexibility you should look at http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Geometry.CoordinateConversion_members.html. Cheers Mike
... View more
04-01-2013
11:45 PM
|
0
|
0
|
1645
|
|
POST
|
Hi, You could use the GeometryService task class and call the DistanceAsync method - which calculates the distance between two geometries: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.GeometryService~Distance.html The distance can be returned in one of the supported formats as per the LinearUnit enumeration: http://resources.arcgis.com/en/help/runtime-wpf/apiref/index.html?ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Tasks.LinearUnit.html. Cheers Mike
... View more
04-01-2013
11:38 PM
|
0
|
0
|
1687
|
|
POST
|
Hi, Here's the code I'm using to persist from the input featureset to the output featureclass:
/*
* Build the GP Parameters...
*/
// We want to specify input attributes - create a new FeatureSet.
FeatureSet featureSet = new FeatureSet();
// Create the Fields and add one called "VALUE".
featureSet.Fields = new List<Field> { new Field() { FieldName = "VALUE", Type = Field.FieldType.String, Alias = "VALUE" } };
// Create the graphic to submit.
Graphic g = new Graphic() { Geometry = _mercator.ToGeographic(e.MapPoint) };
// Add the graphic to the FeatureSet
featureSet.Features.Add(g);
// Set the graphic's attribute
featureSet.Features[0].Attributes["VALUE"] = "Hello";
// Create a new list of GPParameters
List<GPParameter> parameters = new List<GPParameter>();
// Add a new GPFeatureRecordSetLayer to the parameter list, passing in the FeatureSet created above.
parameters.Add(new GPFeatureRecordSetLayer("Input_Features",featureSet));
// Handler for the completed event
_gpTask.ExecuteCompleted += (s, e1) =>
{
//OutputCopyFeatures
GPExecuteResults results = e1.Results;
GPFeatureRecordSetLayer rs = results.OutParameters[0] as GPFeatureRecordSetLayer;
// Check the attributes... output feature should have attribute Field "VALUE" with value "Hello".
};
... View more
03-22-2013
03:35 PM
|
0
|
0
|
2093
|
|
POST
|
Hi, There is a Draw object and a DrawMode of Rectangle that you can use - take a look at http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Add_Interactively/02q20000003v000000/ for an example. Cheers Mike
... View more
03-19-2013
09:17 AM
|
0
|
0
|
1115
|
|
POST
|
Hi, Please can you provide a little more detail on what effect you'd like to achieve? Cheers Mike
... View more
03-19-2013
04:58 AM
|
0
|
0
|
1115
|
|
POST
|
Hi, I can't immediately account for the difference between the dynamic map service layer and feature layer but it's basically down to the spatial reference not being set on the map. Better to define the spatial reference explicitly on the Map probably:
<esri:Map x:Name="MyMap" Background="#FFE3E3E3" >
<esri:Map.Extent>
<esri:Envelope XMin="-15000000" YMin="2000000" XMax="-7000000" YMax="8000000">
<esri:Envelope.SpatialReference>
<esri:SpatialReference WKID="102100"/>
</esri:Envelope.SpatialReference>
</esri:Envelope>
</esri:Map.Extent>
<esri:ArcGISLocalDynamicMapServiceLayer ID="DynamicLayer"
Path="..\\Data\\MPKS\\USCitiesStates_Lambert_Conformal_Conic.mpk"/>
</esri:Map>
Cheers Mike
... View more
03-19-2013
04:46 AM
|
0
|
0
|
698
|
|
POST
|
Hi, You should use the Graphic.MoveTo method. The great thing about this method is that we allow it to be called on a background thread too (as opposed to other geometry changes or symbol changes which will raise an exception because the graphics layer / graphics collection has been created on the UI thread). Checkout the sample http://resources.arcgis.com/en/help/runtime-wpf/samples/index.html#/Moving_Objects/02q2000000mm000000/. Cheers Mike
... View more
03-19-2013
04:42 AM
|
1
|
0
|
1938
|
|
POST
|
Hi, Please can you provide some more information on your approach? Which product are you using? Cheers Mike
... View more
03-15-2013
01:06 AM
|
0
|
0
|
1579
|
|
POST
|
Hi, Please can you provide some more information? Or alternatively - please contact you local distributor. Thanks Mike
... View more
03-15-2013
01:03 AM
|
0
|
0
|
4285
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 05:04 AM | |
| 1 | 02-20-2024 07:02 AM | |
| 1 | 01-19-2026 06:44 AM | |
| 1 | 12-10-2025 07:16 AM | |
| 1 | 11-21-2025 08:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-02-2026
06:07 AM
|