|
POST
|
I did the same thing as he did to get it to work with an Aneconda install. One thing you could do is just use the ArcGIS Pro install of python and add the packages for the python API (can event do with the Pro tools). What I did was copy the files in the /lib folder from a pro installation to the /lib folder in my Anecoda install. Not sure why but this fixed the issue with connecting using single sign on AD. I have had weird behavior with install, sometimes it has worked right off the bat, another I had to do as the original poster describes.
... View more
08-13-2018
02:43 PM
|
1
|
1
|
9166
|
|
POST
|
Our company already has a number of people with developer licenses, so for us the most cost effective was to re-provision how they were being used.
... View more
07-31-2018
07:32 AM
|
0
|
0
|
2298
|
|
POST
|
There is nothing requiring a user interface or the MapView control required by the API. You can create a .net console application and use the API. The geocoding just requires you make calls to LocatorTask. private async void ExecuteFindAddress()
{
try
{
LocatorTask geocodeTask;
geocodeTask = await LocatorTask.CreateAsync(new Uri(Constants.GeocodeUrl));
GeocodeParameters parameters = GetGeocodeParameters();
//this would just be any generic way of grabbing data
foreach (data in datas)
{
var searchValues = new Dictionary<string, string>
{
{ "address", string.IsNullOrEmpty(data.Address) ? "" : data.Address },
{ "city", string.IsNullOrEmpty(data.City) ? "" : data.City },
{ "region", string.IsNullOrEmpty(data.State) ? "" : data.State },
{ "postal", string.IsNullOrEmpty(data.Zip) ? "" : data.Zip },
{ "postalExt", string.IsNullOrEmpty(data.ZipPlusFour) ? "" : data.ZipPlusFour }
};
var geocodeResults = await geocodeTask.GeocodeAsync(searchValues, parameters);
GeocodeResult result = geocodeResults.FirstOrDefault();
//write my result to file
}
}
catch (Exception e)
{
//log error
}
}
private GeocodeParameters GetGeocodeParameters()
{
var parameters = new GeocodeParameters();
parameters.ResultAttributeNames.Add("City");
parameters.ResultAttributeNames.Add("Postal");
parameters.ResultAttributeNames.Add("PostalExt");
parameters.ResultAttributeNames.Add("RegionAbbr");
parameters.ResultAttributeNames.Add("StAddr");
parameters.CountryCode = "USA";
parameters.SearchArea = _fullExtent;
return parameters;
}
... View more
07-31-2018
07:27 AM
|
0
|
3
|
2176
|
|
POST
|
What I did eventually find out is that within an organization you are able to combine the named users for multiple developer licenses together. This is something an account rep would have to do, and likely is not aware can be done so it will take some effort to make it happen. So within our company some of our users now have no named users associated to their license and others have all those users attached to their account
... View more
07-30-2018
04:41 PM
|
0
|
2
|
2298
|
|
POST
|
It has been a while since I have looked into this. We actually changed to a versioned workflow using a non-federated ArcGIS Server (this allows reducing the version count to one - if you set to version per user). I don't really consider this the optimal solution because we lose security but it is an acceptable trade off because it works, and we get to keep versioning for the desktop editors. There is an additional oddity that esri uses a relatively short name for the version name of the created version (I think it is 24 characters but would have to confirm that) , so you can even get multiple services to sync to the same version if you put the services in a folder. The version name for a version associated to a replica generated from a non-federated AGS will be 'esri_anonymous\folder\servicename' but cut off at the 24(?) characters. It would not surprise me if esri never addressed the original issue described in the post.
... View more
07-19-2018
08:46 AM
|
0
|
0
|
2731
|
|
POST
|
It is a 10.5 patch, it will not work on any other version
... View more
07-19-2018
06:38 AM
|
0
|
2
|
4150
|
|
POST
|
This seems like a good start, but what is still needed is to be able to apply this to generating an offline replica from enterprise data (not hosted). Would love to see the Feature Layer Views add the functionality as this is sorely lacking today -Joe
... View more
06-25-2018
01:43 PM
|
1
|
0
|
5322
|
|
POST
|
It's a bit of a brute force approach but you could download the current WebMap definition through rest and then use the Map.FromJson to load it. That way you always load what is on the server. Something along these lines would get you the WebMap definition //_portal is a reference to the currently connected to portal
var handler = new ArcGISHttpClientHandler {ArcGISCredential = _portal.Credential};
string webMapJson;
//The portal item is retrieved from a bound list of 'listItem' type that has a property
// of type PortalItem for the selected list item
using (HttpClient portalClient = new HttpClient(handler))
{
//build the Url of the WebMap rest endpoint
Uri requestUri = new Uri($"{_portal.Uri.AbsoluteUri}/sharing//content/items/{listItem.PortalItem.ItemId}/data");
webMapJson = await portalClient.GetStringAsync(requestUri);
if ( string.IsNullOrEmpty(webMapJson) )
{
Log.Warn("Unable to retrieve WebMap data");
return;
}
} From here you should be able to just do var map = Map.FromJson(webMapJson)
... View more
05-29-2018
10:42 AM
|
0
|
1
|
2470
|
|
POST
|
Can you confirm none of the new layers are pointing to the same feature class as an existing layer
... View more
05-22-2018
11:32 AM
|
0
|
0
|
3539
|
|
POST
|
Yes...(and no?). If you just need to get at the Map object this is very easy. Just data bind the map from your VM and use in that way. I believe that the MapView object itself contains too much functionality and needs a way to share across an application. I believe this is possible while still using MVVM, others would disagree that the approach is MVVM. Accessing MapView methods like IdentifyGraphicsOverlaysAsync from viewmodel. But besides this very specific case, yes, the API is designed along these lines and you should be able to do what you need and use MVVM
... View more
05-21-2018
08:30 AM
|
0
|
0
|
1803
|
|
POST
|
I believe the only way to do this is at the service level. When you define the service only the visible fields are available to the service and only that data would be brought across the wire. I am not aware of a way to filter fields when creating a FeatureTable > FetaureLayer
... View more
05-10-2018
08:27 AM
|
0
|
0
|
890
|
|
POST
|
I was able to just toggle the DefinitionExpression off/on and have it work to refresh the view. If you are really paying attention you do see a bit of a flash, but so far the users have not complained. I loop through all the layers in the Geodatabase at the end of a sync and reset the DefinitionExpression like below string expression = layer.DefinitionExpression;
layer.DefinitionExpression = "";
layer.DefinitionExpression = expression;
... View more
05-07-2018
04:08 PM
|
0
|
2
|
1536
|
|
POST
|
You have me stumped. I have always been able to sync new features. It definitely appears that the geodatabase thinks it has edits, so not sure why when it synced it would not send them. The behavior you see that it then works after an update is equally puzzling. Curious, are you seeing this with multiple DBs you created? Have you tried using a different service and running tests using a replica from that service. Something else, do you have a definition expression tied to the feature layer, or is there a definition expression on the layers in the map document used in creating the service?
... View more
05-03-2018
09:14 AM
|
0
|
0
|
3426
|
|
POST
|
I have never observed this behavior, when I create a feature and a bidirectional sync runs it has always pushed that new feature up to the enterprise. I am curious if after you have done the add if you can then query the feature table for the new feature. That would indicate that it truly is there. Another thing to check after the add would be the Geodatabase.HasLocalEdits property and the GeodatabaseFeatureTable.GetAddedFeaturesAsync. These would give you some insight as to if the table thinks it has edits
... View more
04-27-2018
11:42 AM
|
0
|
3
|
3426
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-11-2026 09:07 AM | |
| 1 | 10-23-2025 12:16 PM | |
| 1 | 10-19-2022 01:08 PM | |
| 1 | 09-03-2025 09:25 AM | |
| 1 | 04-16-2025 12:37 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-23-2026
12:26 PM
|