POST
|
The application is a c++ application running locally on a dedicated computer. It is not running off of a specific server. I talked about "proprietary" portal but "private" may have been a better adjective. This arcgis portal is managed by another company. I am trying to upload a feature layer I am creating locally through my application on this portal. The OAuth process should allow me to log in to this arcgis portal so that I can uploade data on it.
... View more
12-01-2020
12:51 AM
|
0
|
0
|
923
|
POST
|
My application has a resource folder where from the html/javascript code is located and executed. When I open the html file, including my html and javascript code, with a web browser, I only see the absolute path of the file in the address bar. I am never using explicitely a URL.
... View more
12-01-2020
12:45 AM
|
0
|
0
|
923
|
POST
|
Hi all I am currently developping a MFC application that loads html and javascript code, using the Arcgis javascript api (4.17), to display a map, where I am adding feature and graphic layers. I must as well add that I am not using the ArcGIS Web AppBuilder. All good until now and I want now to upload these data/feature layers on a specific proprietary Arcgis portal. The authentication pattern I am trying to develop is the named user login workflow. I tried thus to follow this tutorial and use the code provided by it: https://developers.arcgis.com/javascript/latest/sample-code/identity-oauth-basic/index.html My application is registered on the proprietary Arcgis account and I have its client/application ID. As many, I have this "redirect_uri" error displayed when I am launching my application and try to sign in, and even when I am naively double click on the unmodified identity-oauth-basic.html file provided by the aforementioned tutorial. Following that, I got a bit confused with what I can find on the net to solve this problem. From what I gathered from the net, I understand that I need to specify on the Arcgis portal the URL of the page users of my app are redirected to after they successfully log in. But in my case, everything is local and I am basically embedding a html file through my application. Thus I don't know what to specify as a "redirect url" in the "Authentication" pane of the registered application on the Arcgis account. I tried to add "http://localhost/" and "https://localhost/" as some tutorials and forum posts may specify it, but the problem is still here. I wouldn't actually know what I should type in a web browser to point to my html file, except from its absolute path. I added as well as a "redirect url" the address I am specifying in my OAuthInfo instance. Here as well I am getting confused about the different specified urls. The proprietary portal url I am trying to work with has the following format: https://<company name>.maps.arcgis.com. But some urls are specified with the '/arcgis' (redirects to a non-found page in my case) at the end and the aforementioned tutorial is even adding the '/sharing' extension (redirects to a page where I can be redirected to the Arcgis API reference). What are the conventions here and what should I use in my OAuthInfo instance and on the application authentication settings? Can someone clarify these different points and help move forward with this authentication problem? Thanks a lot in advance.
... View more
11-30-2020
05:24 AM
|
0
|
4
|
981
|
POST
|
Hi all, Working here with the 4.17 API, I am trying to use the geometryEngine to check if 2 geometries intersects. The first geometry is a point and the second one is a polyline. Using the 'intersects()' or the 'crosses()' method of the geometryEngine, I am getting this weird error that I don't understand: TypeError: Unable to get property 'G' of undefined or null reference I don't manage to find anything on the net nor in the API reference explaining this error. I basically followed this tutorial. I tried several experiments and some additional information: - I checked that the spatial reference was the same for both geometries. I am working with wkid: 102100 for both geometries. - The point geometry's latitude and longitude are set but x and y are undefined. I don't know if it is relevant. - Following the aforementioned tutorial, instead of using directly the geometry itself, I used a buffer using the 'geodesicBuffer()' method of the geometryEngine. The error is the same when the point geometry (without buffer) and the polyline geometry buffer are used. Nevertheless, when using the point geometry buffer with the polyline geometry either with or without buffer, I am getting the other weird error caused by calling the 'geodesicBuffer()' method of the geometryEngine to generate a buffer from the point geometry: TypeError: Object doesn't support property or method 'u' Does this ring a bell for anyone?
... View more
10-15-2020
01:34 AM
|
0
|
0
|
531
|
POST
|
Thanks a lot Robert. That's perfect. So basically, I just needed to specify the right geometry in my query. Just for me to understand, how did you figure out that the layer was not supporting querying by distance?
... View more
05-20-2020
01:54 AM
|
0
|
2
|
1275
|
POST
|
Hi all Having a hard time getting access by query to the information included in a Map Image Layer object. I am trying to work with the following map image layer instance: http://banedanmark.maps.arcgis.com/home/item.html?id=298233b172c347248080e7e58f06310d linked to the following URL: http://agis1.cloudapp.net/arcgis/rest/services/BaneGISX_OpenData/Info/MapServer This instance is displaying several information about the railways in Denmark and includes the following sublayers: "Stationer", index 0 "Kilometermærker", index 1 "10km", index 2 "5km", index 3 "1km", index 4 "Alle", index 5 "Strkafs", index 6 These information can be visualized here, among other things: http://banedanmark.maps.arcgis.com/apps/webappviewer/index.html?id=6541fbc0cbba499b861e4d7fe23b10b6 What I want is to display the "Kilometermærker" information (= kilometer marks) and get access to the attributes of the closest ones to, let's say, my current position, which is the center position of my view. But I am having a hard time retrieving by query the information of the closest kilometer marks. The query does not return any FeatureSet instances and I am not sure why: I have no problem handling other Feature Layer instances (like the ones displayed in the previously mentioned link) and getting access to the closest elements with the same method. Displaying all the visual information from the map image layer instance by adding it to the map does not present any problems. I tried several sublayers from the map image layer object with the same result (no feature set returned). I tried to wait for the loading of the view before querying with the same result. I tried to create a feature layer from the sublayer with the same result. I tried to specify the sublayers to be displayed with the "sublayers" property of the map image layer instance. Still no feature set returned but what I don't understand is that modifying the renderer of the specified sublayer is visible: var infoMapLayer = new MapImageLayer({ url: "http://agis1.cloudapp.net/arcgis/rest/services/BaneGISX_OpenData/Info/MapServer", sublayers: [ { id: 5, title: "Alle", renderer: { type: "simple", // autocasts as new SimpleRenderer() symbol: { type: "simple-marker", // autocasts as new SimpleMarkerSymbol() color: "yellow", size: 10 } } } ] }); There's surely something I did not understand about these map image layers but I can't find out what. Can anybody help me with the issue? I am attaching to this post the final code.
... View more
05-19-2020
01:29 AM
|
0
|
6
|
1407
|
Online Status |
Offline
|
Date Last Visited |
12-07-2020
02:01 AM
|