POST
|
Thank you for your replies! We've investigated the problem further and found out something interesting: Our geo-data will be displayed if we do the following two things after creating the FeatureLayer: Invoke SaveEditsAsync() on the current Project. Invoke Redraw() on the active MapView. Neither operation is sufficient on on its own, you need to do both of them! So, unsatisfiying as it may be, we'll use this workaround until someon comes up with a better solution...
... View more
09-16-2020
06:45 AM
|
0
|
0
|
316
|
POST
|
4 weeks have passed since I posted this question. In the meantime, we've tried every conceivable way to get this to work, but to no avail... Seems we have a profound misunderstanding of how layers relate to their database tables. Some more background: We have an ArcGIS Pro Addin with a remote interface to a client application. When the addin initializes, it creates the database with the appropriate tables. Afterwards, the client application may start sending "draw requests" to the Addin. Once the user opens a map view, the Addin reacts by adding the expected feature Layers. However, even though there's already data in the dataset, nothing appears on the Map
... View more
09-15-2020
12:02 AM
|
0
|
2
|
316
|
POST
|
Hello, I'm using LayerFactory.Instance.CreateFeatureLayer(...) to create new Layers based on .lyrx files. The Layer's "dataset" references an existing feature-table in the geo-database. What I expect: ArcGIS Pro creates the new layer and renders the existing geo-objects from the feature-table. What happens: ArcGIS Pro creates the new layer, but does not render any objects. The layer is empty. However, when I open the Layer's "attribute table", using the context menu, I can see the data! Obviously, I'm missing something. Is there a way to enforce the rendering of existing data programmatically?
... View more
08-19-2020
01:59 AM
|
0
|
4
|
392
|
POST
|
Hi Gintautas, thanks very much for your quick reply. That solved the problem for me! I have to admit I didn't take into account that, in DotNet, a cast from null to another type can actually fail - if that type is a struct! I guess that programming Java for 20+ years has spoiled me somehow Regards, Gernot
... View more
04-08-2020
10:59 PM
|
0
|
0
|
773
|
POST
|
How do I obtain a NULL value from an ArcGIS.Core.Data.Row? I have a nullable field "Timestamp" in the Database. When I iterate using a RowCursor, I can find no way to obtain that NULL value using the ArcGIS Pro SDK for DotNet. I get a valid Row object and I can access all the other fields using the Indexer, just not the NULL field! Something like this: while(cursor.MoveNext()) {
Row row = cursor.Current;
DateTime timestamp = (DateTime)row["Timestamp"]; //Works only if not NULL. Throws NullReferenceException otherwise
}
... View more
04-08-2020
05:00 AM
|
0
|
3
|
832
|
Online Status |
Offline
|
Date Last Visited |
04-19-2022
06:48 AM
|