|
POST
|
Also there could be a way around this if maybe I could update all the textelements for a layout with one call? Instead of looping through them and changing them. Can't seem to be able to do that in bulk.
... View more
04-12-2021
01:34 PM
|
0
|
0
|
4630
|
|
POST
|
I am attempting to update a layout template by iterating through the text elements and changing the values of the template to something about the users map/settings. I am able to loop through and change all the text elements, but I want to do all of the text elements at the same time. I have a list of all the elements and the changes I want to make to each of them, but they always seem to run syncronously instead of in parellel? What am i missing here? The SetTextProperties is slow so I want to do about al 50 updates in parellel? //I have a list of object TextElementUpdate and updates to them
var tasks = new List<Task>();
foreach (TextElementUpdate teu in textElementUpdates)
{
//Shouldn't this line happen instantly and the whenall will wait?
//This line I want in parellel, so like 50 running at once, instead it is sync
tasks.Add(teu.UpdateTextElement());
}
//Wait for all the tasks to finish
await Task.WhenAll(tasks);
//-------------------------------------------------------------------
class TextElementUpdate
{
public TextElementUpdate(TextElement textElement, TextProperties textProperties)
{
TextElementToUpdate = textElement;
NewTextProperties = textProperties;
}
public TextElement TextElementToUpdate { get; set; }
public TextProperties NewTextProperties { get; set; }
public Task UpdateTextElement()
{
return QueuedTask.Run(() =>
{
TextElementToUpdate.SetTextProperties(NewTextProperties);
});
}
}
... View more
04-12-2021
10:15 AM
|
0
|
9
|
4685
|
|
POST
|
I will give this a shot. I think in my case two points can not share the same location. So I could do this and flag the field. I will try and implement something like this now and post my solution or what I came up with.
... View more
03-25-2021
11:30 AM
|
0
|
1
|
3243
|
|
POST
|
The result would be without that knot in the middle of the drawing. This is where someone either turned around in the area while walking/driving or digitizing. So it made a loop. I am able to add points and remove the self intersection, but i am interested in either flagging or removing this part completely (Filled in with green).
... View more
03-25-2021
09:14 AM
|
0
|
0
|
3251
|
|
POST
|
I need to find a way to remove Loops or Knots when a user saves a new edit. These polygons that I create are sent to as boundries for images to be gathered and some are being rejected because of these self intersecting loops. They are not self intersecting as they dont have self intersections as two vertices are added. I need a way to either find the loop/knot or remove it automatically. My removing self intersection code doesn't seem to fix this issue. It appears I need to remove the loop entirely. protected void RemoveSelfIntersections()
{
try
{
Geometry originalShape = _dataInspector.Shape;
if (!GeometryEngine.Instance.IsSimpleAsFeature(originalShape))
{
Geometry intersectionShape = GeometryEngine.Instance.SimplifyAsFeature(originalShape, true);
}
}
catch (Exception e)
{
}
}
... View more
03-24-2021
10:58 AM
|
1
|
5
|
3302
|
|
POST
|
I have discovered that some of the polygons that users are bringing into my system and creating a new object from have self intersections. I need to be able to first detect if a self intersection exists, and if it does then repair it automatically. Is SimplifyAsFeature the best method to do this with for both detection and fixing? protected Geometry FixSelfIntersections(Geometry inGeometry)
{
//I want to see if it has self intersections FIRST??
bool isSelfIntersecting = NEED TO FIND FIRST??;
//Fix if it has intersections
if (isSelfIntersecting)
{
inGeometry = GeometryEngine.Instance.SimplifyAsFeature(inGeometry, true);
}
return inGeometry;
}
... View more
03-16-2021
09:04 AM
|
0
|
1
|
4567
|
|
POST
|
I am out of ideas on how to logout of oauth in the app. I can login to portal in the browser and sign out of browser but it does not sign me out of app. App always gets with code back from oauth/authorize link. How do I tell app to logout. I have tried all possible links to do this.
... View more
01-17-2021
07:59 AM
|
0
|
0
|
2420
|
|
POST
|
I want to sign out much like the web portal does and it redirects me to azure logoff? But in my appstudio app built off of survey 123 I can seem to do this. The oauth is always returns an auth code and accepted when I hit my portal authorization url from OAuthSignInView. I need to be able to signout somehow using Azure AD link or something
... View more
01-14-2021
01:08 PM
|
0
|
0
|
2435
|
|
POST
|
I use the OAuthSignInView from the Survey123 template and i have switched to Azure AD credentials. Whenever i logout in my app I use to just remove the token from my app, but now I use the azure ad credentials. So when I log back on, the OAuthSignInView continues to return a success code or authorization code because I haven't logged out of the Azure AD? What do i need to do to tell portal to of that azure AD. I tried to use the logout URL in my code, but that didn't seem to log me out either?
... View more
01-14-2021
08:18 AM
|
0
|
0
|
2437
|
|
POST
|
I have moved my login from ADFS to AzureAD. I am able to get our AD login screen and get logged into our app, but my logout no longer works. Do i have to call a signout url directly from my qt code now? I am using the Portal code from survey123 template. I have just modified the code to have a different front end and flow. I just cant seem to get logged out. Everytime I logout, my application tries to authenticate again and passes as it doesn't look like portal logged out of my AzureAD.
... View more
01-13-2021
07:41 AM
|
0
|
4
|
2458
|
|
POST
|
I think I found out how to fix my issue on IOS. It seems like this has to do with the kPluginArcGISRuntime for our iphones with osVersion > 12. When i set the defaultMapPlugin back to kPluginAppStudio it works for my iphone running 14.2. I updated this code in AppSettings and it seems to now work? I actually just rolled back this line of code to what I have in the last version of survey123 code. Has anyone else experienced this??? Comment out this in appsettings //readonly property string kDefaultMapPlugin: getDefaultMapPlugin() Add this back in readonly property string kDefaultMapPlugin: app.info.propertyValue(kKeyMapPlugin, "AppStudio")
... View more
12-14-2020
09:56 AM
|
0
|
0
|
3358
|
|
POST
|
Can you confirm that the geopoint geopoly survey works on your end for a survey with the iOS build?
... View more
12-09-2020
01:01 PM
|
0
|
1
|
3389
|
|
POST
|
So I was able to get my local build to work and I see the same issue, but on my local build I am not even able to open the capture screen in ios only. Here is the appstudio (correct) version that I can click on and bring up the geopoint or geopoly capture Here is the bad iOS version that i cant even click in to bring up the capture screen
... View more
12-09-2020
10:04 AM
|
0
|
0
|
3393
|
|
POST
|
I was able to get this to build locally with your suggestions above. My Mac is Big Sur and I rolled back the XCode to 11. I was not able to roll back the command line tools because I was using Big Sur, but it looks like the command line tools 12 worked. I used Qt5.13.1 along with AppStudio 4.3. This seems to have done the trick.
... View more
12-09-2020
09:48 AM
|
0
|
0
|
2235
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-23-2018 06:49 AM | |
| 1 | 08-02-2023 08:28 AM | |
| 1 | 01-03-2020 10:54 AM | |
| 1 | 11-30-2017 06:41 AM | |
| 1 | 08-20-2018 01:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
01-27-2026
08:03 AM
|