|
POST
|
Thank you Kimberly McCarty, I will add the information directly in the Bug Report.
... View more
05-09-2019
11:09 PM
|
1
|
0
|
1426
|
|
POST
|
Hi, we use a 3D Scene in our Runtime application and part of this is to visualize big hemispheres on ground with a diameter of a few kilometers. We recognized a problem when moving on the map with mouse and scrollwheel. When you want to move through the surface of the hemisphere to the ground, it seems that you hang up on the surface. It lasts many wheel movements until the movement auf the map continues. It feels, like you stick on the surface of the hemisphere and have to fight very hard to continue moving. I made a video with a sphere symbol showing, what I mean (actually a problem occurs with the video service, I will upload it again later on): (view in My Videos) SimpleMarkerSceneSymbol simpleMarkerSceneSymbol = new SimpleMarkerSceneSymbol()
{
Style = SimpleMarkerSceneSymbolStyle.Sphere,
Color = Color.FromArgb(50, 0, 255, 255),
Height = 90000,
Width = 90000,
Depth = 90000,
AnchorPosition = SceneSymbolAnchorPosition.Bottom
}; It looks as if the movement is oriented to the surface of objects. In the case of hemispheres, however, this is not desired. Can I change this for certain objects? Kind regards, Max
... View more
05-09-2019
12:05 AM
|
0
|
2
|
1533
|
|
POST
|
Hi, I created a special Feature Collection with a table which contains a Date field. //Create a feature collection and store it in a feature collection layer
var fields = new List<Field> {new Field(FieldType.Date, "Date", "Date", 20)};
var table = new FeatureCollectionTable(fields, GeometryType.Point, SpatialReferences.Wgs84);
table.Renderer = new SimpleRenderer(new SimpleMarkerSymbol{Color = Color.Blue, Size = 5});
var collection = new FeatureCollection(new [] {table});
var collectionLayer = new FeatureCollectionLayer(collection){Id = "FeatureCollectionLayer" };
var feature = table.CreateFeature();
feature.Geometry = new MapPoint(11.6,48.1, SpatialReferences.Wgs84);
feature.Attributes["Date"] = DefaultDate;
await table.AddFeatureAsync(feature);
Map.OperationalLayers.Add(collectionLayer); Now: When I want to Query this feature layer, I am not able to get a result match for my search date: //Now load try to query on this layer with a where clause on the date field
var layer = ((FeatureCollectionLayer)Map.OperationalLayers["FeatureCollectionLayer"]).Layers.First();
var result = await layer.FeatureTable.QueryFeaturesAsync(new QueryParameters()
{
WhereClause = $"Date = '{DefaultDate}'"
});
layer.SelectFeatures(result); The result is always empty, no selection was made. DefaultDate by the way is a static value: public DateTime DefaultDate { get; set; } = new DateTime(2019, 05, 08, 6, 0, 0); In the end I used int32 instead of Date as the data type for the field and converted the date into an integer, so it finally worked. So my questions are: Why does it not work with data type Date? What was wrong here? Why does data type Date needs a length when creating the field? What is it for? Is it used? I missed a data type boolean. Any reasons why it is missing? Kind regards Max
... View more
05-08-2019
01:25 PM
|
0
|
1
|
1441
|
|
POST
|
I had the same error pattern once. The reason was that I forgot to save the relevant value in the attribute in the feature. feature.Attributes["SURTYPE"] = "SoftSurface"; If this is not the case for you: Have you tried to use a more different symbol? Maybe you could not see a difference between dashed or solid for a point size of 2? I would try a different color ...
... View more
05-07-2019
08:46 AM
|
0
|
0
|
1327
|
|
POST
|
Thanks Nicholas. I saw the example and I tried it, but I did not get the Property Layers, which contains a collection of FeatureLayers in it, which allow to do what I want to do. But could you still explain why you can't create a FeatureLayer directly from a FeatureCollectionTable, but it's syntactically allowed by the API? I find that very misleading.
... View more
05-06-2019
11:48 PM
|
0
|
1
|
2794
|
|
POST
|
Hi, the Runtime documentation describes five constructor, which could be used to create a FeatureTable. One of them creates a class based on a FeatureTable. Normally, a FeatureTable is based on a service, such as the ServiceFeatureTable, and is usually stored in a database. But I need a FeatureLayer on the fly based on in memory data. So I thought in my case the FeatureCollectionTable would be the right way, because it is based on a FeatureTable and so I should be able to create a FeatureLayer from it. The following code is compileable: var fields = new List<Field> {new Field(FieldType.Text, "Field1", "Field1", 50)};
var table = new FeatureCollectionTable(fields, GeometryType.Point, SpatialReferences.WebMercator);
var featureLayer = new FeatureLayer(table);
MyMapView.Map.OperationalLayers.Add(featureLayer); But when executing this code, I got an exception: System.ArgumentException: 'Invalid argument: Cannot create a feature layer from a feature collection table. Add the feature collection table to a feature collection.' Now I'm a bit confused: Why can't I do that, a FeatureCollectionTable inherits from the FeatureTable? Is that a bug? Is this work as designed? A FeatureCollection doesn't get me where I want to be: Among other things, I want to be able to restrict data by DefinitionExpression, but this is only possible with the FeatureLayer. Kind regards, Max
... View more
05-06-2019
02:28 PM
|
0
|
5
|
2972
|
|
POST
|
Hi, I have to draw a very complex symbol for my point data. It has to visualize attributive data in the map by a customer defined standard they already used in the former software product. The composite symbol consists of a marker in the middle, some text information around it and two long lines crossing each other. In the center lies the point, the lines are supposed to visualize a range and a direction. Both information should be read from the attributes and used for the representation of the lines. In my tests I was able to draw the marker and the text information. But I do not know what's the best way to visualize the lines. What is the best way to combine the point symbol with the line symbol? Is it the MultiLayerSymbol? How could I visualize the line symbol based on its attributes by using ArcGIS Runtime code (Version 100.5)? Kind regards, Max
... View more
05-06-2019
09:05 AM
|
0
|
1
|
1020
|
|
POST
|
Hi, The documentation tells me how I have to deploy a configuration file for a user by putting it into the user directory. But what if I want to have it for all users on a machine? I do not want to deploy it in all user folders. Is there a different folder where configurations could be deployed or am I able to define a custom folder for this? Kind regards, Max
... View more
04-12-2019
12:09 AM
|
0
|
2
|
875
|
|
POST
|
So, with the fix it will be possible to suppress the message and also to implement my own handling without calling the default handling?
... View more
02-20-2019
04:07 AM
|
0
|
1
|
989
|
|
BLOG
|
Introduction Developing a mobile mapping application means a lot of work. Besides the obvious work - the development of the mobile client - cartography is a not inconsiderable part of the whole work. Maps have to be designed that combine information from many different sources and then provide them in a mobile data format. But if the product of this export is also valid and displayed correctly in the mobile client you will not see it until you open the caches in it. So: How can you be sure, that your caches are valid as expected? In fact, there is currently no standard tool for checking caches. So if you have not completed any application, you had no way to check the data export. Until now. Because now there is a tool called ArcGIS Runtime Explorer, available on GitHub for free, which was developed exactly for it. View the mobile content This application was created by Esri Germany developers to facilitate their daily work. Just open and check a mobile geodatabase or the newer mobile map package format? No problem. It even supports multiple maps of an MMPK, as well as embedded locators. Raster data is also supported, both as part of the caches and as additional content to easily orient yourself. All data is displayed in a map, along with a legend with all symbols. Even bookmarks are evaluated and can be displayed. So far all the standard functionality that one would expect from a finished client. Get a deep insight But there is a lot more in this tool. It shows a lot of little additional information that you would not get so obvious in most other applications. How many layers does the cache actually have and how many are editable? Are all layers currently visible or are individual elements just hidden due to the current scale? Where is my map extend and how tall is it? What is the extend of each layer? Is it congruent with other layers or are they different? Do things that no one has ever done before But it's not just about looking at data. I am even able to manipulate this data. For example: I do not want to zoom in too deeply into the map because the background map will otherwise blur. From when that is the case I would like to test out and set therefore on the Map object the MaxScale property. In addition, I should not be able to zoom out more than on my country, so just try it quickly, as this fits best in the map, read off the scale factor and enter as MinScale property - done. Another example: the representation of my surfaces turns out to be opaque, in the truest sense of the word. The underlying base map is no longer recognizable. Practically, I can adjust the transparency so that I get the best possible view. It is even possible to set a filter on a layer using SQL Where condition and thus limit the displayed features. Perfect Tool? What is perfect? But it helps a lot if you do not have to put the same functions into an application over and over again just to look at a mobile cache. And this tool provides just a lot more information and possibilities. In addition, the tool is maintained and further developed, because it is just used. Moreover, because it is under a free Apache license, anyone can make changes to it and also give it back and thus contribute to the improvement of the tool. Therefore: it's free, use it!
... View more
02-15-2019
12:39 AM
|
2
|
0
|
715
|
|
POST
|
No help so far? I get this error in any ArcGIS Pro application (unmodified or configured, that does not makes a difference) for any .xlsx or .gpx file type, but not for .csv, which loads automatically a standalone table into the content list.
... View more
01-20-2019
11:39 PM
|
0
|
3
|
989
|
|
POST
|
Hi, I use a tool from ArcGIS Pro to convert data from Excel by drag and drop on the map pane. I used this example as template, but instead of executing this part automatically ... var result = await Geoprocessing.ExecuteToolAsync("MakeXYEventLayer_management", new string[] {
xlsTableName,
"POINT_X",
"POINT_Y",
xlsLayerName,
"WGS_1984"
}, environments); I want to call the tool in the GP pane, which lets the user the possibility to change settings: var paramValues = Geoprocessing.MakeValueArray(xlsTableName, string.Empty, string.Empty, layerName);
var path = Path.Combine(@"C:\Program Files\ArcGIS\Pro\Resources\ArcToolBox\Toolboxes\Data Management Tools.tbx", "MakeXYEventLayer");
Geoprocessing.OpenToolDialog(path, paramValues); This works fine, but of course the user has now to execute the tool manually and after that, I want to call the ApplySymbology Tool (as in the sample code shown): await Geoprocessing.ExecuteToolAsync("ApplySymbologyFromLayer_management", new string[] {
xlsLayerName,
@"C:\Data\SDK\Default2DPointSymbols.lyrx"
}); But how do I get the event when the user has executed the MakeXYEventLayer Tool? Kind regards, Max
... View more
01-08-2019
09:46 AM
|
0
|
1
|
761
|
|
POST
|
Hi, I am implementing a custom configuration based on ArcGIS Pro and I have to implement a drop handler for my map pane to accecpt custom Excel files. But I always get an error message box telling me, that the import of data has failed: "Failed to add data, unsupported data type" I first thought this is caused by my own implementation, but it is not. There seems to be a default drop handler (because I also get the error in an unmodified ArcGIS Pro instance) and I would like to know how I could remove this one. I know my files have a custom format, thats why I'd like to implement my own handlers. Any hints? Kind regards, Max
... View more
01-08-2019
09:30 AM
|
0
|
4
|
1089
|
|
POST
|
Actual Version 10.6, and this problem is still not fixed.
... View more
12-11-2018
01:42 AM
|
0
|
0
|
2232
|
| 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
|