POST
|
While, max-record count cannot be modified for this particular service, found a work around which could be used to satisfy the use case. 1. Publish the shape file as a hosted feature layer using - /sharing/rest/content/users/User/publish (Alternatively a data item can be added using /sharing/rest/content/users/User/addItem and then published - if required separately) 2. Check the action status for success - /sharing/rest/content/users/User/items/ItemId/status (This can be directly displayed via the Arc Gis JS APIs by directly refering to the item id, in case you need the map data on the back end for some processing, further steps can be followed) 3. Export the hosted feature layer as a feature collection using - /sharing/rest/content/users/User/export 4. Check for the status of the operation again using - /sharing/rest/content/users/User/items/ItemId/status 5. Get data from exported feature collection using - /sharing/rest/content/items/itemId/data
... View more
10-28-2020
07:35 AM
|
0
|
0
|
7010
|
POST
|
ArcGis JS version used: 4.17 Rendering a kmz using kml layer using the ArcGis JS APIs. Along with this there is some data using Graphics Layers. In one of the cases, on a certain zoom scale the entire data set is shifted somewhat to the east. Attaching snippets of a similar sample data set. Zoom Level 17 Zoom Level 18 Have added a watch on the zoom event for the map view where a grid overlay if enabled is re-rendered but this seems to be unrelated to it. Also, the graphic layers are rendered using Lat/Lng data. Any ideas regarding what might be causing the issue? Not something consistently reproducible but happening with some combination(s) of map + extra data set. Thanks in advance
... View more
10-28-2020
07:20 AM
|
0
|
0
|
365
|
POST
|
Hi, Intermittently get a 502 - Bad Gateway error when using the sharing/rest/content/features/generate generate features API, have mostly had that when the network is fluctuating, thought that it might be due to the file not being uploaded / timing out. Form Data Parameters: publishParameters: {"name":"gridlayers shape files 10-23-2019","targetSR":{"wkid":102100,"latestWkid":3857},"maxRecordCount":50000,"enforceInputFileSizeLimit":true,"enforceOutputJsonSizeLimit":true,"generalize":true,"maxAllowableOffset":10.583354500041803,"reducePrecision":true,"numberOfDigitsAfterDecimal":0} fileType:shapefile f:json file:[binary_data_shapefile_zip] Any idea what cause there might be for this and if there's a way to increase the request timeout? Thanks and Regards, Sushant Sardeshpande
... View more
08-12-2020
01:13 AM
|
0
|
1
|
1502
|
POST
|
Hello Egge-Jan, Thank you for your reply, I able to access the admin content for a feature service that I hosted, however, for features/generate that is available on the content item APIs the admin url is invalid. Generate—ArcGIS REST API | ArcGIS for Developers -> This is the one I am trying to use and while it mentions that GeoJson has a limit of 4000, I get the 4k limit error with a shapefile as well, maybe I am missing something but can a content API be also provided as a feature service and then configured as a feature service instead? Thanks a lot for you time and assitance
... View more
07-30-2020
01:01 AM
|
0
|
0
|
7010
|
POST
|
Hello Egge-Jan Thank you for the reply, was confused on one end - would Arc Gis Online suffice for the increase of this max record count - currently accessing the publicly hosted API's via the Arc Gis Online organisation. Do we need to also host an Arc Gis Server with Enterprise and expose it via Arc Gis Online and then we can change this max record count or just Arc Gis Online would suffice? Currently was accessing just the generate API via the portal so wasn't sure about whether it would support the max record count increase - couldn't access the admin page here even with an admin user. Thanks in Advance
... View more
07-29-2020
11:35 PM
|
0
|
2
|
7010
|
POST
|
Hello, We are using the feature generation API - sharing/rest/content/features/generate for getting features from a shape file zip (ZIP created on extracting layer data in SHP format using ArcGis Pro). Using the endpoint https://heathconsultants.maps.arcgis.com/sharing/rest/content/features/generate from our online Organization. It works as expected when we are trying to generate features from a file with <4000 items (features). Tried with files with 1200+ and 2k+ records which was successful, but did not work when we were trying to get data from files with 8k+ or 12k+ records. Get the error - {"error":{"code":400,"message":"The maximum number of records allowed (4000) has been exceeded.","requestId":""}} Sending the publish parameters - {"name":"sbulargemapsheetshapefiles10-15-19-mod","targetSR":{"latestWkid":3857,"wkid":102100},"maxRecordCount":10000,"enforceInputFileSizeLimit":true,"enforceOutputJsonSizeLimit":true,"generalize":true,"maxAllowableOffset":10,"reducePrecision":true,"numberOfDigitsAfterDecimal":0} Where targetSR is generated from the spatial reference of the map created via ArcGis JS SDK in a Web Application. Wanted to know how we can go about increasing this max record count. Any help would be appreciated. Thank you in advance
... View more
07-23-2020
09:22 PM
|
0
|
5
|
7114
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|