POST
|
Hi, Attached is the zip file of the raster I used. Best, Nagma
... View more
08-30-2017
09:10 PM
|
0
|
7
|
2038
|
POST
|
Hi, Below is the code to display a raster as a basemap or an operational layer string pathToRaster = @"C:\rasters\wsiearth.tif"; // create a raster from a path to a supported raster format Raster myRaster = new Raster(pathToRaster); // create a RasterLayer using the Raster Esri.ArcGISRuntime.Mapping.RasterLayer newRasterLayer = new Esri.ArcGISRuntime.Mapping.RasterLayer(pathToRaster); Map map = new Map(); map.Basemap.BaseLayers.Add(newRasterLayer); // as a Basemap // map.OperationalLayers.Add(newRasterLayer); // as an operational layer MyMapView.Map = map; Hope that helps.
... View more
08-29-2017
09:57 PM
|
0
|
9
|
2038
|
POST
|
Hi Eric, Suppose, you are trying to access the tile layer, "https://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer" and it will ask the AGOL credential to access. You could access the layer using AuthenticationManager and hardcode the credentials as below: using Esri.ArcGISRuntime.Security; string ONLINE_BASEMAP_URL = "https://tiledbasemaps.arcgis.com/arcgis/rest/services/World_Street_Map/MapServer"; string ONLINE_BASEMAP_TOKEN_URL = "https://www.arcgis.com/sharing/rest/generatetoken"; ArcGISTiledLayer tiledLayer = new ArcGISTiledLayer(new Uri(ONLINE_BASEMAP_URL)); AuthenticationManager auth = AuthenticationManager.Current; var cred = await auth.GenerateCredentialAsync(new Uri(ONLINE_BASEMAP_TOKEN_URL), <AGOL_USERNAME>, <AGOL_PASSWORD>); tiledLayer.Credential = cred; Hope that helps. Nagma
... View more
08-21-2017
01:02 PM
|
0
|
0
|
569
|
POST
|
Hi Parh, WmtsLayer (WmtsLayer Class) is introduced in 100.1 to display WMTS layer. If you have downloaded the sample, there is an example how to consume the WMTS service using Runtime .net application. Hope that helps, Nagma
... View more
08-21-2017
08:52 AM
|
0
|
1
|
2111
|
POST
|
Hi Yan, I have used one of the existing sample, "FeatureCollectionLayerFromQuery", modified it to save the created feature collection from the feature layer (Layer: Wildfire Response Points (ID: 0) ) to the portal. Before using FeatureCollection.SaveAsAsync() method, you need to log in to the portal as below. Attached is the complete project. Once the code is executed, you will see a new item named, "Feature Collection to Portal" is added in the portal that copies all the features from the feature layer. var tokenServiceUri = new Uri("https://www.arcgis.com/sharing/rest"); // url for generating token AuthenticationManager authManager = AuthenticationManager.Current; var cred = await authManager.GenerateCredentialAsync(tokenServiceUri, "<portal_user_name>", "<portal_password>"); // Open a portal item containing a feature collection ArcGISPortal portal = await ArcGISPortal.CreateAsync(tokenServiceUri, cred); FeatureCollectionLayer featCollectionTable = new FeatureCollectionLayer(featCollection); await featCollectionTable.LoadAsync(); MyMapView.Map.OperationalLayers.Add(featCollectionTable); List<string> str = new List<string>(); str.Add("Save Feature collection"); try { await featCollection.SaveAsAsync(portal, null, "Feature Collection to Portal", "FeatureCollection", str); MessageBox.Show("Feature Collection saved to portal"); } catch(Exception ex) { MessageBox.Show(ex.Message); } Hope that helps. Nagma
... View more
08-19-2017
07:02 PM
|
0
|
1
|
506
|
POST
|
Hi Radihika, You could set the OutputSpatialReference of the GeocodeParameters to "SpatialReferences.Wgs84" to get the lat/long coordinates GeocodeParameters gcParams = new GeocodeParameters(); gcParams.OutputSpatialReference = SpatialReferences.Wgs84; IReadOnlyList<GeocodeResult> results = await localLocatorTask.GeocodeAsync("address", gcParams); Debug.WriteLine("Latitude: " + results[0].InputLocation.Y + " Longitude: " + results[0].InputLocation.X); Hope that helps. Nagma
... View more
08-18-2017
08:43 AM
|
0
|
0
|
156
|
POST
|
Hi Radhika, Have you tried to generate the runtime content from the san-diego locator which is attached with the previous post. Best, Nagma
... View more
08-18-2017
08:34 AM
|
0
|
2
|
1121
|
POST
|
Hi Bikesh, I believe you could use GeodesicEllipseParameters Class. To create a geodetic circle, the "SemiAxisLength1" and "SemiAxisLength2" are the same, or set "SemiAxisLength1" to a valid length and "SemiAxisLength2" to zero. GeodesicEllipseParameters Class Hope that helps. Nagma
... View more
08-17-2017
01:42 PM
|
2
|
4
|
1486
|
POST
|
Hi Ed, I have used the test data (attached) to create the .locb file to be used in runtime. Below is the video how I generated the .locb file. I don't think you need to add any data to the map, just adding the locator in ArcMap should work. 2017-08-17_1255 Hope that helps. Nagma
... View more
08-17-2017
01:02 PM
|
0
|
4
|
1121
|
POST
|
Hi Mark, I believe for your service "SupportPagination" is false. To use the "MaxFeatures" in Runtime, you have to have the "SupportPagination" should be "true" of the service just like the below service: Layer: Damage to Commercial Buildings (ID: 0) Hope that helps. Nagma
... View more
08-17-2017
11:50 AM
|
0
|
1
|
700
|
POST
|
Hi Edward, In ArcMap, first load the local locator. Then click on File--> Share As--> ArcGIS Runtime Content. Choose the Locator and check the option "Use a locator from the current map". Also in "ArcGIS Runtime Content", choose the folder where you want to save the locator file. In case , you don't see the option for "ArcGIS Runtime Content" in File--> Share As-->, then on the menu click "Customize --> ArcMap Options -->Sharing --> check the box "Enable ArcGIS Runtime tools" Hope that helps. Nagma
... View more
08-17-2017
11:41 AM
|
0
|
7
|
1121
|
POST
|
Hi Edward, Have you created the runtime content for the locator in ArcMap which creates a .locb file. This is necessary to consume the local locator in Runtime application. Let me know if you need more details information on how to create the runtime content for the locator in ArcMap. Nagma
... View more
08-17-2017
11:20 AM
|
0
|
9
|
1121
|
POST
|
Hi Bikesh, You could use GeometryEngine.DistanceGeodetic Method to calculate the geodetic distance between two point. GeometryEngine.DistanceGeodetic Method To calculate the planar distance, you can use GeometryEngine.Distance Method GeometryEngine.Distance Method Hope that helps. Nagma
... View more
08-16-2017
03:33 PM
|
3
|
6
|
1486
|
POST
|
Hi Robert, You could use the Map.SaveAsync() method using a reference of RuntimeImage as below: RuntimeImage img = null; await _map.SaveAsAsync(agsOnline, null, title, description, tags, img); If you have downloaded the samples, look at this sample named " AuthodEditSaveMap" , it has the implementation of this method. Hope that helps. Nagma
... View more
08-15-2017
02:42 PM
|
1
|
1
|
557
|
POST
|
Robert, Calling as below, I am able to see all the information related to that "mil2525d" symbol properties. I am using your stylx for testing. var dss = await DictionarySymbolStyle.OpenAsync("mil2525d", @"<folder_path>\mil2525d.stylx"); Console.WriteLine(dss.TextFieldNames[0].ToString()); result: "additionalinformation" DictionarySymbolStyle.OpenAsync Method Hope that helps. Nagma
... View more
08-10-2017
02:50 PM
|
0
|
1
|
1599
|
Title | Kudos | Posted |
---|---|---|
1 | 08-02-2017 04:15 PM | |
1 | 08-09-2017 03:25 PM | |
1 | 11-10-2017 09:37 AM | |
1 | 11-13-2017 08:43 AM | |
1 | 06-06-2017 07:27 PM |
Online Status |
Offline
|
Date Last Visited |
05-31-2024
09:45 PM
|