POST
|
What about if you allowed your users to browse to the shapefile on disk and used the Add shapefile JavaScript sample to generate a feature collection. You could then make a request to add features or use ArcREST to add the feature collection to the existing hosted feature service. The big issue I foresee is schema. Is the schema between the shapefile and feature service going to be the same?
... View more
03-10-2016
08:34 AM
|
2
|
1
|
1101
|
POST
|
No problem Robert. You can definitely accomplish this tasking and we do have a suite of out of the box tools to allow users to edit data and have it auto-sync (add features) to existing hosted feature services on ArcGIS Online or ArcGIS Server services. Check out the Edit Widget in Web AppBuilder or ArcGIS Online has baked in editing tools and allows you to publish data from XY information. I think the answer to your question comes down to how your users will be adding data to the application. Will they be manually selecting points, adding a .csv of XY features from your GPS devices, etc. Based on what you want to support you can use our APIs to extend existing functionality that you see in the app builders and work with services and the add features endpoint.
... View more
03-10-2016
06:38 AM
|
2
|
3
|
1101
|
POST
|
Could you consider using the add features endpoint?
... View more
03-09-2016
11:34 AM
|
0
|
5
|
1101
|
POST
|
Hi Anas Kanaan it looks like there is a current issue with the where clause and the labelClass and I have experienced the same behavior as well. From my experience, if you need to use custom logic with labels in JavaScript it's easier to: 1. Publish Annotation from ArcMap 2. Use a TextSymbol instead of a LabelClass. Go the service and get the labels you need, then consume them with a TextSymbol. This gives you more fine-grained control.
... View more
03-09-2016
08:43 AM
|
1
|
0
|
360
|
POST
|
I encountered this as well. As raffi a mentioned you can workaround this issue on devices that have a 64-bit ARM processor by changing the build settings architecture section to build for armv7 instead. In the section in xcode change 'Architectures' to '$(ARCHS_STANDARD_32_BIT)' and change 'Valid Architectures' to armv7 only.
... View more
12-02-2015
11:33 AM
|
1
|
0
|
352
|
POST
|
Hi Aaron, I just encountered this issue myself and located this post. What I discovered was very similar to you, as soon as I set canRunInBackground to true in an existing .pyt I noticed the 'Always Run in foreground' in the .pyt's properties from the Catalog window was still checked on. (Even after a File > Save and a catalog window refresh) class Tool(object):
def __init__(self):
self.label = "Tool"
self.description = ""
self.canRunInBackground = True As soon as I did File > Save As to re-create the .pyt from the IDE everything worked and the custom tool was able to be executed in the background. Just make sure background processing is enabled in Geoprocessing > Geoprocessing options as well. It looks like for existing python toolboxes it does not auto recognize that this option has been changed and it still runs in the foreground despite changes made to the source code. Hope this helps!
... View more
05-05-2015
02:11 PM
|
1
|
0
|
930
|
POST
|
Hey Nathan, Are you doing something similar to this documentation for selecting the records interactively? If you are selecting the records of the feature layer in the map document then you would need to process that same feature layer with the search cursor. In your script it looks like you are referencing a hardcoded input fc which is not the same layer that is in the map document: fc = "C:/Users/username/Documents/ArcGIS/Default.gdb/script_input" That variable would need to reference the in-memory feature layer. Check out the arcpy.mapping module in order to accomplish this. In order to avoid the in-memory processing I believe the Select Layer By Attribute tool could be used in the script to select records from your harcoded FC. This would not allow you to select attributes interactively though. Let me know if you have any specific questions about that and best of luck! Thanks, David
... View more
04-22-2015
08:27 AM
|
1
|
1
|
1211
|
POST
|
Greg, no problem. At this point in time it doesn't look like iOS devices support KML. Toggle the 'Viewing Android | iOS' button on this help doc: Supported data—Collector for ArcGIS | ArcGIS If you need to use the KML data type (android only) it looks like there may be a workaround for getting KMLs in Collector via Add > Add Layer From Web > A KML File but I haven't had the chance to test it yet. Let me know if you have an Android device to test on!
... View more
04-17-2015
07:34 AM
|
1
|
0
|
458
|
POST
|
Hi Greg, KML layers not showing up in web maps consumed via Collector (Android) is a known issue and has been documented. NIM101060 - KML in Collector In the meantime you will have to use a different supported format (as you mentioned) or publish the data as a feature service.
... View more
04-17-2015
05:19 AM
|
1
|
2
|
458
|
POST
|
Hi Nathan, The cursor will honor a selection and would work similar to other geoprocessing tools when a selection is applied to the data that is being processed (only the selection gets processed). You could select the attributes manually in the attribute table or use the Select Layer By Attribute tool within your script and build in a SQL expression to select the records you would like to add. Let me know what you think!
... View more
04-10-2015
07:38 AM
|
1
|
3
|
1211
|
POST
|
Hi Brian, Thanks for your quick follow up. So it sounds like recreating the web map and feature services resolved the issue for you? It also sounds like this was an intermittent issue when syncing the feature service - it did not occur every single time you synced but it was noticeable enough to re-create the feature service? The following blog post has some good 'best practice' tips for working with syncing data and offline use out in the field. One thing I have seen that can cause this sync issue to arise is when schema changes occur after the feature service has been published and in between a sync from a mobile device in the field. Take a look at the 'Map Schemas and Managing Change' section of the following blog post for some additional information: Collector – Disconnected editing and sync | ArcGIS Blog You can report any errors you encounter during the upcoming data collection season with Esri Technical Support if you have maintenance available. In addition the user community on GeoNet will commonly suggest additional best practices and share tips on what works in their field collection practices. As you are probably aware, the Collector for ArcGIS place is a good resource for questions on GeoNet. Thanks, David
... View more
02-26-2015
11:02 AM
|
2
|
0
|
364
|
POST
|
Hi Brian, I realize it has been awhile since this post but were you able to resolve this issue? What version of collector and what version of iOS are you working with? In addition: 1. How many (roughly) features were collected when the error occurred? 2. Are attachments enabled on the feature services and did you take any photos in the field? 3. What is the geometry type of the service? (point, line, polygon...) 4. Are the features Z or M enabled?
... View more
02-26-2015
10:06 AM
|
0
|
2
|
364
|
POST
|
Hi David, I just tested this at 10.2.2 with two polygon layers and it appears to work as expected with Background Processing disabled (tool running in the foreground) in the Geoprocessing > Geoprocessing Options window. Is this the background geoprocessing you are referring to? In addition: 1. What type of geometry do the input layer and symbology layer have? 2. What type of symbology does the symbology layer have?
... View more
02-25-2015
10:05 AM
|
0
|
1
|
264
|
POST
|
Hi Adam, Have you considered the Point Distance (Analysis) tool? The 4th parameter search_radius could be used to determine points that are 'within a distance'. Or, the Spatial Join (Analysis) it has parameters for match option and a distance field name.
... View more
02-23-2015
09:16 AM
|
1
|
0
|
327
|
POST
|
Have you considered using the LayerTime object in the ArcPy mapping module? It exposes the time properties for a time-enabled layer. In order to reset the time extent (start time, end time, time step) on the reference layer you could use python's datetime module in combination with the arcpy.mapping LayerTime object. So ideally the workflow would be to first use the LayerTime object on the reference layer and next re-specify time properties of the target layer with this updated reference layer. Check out the documentation on it and let me know what you think: LayerTime (arcpy.mapping) python datetime module
... View more
02-04-2015
09:34 AM
|
1
|
1
|
272
|
Title | Kudos | Posted |
---|---|---|
1 | 04-10-2015 07:38 AM | |
1 | 04-22-2015 08:27 AM | |
1 | 02-04-2015 09:34 AM | |
1 | 02-23-2015 09:16 AM | |
1 | 03-09-2016 08:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|