|
POST
|
I'm using the geodetic move function to calculate the location of marine mammal sightings based on the current vessel location and various bearing and distance values from different field gear (theodolite, Big Eyes, reticle binoculars, etc...) NSArray *movedPoints = [pointEngine geodesicMovePoints:pointArray byDistance:distance inUnit:AGSSRUnitMeter azimuth:bearing]; When I first display the attributes things look fine: As you can see the "Sighting Location" attribute is displayed as valid lat/long values. That table row is displayed using the following logic: AGSGeometryEngine *sightingEngine = [[AGSGeometryEngine alloc]init]; AGSGeometry* sightingGeometry = [sightingEngine projectGeometry:[self.feature geometry] toSpatialReference:[AGSSpatialReference wgs84SpatialReference]]; cell.detailTextLabel.text = [NSString stringWithFormat:@"%f, %f", [sightingGeometry.envelope.center x], [sightingGeometry.envelope.center y]]; If we perform the offset calculation again (say someone edits the reticle count and re-saves the record) the attributes displayed by the same cell logic produce this result: As you can see the values for Sighting Location are now displaying a very small number for Lat/Long based on the same attributes (feature.envelope.center). This value appears to be the offset applied to the feature, not the actual Lat/Long of the geometry. If I close down the view and reload (which re-selects the feature from the geodatabase) the table appears as expected, with the correct Lat/Long values. Can anyone explain what I'm seeing here? Is the geodetic offset being stored in a business table somewhere in the geodatabase until the AGSGDBFeature variable is de-allocated or something? If that is the case, is there some way I can force the database to apply waiting edits to the feature besides saving it?
... View more
02-19-2016
11:35 AM
|
0
|
1
|
1971
|
|
POST
|
We have a winner! Turns out the new credentials were created by an account in the Publisher role. The user was elevated to Admin and the data is checking in without issue.
... View more
02-10-2016
03:23 PM
|
1
|
0
|
3397
|
|
POST
|
We've run into a bit of an issue checking in field data from a mobile app. We have an app installed on client infrastructure that requires the use of a token to connect to the host ArcGIS Server. Their field crew checked out a number of databases using a token generated by an employee who then left for another job. Since that token is no longer valid we switched to a new one created using the credentials of another employee. When trying to check in data from one of the replicas created using the old token we get a strange error: "No permissions to sync replica: {long replica ID string}" This error message would appear to indicate that the replica is somehow tied to the token (and user account) that was used to generate it. Is this correct? Has anyone else seen this error? Any suggestions to work around this issue are appreciated, we have a significant amount of filed data waiting to check-in I'm not really looking forward to converting a stack of runtime databases to file geodatabase and manually adding the data.
... View more
02-04-2016
05:27 PM
|
0
|
2
|
6749
|
|
POST
|
I think we figured out the issue. For all the geodatabase tasks the system dutifully uses the token and referer as defined when initializing the AGSCredential EXCEPT the uploadPart task uploadPart seems to be hard coding in a referer of "arcgisios". This of course is not the referer used to generate the token so the request fails. If we re-generate the token to use the magic word (arcgisios) as the referer the whole thing works fine. I'm guessing this is a left over hard-coded value from development or something, maybe something that can be fixed with an update?
... View more
01-19-2016
03:32 PM
|
1
|
1
|
3111
|
|
POST
|
Hmm looking at the requests being sent it appears that when I sync with new data it: Registers the upload database with the upload task (this is correctly showing the token as one of the request variables) Attempts to upload a geodatabase part. This task includes the token in the URL, but it is not appearing as a request variable... the only variables that show up are the format (JSON), partID (0), and file name (longGUID_0.geodatabase)
... View more
01-19-2016
02:05 PM
|
0
|
0
|
3111
|
|
POST
|
I turned off security and tested an upload with Charles running - it looks like the token is being sent. Here's what Charles sees: http://path.to.server/arcgis/rest/services/Alaska/ADFG_Subsistence/FeatureServer/uploads/i2e0c73b3-f571-4816-8039-9c2f64c79bb6/uploadPart?token=validTokenIJustCreated So the token is being sent but for some reason it is not authenticating correctly when used with the uploadPart endpoint.
... View more
01-19-2016
12:32 PM
|
0
|
0
|
3111
|
|
POST
|
That's right - I'm using that AGSCredentials object with my sync task self.gdbTask = [[AGSGDBSyncTask alloc]initWithURL:[NSURL URLWithString:kFeatureServiceURL]credential:appDelegate.mapCredential]; When I initially implemented this method I turned off all security so I could see the token being passed when the database was requested and synced. I'll double check to see if it is being passed in the upload task.
... View more
01-19-2016
11:30 AM
|
0
|
0
|
3111
|
|
POST
|
Hi Gagandeep - thanks for jumping in on this one. I'm using an AGSCredential object created using the following appDelegate.mapCredential = [[AGSCredential alloc] initWithToken:serviceToken referer:kFeatureServiceURL]; [appDelegate.mapCredential setAuthType:AGSAuthenticationTypeToken]; Where servcieToken is a valid token and kFeatureServiceURL is the URL to the feature service rest endpoint. As I mentioned above, this is sufficient to download an offline database, and sync the database with no new data present. It errors out and fails when trying to upload new data. AGSCredentials created with a username and password do not have this issue.
... View more
01-19-2016
10:56 AM
|
0
|
6
|
3111
|
|
POST
|
Ha - this sounds like one of those times where it is your job to step in as the professional in the room and put your client on the right path 🙂
... View more
01-14-2016
04:50 PM
|
2
|
0
|
3054
|
|
POST
|
We are using GUID fields in one of our new apps to store primary/secondary keys. In the past we've used GUID/UUID but stored them in plain old text fields. When querying this data in the ArcGIS Runtime using an AGSQuery object we are running into some strange behavior. If we select a GUID field out as an NSString or NSUUID object it returns something like this: 9f6d8cac-19b4-4e24-af96-4654aac8287e Note that this is not quite the same as GUIDs when viewed in ArcGIS - they don't have the curly brackets {}. The strange thing is that if I then try to use this value in a query, say to get all records for a feature with this primary key, I have to manually add the brackets back in like so: query.whereClause = [NSString stringWithFormat:@"SurveyID = '{%@}'",[self.surveyID uppercaseString]]; Note that in addition to manually adding the curly brackets back in, I've also had to convert the string to upper case. If I don't do this I have to use the LIKE operator instead of =. Any idea why GUID fields are behaving so strangely? I'm worried that records I create in the mobile app using a new UUID (iOS version of GUID) won't check in correctly, or the value will be altered when checked in. Any ideas why the query behavior of this data type is so inconsistent?
... View more
12-22-2015
04:41 PM
|
0
|
1
|
3590
|
|
POST
|
We are migrating a mobile app to client infrastructure. The are requiring us to use a pre-generated token to access secured feature services. No big deal, we wire up the AGSCredential object to use the provided token. Download and test sync (with no data) works fine. We are seeing an issue when uploading new data to sync. It appears that the token is not being sent along with the data to the feature service's upload endpoint. The error we are seeing is like this: Error Domain=NSCocoaErrorDomain Code=401 "Empty username/password" UserInfo={NSURL=https://url.for.server/path/to/service/ServiceName/FeatureServer/uploads/randomUUID/uploadPart, NSLocalizedDescription=Empty username/password} This is the same error we see when the token isn't set correctly, or the referrer URL isn't set. Makes me think the token from the credential isn't being sent along with the upload. I've checked the token and referrer in chrome and I can access the upload endpoint from there This thread from over in .NET land would seem to confirm my suspicion: GeodatabaseSyncTask + token Divesh Goyal Matt Cooper
... View more
12-16-2015
04:10 PM
|
0
|
8
|
6355
|
|
POST
|
iPhones do use the cell network to speed up the process of determining a GPS position, but are perfectly able to do so without any network connection whatsoever. In our experience iOS devices have been more than adequate compared to a Garmin. In some cases a Garmin is still better suited for data collection, and we pretty much always send one out with our field crews for backup purposes and to collect a track. That said, a Garmin is generally not at well suited for collecting data with expensive attributes, related records, etc... You might try turning WIFI and Cellular Data off for your testing rather than activating Airplane mode.
... View more
12-09-2015
06:22 PM
|
0
|
0
|
2113
|
|
POST
|
CocoaPods does keep a local cache of downlaods - so you aren't downloading everything each time you do a pod install.
... View more
11-17-2015
02:53 PM
|
1
|
0
|
2221
|
|
POST
|
Not sure about reducing size - but we check the podfile into the repo on our projects, but not the pods themselves. That way a dev can easily spin up a project by doing a pod install, but we are not loading up our repos with tons of copies of the same libraries (we have a lot of projects).
... View more
11-17-2015
09:56 AM
|
0
|
5
|
2221
|
|
POST
|
Yeah Geneq hasn't ever been very responsive to our direct inquiries. We go through GeoMobile Innovations out of Corvallis, OR for our iSXBlue and EOS Arrow units. They are very responsive and helpful with sales and support. Rich Ash is the sales guy we've worked with over there. He's been pretty fantastic whenever we've had questions, issues, or even when we needed to rent some units for short term gigs. Mobile Geographic Information Systems
... View more
11-04-2015
04:53 PM
|
1
|
1
|
1282
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 03-06-2024 10:15 AM | |
| 1 | 05-18-2022 03:07 PM | |
| 2 | 06-05-2023 09:15 AM | |
| 2 | 12-04-2022 10:01 AM | |
| 1 | 12-13-2022 12:38 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-03-2025
02:21 PM
|