POST
|
Newbie question of the day. I am writing a simple data editor using Xamarin Forms .Here is my issue: In my sample, when I access a selected feature in my feature service, I get a count of 4 for my feature service and I am expecting a count of 49. The Count is displayed using the ArcGIS Feature.Attributes.Count Property. So I can display and edit the attributes, but only a few of them. I have tried accessing other feature services from AGOL, and their counts are way off too. Its generally about 10% of the total number of attributes. I think the data is okay as I can access/display/edit the same feature service in a webapp using REST with the JavaScript API I just cannot access the data in the .NET Runtime Xamarin Forms Application. Anybody else come across this behavior?
... View more
05-30-2018
01:00 PM
|
0
|
3
|
747
|
POST
|
Novice Question: Can you provide any instruction on creating a side-panel and displaying attribute information?
... View more
05-16-2018
01:39 PM
|
0
|
0
|
2293
|
POST
|
Okay. I looked into the PopupManager Class. I can adjust a lot of the properties and create a popup object and assign it to a geo-element, but then i struggle to display the popup. In other words, i struggle with creating the User Interface part of the popup. I looked for sample code but its been tough. I was originally looking for method, something similar to popup.Show() or popUp.Display() but i am guessing now that its not that easy....... What would you recommend? Can i push my popup to callout? Anyway, i am interested to see what you would recommend.
... View more
05-15-2018
12:34 PM
|
0
|
0
|
717
|
POST
|
You might say i have the same question. I see sample code for a callout, but i am looking for sample code for a simple form that can be used to add/edit a feature. It sounds pretty simple but can't locate it...
... View more
05-11-2018
11:29 AM
|
0
|
2
|
717
|
POST
|
Wow. So, if i hear you correctly, the only way to display related information, from a one to many relationship, is using "count" and not as a string? That not that helpful. lol. Does anyone know an alternative?
... View more
02-21-2018
07:45 AM
|
2
|
0
|
895
|
POST
|
Check the COM Ports for sure. And compare that with the manual. The manual will let you know what COM Port is the GPS. Once it is aligned correctly, restart the device.
... View more
01-22-2018
10:31 AM
|
0
|
0
|
779
|
POST
|
Hi, I have a browser based application that uses the ESRI JavaScript API to access feature services from my AGOL account and edit them. Because its a browser-based, I can't make data edits when I am offline. Can anyone offer some good pathways I can follow to get my app working in an offline environment? I see that there is Appstudio, which may work, but it appears that is mostly QML, and i would rather not go that route. There is web app builder but i'm not sure if this will allow for offline use. Any suggestions?
... View more
11-06-2017
09:38 AM
|
0
|
1
|
1341
|
POST
|
I have the same question. I am using ArcRest to create replica in a .NET application. I know I need to pass in a username and password because the feature service is not public. I get the same error message you get because its looking for a token. Just looking for an example on how this would be completed. If anyone has a an example, I would love to see it. Many thanks in advance. The Kenerson Group
... View more
10-17-2017
07:21 AM
|
0
|
0
|
417
|
POST
|
Thank you Kelly, I was looking in the authentication details as I will need to generate a token so I can create my replica. The referrer parameter suggests that I will need a base url for the web app. Is this the case? If so, do you know if I need to register my application? Any help/suggestions/examples would be great if you have time.
... View more
10-13-2017
10:42 AM
|
0
|
1
|
1138
|
POST
|
Thank you. I ended up using ArcREST Create Replica. Hs an example for anyone else who may be looking for an example. string format = "f=json"; string replicaName = "replicaName=whatevername"; string layers = "layers=0"; string geometryType = "geometryType=esriGeometryPoint"; string returnAttachmentsDatabyURL = "returnAttachmentsDatabyURL=false"; string dataFormat = "dataFormat=shapefile"; string targetType = "targetType=client"; string attachmentsSyncDirection = "attachmentsSyncDirection=none"; string syncModel = "syncModel=none"; string reqString = FeatureServiceURL + "/createReplica?" + replicaName + "&" + layers + "&" + geometryType + "&" + returnAttachmentsDatabyURL + "&" + attachmentsSyncDirection + "&" + dataFormat + "&" + targetType + "&" + syncModel + "&" + format; Another hint: if you use format type json, its simple to get to url of the shapefile. Once you have that you can easily code to save it locally and extract it.
... View more
10-12-2017
01:01 PM
|
0
|
0
|
1138
|
POST
|
Thank you. This does the trick. It exports the data from a feature service to a locally stored shapefile. I prefer .NET because I am writing in in a desktop application that uses C# and I was looking to be consistent. To give you a little bit more information: The program I am working on uses a PGDB and it has a method to export the PGDB Feature Class to a shapefile for field editing in ArcPad. I am looking to enhance the product by writing a shapefile export for use in AGOL. So far, I was able to: 1)export the PGDB feature class to a hosted feature service in AGOL using ArcREST and JSON. 2)Write the AGOL application Data Editor in JavaScript. 3) Iand used .NET interfaces to read and import the data from a locally stored shapefile back to the PGDB Feature Class. This all works great. However, I am missing a step between #2 and #3 above. I don't know how to export my data from a hosted feature service to a shapefile that is stored locally on my PC. This option does not seem to be present in ArcREST, but maybe i'm just missing it. I the started looking at ArcObjects for.NET and I don't see an interface that states it can perform a feature service to shapefile conversion/export. I would think this operation would be straightforward as any user, with the proper credentials, can simply login to their AGOL account and export a feature service to a shapefile and then store it locally. I would just like to code this so my users don't have to do this every time they want to import their data. Any ideas where one may want to look.
... View more
10-06-2017
06:32 AM
|
0
|
4
|
1138
|
POST
|
Looking to code a feature service export to a shapefile. Preferably in .NET. Any idea?
... View more
10-05-2017
02:01 PM
|
0
|
6
|
1473
|
POST
|
It is pretty straightforward. I'm just new to rest. Here is a good example in case anyone seeing this is wondering string whereClause = "field_id>-1"; string reqString = "https://services1.arcgis.com/0PfllXX1nvjR0pWI/arcgis/rest/services/SHAPEFILE/FeatureServer/0/deleteFeatures?where=" + whereClause; Since all features have a field_id greater than -1, all features get deleted. Now I need to figure out how to export a feature service as a shapefile using rest. If I find something useful, I will post it here....
... View more
09-29-2017
02:16 PM
|
0
|
0
|
603
|
POST
|
Hi, I am having problems deleting all features within my feature layer using the following code. I'm guessing my mistake is in the reqstring . I am having a heck of a time trying to find examples of URL's that will delete all my features. Any suggestions? static Boolean DeleteAllFeaturesFromFeatureService() { try { string reqString = "https://services1.arcgis.com/0PfllXX1nvjR0pWI/arcgis/rest/services/SHAPEFILE/FeatureServer/0/deleteFeatures?site_id=1"; HttpWebRequest req = WebRequest.Create(new Uri(reqString)) as HttpWebRequest; req.Method = "POST"; req.ContentType = "application/json"; // Encode the parameters as form data: byte[] formData = UTF8Encoding.UTF8.GetBytes(reqString); //req.contentLength = formData.Length; // Send the request: using (Stream post = req.GetRequestStream()) { post.Write(formData, 0, formData.Length); } // Pick up the response: string result = null; using (HttpWebResponse resp = req.GetResponse() as HttpWebResponse) { StreamReader reader = new StreamReader(resp.GetResponseStream()); result = reader.ReadToEnd(); Console.WriteLine(result.ToString()); } return true; } catch (Exception ex) { Console.WriteLine(ex.Message); return false; } } }
... View more
09-27-2017
12:58 PM
|
0
|
1
|
1312
|
Title | Kudos | Posted |
---|---|---|
1 | 08-21-2018 12:15 PM | |
1 | 10-23-2020 11:58 AM | |
1 | 01-02-2019 01:37 PM | |
2 | 02-21-2018 07:45 AM | |
1 | 04-06-2017 08:37 AM |
Online Status |
Offline
|
Date Last Visited |
07-16-2024
12:46 PM
|