POST
|
Thanks Khaled, this is excellent information, and looks as though it may solve my issue!
... View more
01-10-2019
03:29 PM
|
0
|
0
|
1252
|
POST
|
Hi Jayanta - a hosted feature layer view is exactly what I'm trying to create, however I need the structure of the view to be different to the hosted feature service.
... View more
01-08-2019
11:58 PM
|
0
|
1
|
1252
|
POST
|
Hi - I'm hoping that someone can assist me with this query. I have been unable to solve it on my own. I have a hosted feature service in AGOL that is accessed by multiple users for feature creation. It consists of 12 different layers - point, line and polygon, across 4 different environments (development, user acceptance, training and production). The sequence is: /0 - DEV points /1 - DEV lines /2 - DEV polygons ... through to ... /9 PROD points /10 PROD lines /11 PROD polygons For the purposes of consuming this data in another web app, I would like to create 4 different view layers, one for each of the operating environments (DEV, UAT, TRAIN, PROD). In this view layer I would like to reference the source twice to capture different time slices of the data, eg: DEV_VIEW /0 - points - would be a view of source layer /0, with only features created < 24 hours /1 - points - would be a view of source layer /0, with only features created >= 24 hours /2 - lines - would be a view of source layer /1, with only features created < 24 hours /3 - lines - would be a view of source layer /1, with only features created >= 24 hours /4 - polys - would be a view of source layer /2, with only features created < 24 hours /5 - polys - would be a view of source layer /2, with only features created >= 24 hours ... ... ... PROD_VIEW /0 - points - would be a view of source layer /9, with only features created < 24 hours /1 - points - would be a view of source layer /9, with only features created >= 24 hours /2 - lines - would be a view of source layer /10, with only features created < 24 hours /3 - lines - would be a view of source layer /10, with only features created >= 24 hours /4 - polys - would be a view of source layer /11, with only features created < 24 hours /5 - polys - would be a view of source layer /11, with only features created >= 24 hours I cannot for the life of me work out how to do this - is it even possible? The capability doesn't seem to be supported from within AGOL, and I can't work out whether ArcGIS Pro has the capability to create a feature service view in such a fashion. My only thought at present is that it may be potentially possible by directly manipulating the JSON of a view layer, although this seems overwhelming and something I'd like to avoid if possible. Does anyone have any advice? Thanks Anthony
... View more
01-08-2019
09:30 PM
|
0
|
6
|
1462
|
POST
|
Further note on this - it seems that if you append or modify any field subtypes (in my case, add a subtype) and then add symbology, the feature service JSON does not update fully. The new subtype will get added as a valid data type but no symbology gets added to the JSON - despite the symbology being 'saved' as part of the feature service (and being visible when you add the FS to a new web map). However - build a new web map with the FS and view it in Collector and the subtype is still missing! My suspicion is that when the web map is published, it relies on the feature service JSONs and no matter what you do, the new subtype will not flow through. I'm about to try re-publishing the service from ArcMap (the very thing I was trying to avoid). There seems to be a lot of traps for young players in building and maintaining web maps...
... View more
11-19-2018
05:04 PM
|
0
|
0
|
627
|
POST
|
Hi I've got an AGOL web map that I've built specifically for use in ArcGIS Collector. Today I've made some changes to it, including adding a value to one of the field domains, symbolising this, and then re-ordering the values in both the hosted feature layer and the web map. None of these changes have flowed through to ArcGIS Collector. I'm wondering if there is a lag time in changes coming through, or if there is something that I can do to force a refresh of the map in ArcGIS Collector? I've already tried logging out and logging back into the app. Any suggestions welcome! Thanks Anthony
... View more
11-17-2018
07:42 PM
|
0
|
3
|
908
|
POST
|
Hello Shan, thanks for the reply. I was hoping to be able to consume my REST endpoint in ArcMap and filter on time in a couple of different ways. The issue I'm facing is that AGOL publishes all times in UTC whereas ArcMap uses PC time (and I can't find a way of generating UTC time in SQL). Your suggestion however did start pointing me in the right direction, and I've worked out that I can't easily do what it is I was wanting to do. So my solution has been to generate view layers at the AGOL end with the appropriate definitions, and then I'll consume these in ArcMap without have to apply any definition queries. Thanks for the inspiration! Anthony
... View more
11-17-2018
07:38 PM
|
0
|
1
|
949
|
POST
|
Hello I'm currently consuming a REST endpoint from ArcGIS Online in ArcMap. I would like to be able to apply a definition query to the layer to select records that are only (for example) less than 24 hours old. Editor tracking is enabled on the feature service, so I have automatically populated fields for 'CreationDate' and 'EditDate'. These times are recorded in UTC. I cannot work out the SQL syntax to make this occur - in particular how to access 'current time' (which in my circumstance will need to be current time in UTC). Is anyone able to assist with this?
... View more
11-13-2018
06:56 PM
|
0
|
4
|
1143
|
POST
|
Hi I'm a ArcGIS REST API learner driver at the moment, so please be gentle! Using the REST API, I'm attempting to create features in a feature service using the /addFeatures option. The POST request is being made via Python, using the requests library. The code I am using is executing successfully, and I am getting a Success = True response from the call, but the geometry is not being created in the feature service - rather, a record is being created with the correct attributes, but null geometry. An example of the payload being sent to the feature service is below: {'geometry': u'{"rings":[[[2821343.5468000025,2494844.3574000001],[2822216.6736000031,2489208.7210999988],[2822216.6736000031,2489169.0335000008],[2814914.1589000002,2489314.5546999983],[2814821.5546000004,2494831.1281999983],[2821343.5468000025,2494844.3574000001]]],"spatialReference":{"wkid":102171,"latestWkid":3111}}', 'attributes': {'GLOBALID_TEXT': '{4986E78C-60AD-44DD-A36F-58E5B8630948}', 'FIRE_OBS_TYPE_PY': u'CurrBurntArea', 'INCIDENT_NAME': u'21 WALKER ST', 'OBS_CREATEDATE': 1504788222000L}} The success message being returned is: {"addResults":[{"objectId":1457,"globalId":"5DB01C2C-FEBE-4E31-B714-8D10744C2517","success":true}]} The JSON geometry object being used in the payload is being sourced from an fGDB feature class, using a SearchCursor and the 'SHAPE@JSON' field name. Having checked some of the help documentation, I note that the geometry JSON doesn't explicitly reference hasM or hasZ, which is included in the docs, but given that the success message gets returned I am unsure if this is the issue. Can anyone with a better understanding of REST and JSON than me tell me why I am having the issue I am? Many thanks! Ant
... View more
06-19-2018
12:26 AM
|
2
|
3
|
1233
|
POST
|
Hi everyone. Not quite where the home for this post should be, but I'll start in the AGOL group as you have all proven to be a very smart bunch of people in the past. I'm currently banging my head against a brick wall trying to work out a programmatic way to list and then subsequently unregister replicas on an AGOL feature service. This is what I've got in place at the moment: 1 - using https://www.arcgis.com/sharing/rest/oauth2/token/ to generate a token, with Client ID and Client Secret sourced from developers.arcgis.com 2 - using Python 'requests' library to pass a POST request to http://feature_service_url/replicas, with the token as payload and also f = pjson This method above doesn't fail, but returns an empty JSON as the result. If, however, I substitute in a token generated from the URL when I am logged into www.arcgis.com and view a feature service URL, a legitimate result will be returned. What I can't work out is why will no result be returned when I am using a token generated by Step 1 above. I have used this in numerous other applications to interact with feature services without issue. Can anyone shed any light on this? Thanks Anthony Cheesman
... View more
03-24-2018
05:57 PM
|
0
|
0
|
547
|
POST
|
Hi Dan, I've managed to get the grids to draw in AGOL. Rather embarrassingly, it was due to a projection issue with one of our organisational basemaps. Changing to another resolved the issue. The broader question for myself is if there is an 'optimal' size for features and AGOL? What would the mid point be between a smaller number of larger features or a larger number of smaller features? Probably one of those 'how long is a piece of string' type questions I suppose!
... View more
01-14-2018
10:01 PM
|
1
|
1
|
1365
|
POST
|
Hi I need to build a 1km grid UTM grid for scaling and navigational use in an ArcGIS Collector project. I"m wondering the best way to go about this. The grid needs to cover my entire State, and of course it straddles 3 different UTM zones, just to confuse things. So far I've constructed the line features, which results in about 2000 very long features (longest approx 540km). I published a service to AGOL but the data wouldn't display, with an error of 'too many features to display'. My assumption is that the sheer length of the features caused issues when trying to select features to display within the viewport. So now I'm attempting to go the other way, and I've planarised the lines, resulting in over 1/2 a million lines mostly of 1km length. I'm now attempting to publish this as a service but it's taking aaaaaaages and I suspect it's going to fall over. So what I'm wondering, has anyone else built a grid / graticule overlay? How did you get it to work? Any tricks I need to be aware of? Thanks for your help!
... View more
01-13-2018
11:12 PM
|
0
|
4
|
1781
|
POST
|
Thanks Dan, Jayanta It's strange behavior - the screenshot I posted above is down to the individual cell level, so the 'borders' as shown are a display issue as opposed to a data issue. After some more tooling around, I've found it's related to the symbology options for the raster: With the 'hillshade' option de-selected above, the issue goes away. With it selected, it appears. With some tweaking of stretching, min/max values and transparency, I've ended up with a pretty good looking result (at least in my opinion!)
... View more
01-09-2018
07:17 PM
|
1
|
1
|
1081
|
POST
|
Hi I'm at a bit of a loss here. I am attempting to generate a multi-directional hillshade, and the output raster cells seem to have a 'border' around them. I cannot for the life of me work out why and what to do about it. What am I talking about? This: The processing history behind this dataset: 1 - downloaded 1 second STRM elevation grid from USGS 2 - as SRTM is in an angular coordinate system, I resampled to a 20 x 20m grid (bilinear) - size not a neat match, but I thought it would be ok as the end use was hillshade rather than analysis 3 - as the STRM data is integer rather than floating, I ran Focal Statistics (average over 3x3 neighbourhood) to smooth 4 - down the multidirectional hillshade function, add to Image Analysis window, run the function on my smoothed data The grid / borders only seem to appear on cells that have differing values in the cells adjacent to them. Any ideas on what is causing this and how I can rectify or avoid it? Many thanks
... View more
01-09-2018
05:33 PM
|
0
|
5
|
1189
|
POST
|
Thanks Phil - I would have been chasing that for weeks! All seems to be working very well now, many thanks.
... View more
01-02-2018
03:13 PM
|
1
|
0
|
1491
|
POST
|
Hi Phil, thanks for the advice of yesterday. I've applied the fixes you suggested (including updating to latest version) but unfortunately the survey is still not building. I am still getting error messages relating to the fields where I am using bind::esri options. Any ideas what may be causing this? I'll attempt to attach an updated copy of the spreadsheet to the original post. EDIT: updated spreadsheet actually attached to this post. Thanks
... View more
01-02-2018
01:49 PM
|
0
|
2
|
1492
|
Title | Kudos | Posted |
---|---|---|
1 | 10-30-2019 10:07 PM | |
1 | 12-01-2020 09:24 PM | |
1 | 01-09-2018 07:17 PM | |
1 | 06-08-2016 02:49 PM | |
1 | 07-03-2016 11:54 PM |
Online Status |
Offline
|
Date Last Visited |
12-01-2020
10:55 PM
|