|
POST
|
I created two maps in Pro and wanted to export these items as an mmpk, so I started the "Create Mobile Map Package" tool. The MMPK was created successfully, but when I take a deeper look into it I found a problem. Map 1 (.mmap): "item" : {
"guid" : "e1f008cb36b6481e8d407a872dd90fba",
"created" : 1523968416000,
"modified" : 1523968416000,
"name" : "Allershausen",
"type" : "Mobile Map",
"typeKeywords" : [
"Mobile Map",
"Map",
"2D",
"ArcGIS Pro",
"Mobile"
], Map 2 (.mmap) "item" : {
"guid" : "b3c1f880f24749a59b14b73c92fc3583",
"created" : 1523978319242,
"modified" : 1523978319242,
"name" : "Simple",
"title" : "Point Symbols",
"type" : "Mobile Map",
"typeKeywords" : [
"Mobile Map",
"Map",
"2D",
"ArcGIS Pro",
"Mobile"
], So, in map 1, the title property is missing, in map 2 it is not. I tried to figured out why this happend. In ArcGIS Pro, in the metadata of the map, there is the title set. But in contrast to the second map, the first one has the same title like the name propery (under General). When I changed the title to a different value, the title property was exported. But when I changed back to the same value like the name, the title is now still exported, too. So maybe this problem only occures for the first map created in a project, because I could not reproduce it with another map I created in the same project. Why is this a problem? In ArcGIS Runtime I could use these maps and access it through the Map.Item property in the API. But the API only offers the Title property, there is no Name property. So, if the title is missing or not filled, I will not have any information about the map name. Maybe also interesting for https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-net community
... View more
04-17-2018
08:36 AM
|
0
|
1
|
916
|
|
BLOG
|
Sehr schön aufbereitet. #offline #offline maps #take offline
... View more
04-16-2018
11:49 PM
|
0
|
0
|
409
|
|
POST
|
Thanks for your answer, but the problem still occured. But I found a reason for the problem: I had Fiddler running in the background, logging the REST calls. That was the trigger for the occuring problem - if I close Fiddler, everything works as expected. I was searching in the web for the reason of this problem as I do not expect such interaction, and I found that issue from Morten Nielsen (he seems to be everywhere ) which exactly describes my problem. It seems that there is a problem in the .NET Runtime Core and as far as I can see, this problem will be solved in nearer future.
... View more
04-13-2018
03:50 AM
|
1
|
1
|
1849
|
|
POST
|
Hi, I have a strange behaviour in my two test applications, both based on ArcGIS Runtime 100.2. Both worked fine for many hours of developing, now I got an exception in both, even I did not change anything in one of these apps. Both a very small and focused and have the same startup: public MainWindow()
{
InitializeComponent();
InitializeMap();
}
private async void InitializeMap()
{
Map map = new Map(Basemap.CreateTopographicVector());
FeatureLayer featureLayer = new FeatureLayer(new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/2"));
await featureLayer.LoadAsync();
map.OperationalLayers.Add(featureLayer);
MyMapView.Map = map;
} Both are now crashing in the same line 13, where the LoadAsync should be executed. System.Net.Http.HttpRequestException occurred HResult=0x80131500 Message=An error occurred while sending the request. Source=mscorlib StackTrace: at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at Esri.ArcGISRuntime.Internal.RequestRequiredHandler.<IssueRequestAndRespond>d__15.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at CustomGPSProvider.MainWindow.<InitializeMap>d__1.MoveNext() in C:\Users\mag\Documents\Visual Studio 2017\Projects\CustomGPSProvider\CustomGPSProvider\MainWindow.xaml.cs:line 37 Inner Exception 1: WebException: The request was aborted: The request was canceled. Inner Exception 2: NullReferenceException: Object reference not set to an instance of an object. The StackTrace for the Inner Exception 2 is: at System.Net.HttpWebRequest.CheckCacheUpdateOnResponse() at System.Net.HttpWebRequest.CheckResubmitForCache(Exception& e) at System.Net.HttpWebRequest.DoSubmitRequestProcessing(Exception& exception) at System.Net.HttpWebRequest.ProcessResponse() at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData) I have no idea what's wrong. Any ideas? Max
... View more
04-12-2018
06:42 AM
|
0
|
3
|
2211
|
|
POST
|
Good point. We also sometimes find gaps in the documentation. Above all, detailed information is missing now and then. What is the best way to report such gaps?
... View more
03-01-2018
12:15 AM
|
1
|
0
|
2012
|
|
POST
|
Thanks Jennifer, your solution is better, as it only takes into account the point input for the moment of recording. It should help for the moment, but if there will be a better support by the framework itself in future, I think this would be good.
... View more
03-01-2018
12:01 AM
|
0
|
0
|
1601
|
|
POST
|
Hi, I tried to write an Editing Workflow using the SketchEditor, where the user can select Features with the Rectangle drawing (SketchCretionMode.Rectangle). Everything is fine if the user draw a rectangle, the SketchEditor delivers the rectangle geometry as a result which I can use to select my features. But, if the user decides to just select a single object by a click, this will not work with rectangle creation mode. The SketchEditor returns a null object in this case. By the way, this is the same for all SketchCreationModes with values 3 to 9. I tried some workarounds to solve this, the best idea I had was to save the last click in the MapView in a local variable and - if the result of rectangle selection was null - to use this stored map point to select features. private MapPoint _lastLocationClicked;
public MainWindow()
{
MyMapView.GeoViewTapped += MyMapView_GeoViewTapped;
}
private void MyMapView_GeoViewTapped(object sender, Esri.ArcGISRuntime.UI.Controls.GeoViewInputEventArgs e)
{
_lastLocationClicked = e.Location;
}
private async void Select_OnClick(object sender, RoutedEventArgs e)
{
var creationMode =
(SketchCreationMode) Enum.Parse(typeof(SketchCreationMode), EditingModeComboBox.SelectionBoxItem.ToString());
Esri.ArcGISRuntime.Geometry.Geometry geometry =
await MyMapView.SketchEditor.StartAsync(creationMode, false);
MyMapView.SketchEditor.ClearGeometry();
if (geometry != null)
{
var query = new QueryParameters() {Geometry = geometry};
var selection = await MyMapView.Map.OperationalLayers.OfType<FeatureLayer>()
.First()
.SelectFeaturesAsync(query, SelectionMode.New);
}
else
{
if (creationMode == SketchCreationMode.Rectangle)
{
//add a scale dependent buffer
var buffer = MyMapView.MapScale / 500;
var bufferedGeometry = GeometryEngine.Buffer(_lastLocationClicked, buffer);
var query = new QueryParameters() {Geometry = bufferedGeometry};
var selection = await MyMapView.Map.OperationalLayers.OfType<FeatureLayer>()
.First()
.SelectFeaturesAsync(query, SelectionMode.New);
}
else
{
MyMapView.Map.OperationalLayers.OfType<FeatureLayer>()
.First()
.ClearSelection();
}
}
} Of course, this is not a pretty way, so I have two questions: Is this the expected behavior, that the geometry returned is null in case of a single map click? Does anyone have a better idea how to allow both, rectangle and single point selection without enforcing the user to choice between this options manually? Cheers Max
... View more
02-20-2018
07:16 AM
|
0
|
2
|
2026
|
|
BLOG
|
Sehr schöner Blog, Alex! In einem Bild zeigst du das Freihandausschneiden des zu exportierenden Bereichs. Kannst du dafür den Code auch noch bereitstellen?
... View more
02-15-2018
12:11 AM
|
1
|
0
|
628
|
|
POST
|
Hi, I have a Runtime Application (100.2) and want to use an ArcGIS Server FeatureService in my application. This service limits the result list with the default MaxRecordCount = 1000 (it has more than 1000 features). So, I could not see all features in my Runtime Application because just the first 1000 features are loaded into the map. If I use the Feature Service REST Endpoint and choose "View In: ArcGIS Online map viewer" option, I get a webmap with all records shown (more than 1000). (on the left side is the Runtime application, on the right side is the webMap) I wonder how I can get the same result with a runtime application? Is there a way to load more than the maximum value auf MaxRecordCount features into the map without changing the server setting value? Do you have any best practices for this? Thanks Max
... View more
02-02-2018
04:56 AM
|
0
|
1
|
1138
|
|
POST
|
Maybe an issue with the SpatialReference? Your coordinates looks like WGS84, but WebMaps usally use WebMercator. Have you tried to add the coordinate with an explicit SpatialReference? new MapPoint(x, y, SpatialReferences.Wgs84)
... View more
01-11-2018
12:27 AM
|
1
|
0
|
1651
|
|
POST
|
Hi Mike, With version 100.2 coming out soon, can you tell us if Arcade expressions for renderers will be supported? If this is not the case, can you tell us what the roadmap for the Arcade support looks like? Will it be included in 100.2.1? 100.3? Or is it not on the release plan yet? Cheers, Max
... View more
11-27-2017
03:29 AM
|
0
|
0
|
1469
|
|
POST
|
This is a known bug in 10.2.x. I could not find any solution for this. In 100.2 ENC will be supported, hopefully without this problem.
... View more
11-09-2017
02:16 AM
|
0
|
2
|
5207
|
|
POST
|
We have a customer from the building industry. He wants to see boreholes visualized in 3D with the ArcGIS Runtime .NET. So, I made some tests with a single subsurface geometry, prepared in a scene layer package. I used the following code, by the way. var scene = new Scene(BasemapType.Topographic);
await scene.LoadAsync();
var arcGisSceneLayer = new ArcGISSceneLayer(new Uri(AppDomain.CurrentDomain.BaseDirectory + @"\data\Baugrube_WGS84.slpk"));
await arcGisSceneLayer.LoadAsync();
scene.OperationalLayers.Add(arcGisSceneLayer);
var elevationSource =
new ArcGISTiledElevationSource(
new Uri("http://scene.arcgis.com/arcgis/rest/services/Berlin_DTM/ImageServer"));
var sceneSurface = new Surface();
sceneSurface.ElevationSources.Add(elevationSource);
scene.BaseSurface = sceneSurface;
var targetGeometry = arcGisSceneLayer.FullExtent;
var camera = new Camera(targetGeometry.GetCenter(), 354.0970719164464, 67.441317295290986, 0);
scene.InitialViewpoint = new Viewpoint(targetGeometry, camera);
MySceneView.Scene = scene;
The problem is, that I have no chance to see the data in subsurface. The ground is not transparent, the camera could not be rotated below the surface. Only the top of the geometry is visible, which is above the ground. (that's the situation the customer will have later, too. The boreholes are filled up with cement and will have an overlap of a few centimeters above surface). With setting the sceneSurface.ElevationExaggeration = 0.9; I could see the full geometry: But then I will not get a feeling of how deep the geometry is below surface. (by the way - this seems not to be a solution for geometries which are located in oceans as I did not succeed in making data visible this way) My questions: Am I right or did I make any mistakes? Is there a solution for my scenario? If it is not possible so far: how is the roadmap, when will this be possible?
... View more
09-21-2017
08:55 AM
|
0
|
1
|
1284
|
|
POST
|
Hi Morten, exactly this custom workflow is what I need. I think it would be helpful to add a functionality to the SDK to create delta packages or to add any desktop toolbox to do this. We see a pre planned workflow in many of our projects and if this will be one possible solution, it would be good to have this tools. Could you also follow my link above and answer my questions? Thanks in advance! Kind regards Max
... View more
07-28-2017
03:42 AM
|
0
|
0
|
948
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-11-2025 04:40 AM | |
| 2 | 09-20-2019 03:24 AM | |
| 2 | 09-26-2019 04:37 AM | |
| 3 | 01-25-2022 08:44 AM | |
| 1 | 06-22-2021 12:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-28-2025
05:33 AM
|