POST
|
Yes, thanks for the reminder about disposing objects. I was wondering, are Row and Feature objects meant to be short lived, or is it OK to keep them in memory? What are the best practices?
... View more
05-30-2018
11:39 PM
|
0
|
1
|
57
|
POST
|
Yes, working on a MapMember works. In this case though, I was trying to edit a featureclass that was not added to a map.
... View more
05-30-2018
11:36 PM
|
0
|
0
|
57
|
POST
|
I am playing with the ArcGIS Pro SDK, and got stuck when trying to delete a feature from a featureclass using an EditOperation. While FeatureClass.DeleteRows() works fine, the following code throws an error: No parameterless constructor defined for this object. var result = await QueuedTask . Run ( ( ) = > { using ( var gdb = new Geodatabase ( new FileGeodatabaseConnectionPath ( new Uri ( @"C:\Data\Test.gdb" ) ) ) ) { var fc = gdb . OpenDataset < FeatureClass > ( "punten" ) ; var cursor = fc . Search ( null , false ) ; if ( cursor . MoveNext ( ) ) { var editOp = new EditOperation { Name = "Een test" } ; editOp . Delete ( cursor . Current ) ; return editOp . Execute ( ) ; } return false ; } } ) ; Also, modifying a feature works perfect: editOp . Modify ( cursor . Current , "test" , "Hello" ) ; Am I missing something?
... View more
05-30-2018
02:42 AM
|
0
|
6
|
286
|
POST
|
When I make a call to GetRowsRelatedToOriginRows on a relationshipclass, where the destination class is a FeatureClass (not a Table), I get a list of Row objects. I would expect I could cast these to Feature objects, but then I get an InvalidCastException. I can cast row,GetTable() to a FeatureClass, so I'm positive I am looking at the correct table. Am I overlooking something? Or should I make an additional request to get the actual Features instead of Rows?
... View more
05-23-2018
02:08 AM
|
0
|
1
|
61
|
POST
|
The script probably needs to access the network, so I'd try the system account 'NETWORK' first. Obviously, the account needs to be able to access the .mxd and the .ags connection file as well, so you might want to check that (use procmon: Process Monitor - Windows Sysinternals | Microsoft Docs) . Another thing to check would be proxy settings, if you have one. Those might be configured for your personal account, but not for others.
... View more
04-05-2018
06:04 AM
|
0
|
0
|
56
|
POST
|
Which user account is set to run the scheduled task? Does it have the necessary privileges?
... View more
04-05-2018
12:20 AM
|
0
|
2
|
56
|
POST
|
Hi, I have a featureclass with a 1:n relationship to a table. When I create a replica with ArcGIS Server, it seems that only records from the table that are actually related to a feature are synced. Is there a way to synchronize all table records? I want to use the table as a lookup table, so all values should be available. I realize I could use a coded value domain, but in this case, additional values may be added to the table by end users, and obviously they can't change the domain.
... View more
08-30-2017
08:05 AM
|
0
|
0
|
174
|
POST
|
What you need to do is to publish the Historical Archive. Open ArcMap Add the Archived featureclass. This contains the current view of the features, i.e. the latest version. You don't have GDB_FROM_DATE and GDB_TO_DATE. Open the Geodatabase History toolbar Select the featureclass in the TOC and click on the Add Historical Archive button This will add a new layer to the TOC, containing all features, including both time fields Optionally, enable time on that layer and specify the start time and end time fields. If you do this, you can specify the time field in a REST call to ArcGIS Server. If you don't, you can still query the history, but you need to build the where clause including a date manually Publish as a mapservice As far as I know, _H tables are created the moment you disable archiving and choose to maintain the history. Enable and disable again will create _H1, _H2 et cetera. Berend
... View more
07-20-2017
05:22 AM
|
4
|
3
|
79
|
DOC
|
Adding a WMS service to ArcGIS Pro is very simple and straightforward, but you must know which classes to use. Since the documentation is severely lacking in examples, I thought I'd add it here. using ArcGIS . Core . CIM ; using ArcGIS . Desktop . Framework . Threading . Tasks ; using ArcGIS . Desktop . Mapping ; // Create a connection to the WMS server var serverConnection = new CIMInternetServerConnection { URL = "Fill in the URL of the WMS service" } ; var connection = new CIMWMSServiceConnection { ServerConnection = serverConnection } ; // Add a new layer to the map await QueuedTask . Run ( ( ) = > { var layer = LayerFactory . CreateLayer ( connection , MapView . Active . Map ) ; } ) ; Adding a WMTS or a WCS works exactly the same way, just alter the type of the connection variable. Oh, and before anyone asks, Identify on a WMS only works if a geographical coordinate system is used. Projected does not work at this moment ( BUG-000099054 ).
... View more
09-13-2016
12:21 AM
|
5
|
0
|
1965
|
POST
|
So, I got an answer from our Esri support desk in The Netherlands. It seems that identify on WMS is only supported for WGS84, and not for any other coordinate system. UPDATE: In a follow-up, I was told that Identify works on geographical coordinate systems only. Projected coordinate systems do not work at this moment. This is filed by Esri as BUG-000099054.
... View more
08-24-2016
03:57 AM
|
1
|
0
|
36
|
Online Status |
Offline
|
Date Last Visited |
4 weeks ago
|