POST
|
After configuring everything from scratch, I ended up with this: urllib.error.URLError: <urlopen error [WinError 10061] A bit of searching the web confirms my suspicion that it is related to the proxy. Our proxy requires authentication and urlopen should actually consider Windows' proxy settings (configured within Internet Explorer), but it doesn't seem to work. I've also tested whether the environment variables http_proxy or https_proxy make any difference - nope So any help would be appreciated!
... View more
06-13-2017
07:56 AM
|
3
|
0
|
6041
|
POST
|
Hi, I'm trying to use the new Python-API with our on-premise system. Our company runs it's own public key infrastructure, so I've configured Portal for ArcGIS with a corresponding certificate. Furthermore, there is a company-wide proxy that we are using. As a first throw, I'd like to connect to ArcGIS Online by doing this: from arcgis.gis import GIS
my_gis = GIS() This crashes with:
c:\Program Files\ArcGIS\Pro\bin\Python>python.exe "C:\temp\Test.py"
Traceback (most recent call last):
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 1254
, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 1106, i
n request
self._send_request(method, url, body, headers)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 1151, i
n _send_request
self.endheaders(body)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 1102, i
n endheaders
self._send_output(message_body)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 934, in
_send_output
self.send(msg)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 877, in
send
self.connect()
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 1252, i
n connect
super().connect()
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 853, in
connect
self._tunnel()
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\http\client.py", line 832, in
_tunnel
message.strip()))
OSError: Tunnel connection failed: 407 authenticationrequired
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\temp\Test.py", line 7, in <module>
my_gis = GIS()
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\site-packages\arcgis\gis.py",
line 95, in __init__
verify_cert=self._verify_cert, client_id=self._client_id)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\site-packages\arcgis\_impl\po
rtalpy.py", line 160, in __init__
client_id=client_id)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\site-packages\arcgis\_impl\co
nnection.py", line 281, in __init__
self.login(username, password, expiration, client_id)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\site-packages\arcgis\_impl\co
nnection.py", line 504, in login
resp = self.post('', { 'f': 'json' }, add_token=False) # probe portal to fin
d auth scheme
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\site-packages\arcgis\_impl\co
nnection.py", line 1031, in post
resp = opener.open(url, data=encoded_postdata.encode())
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 466,
in open
response = self._open(req, data)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 484,
in _open
'_open', req)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 444,
in _call_chain
result = func(*args)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 1297
, in https_open
context=self._context, check_hostname=self._check_hostname)
File "c:\Program Files\ArcGIS\Pro\bin\Python\lib\urllib\request.py", line 1256
, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error Tunnel connection failed: 407 authenticati
onrequired> Is it related to some proxy issues and if yes, where do I have to configure the proxy?
... View more
06-13-2017
05:47 AM
|
2
|
27
|
17795
|
POST
|
Hi, how can I retrieve the information that the data source of a layer is either a SDE or any other spatial database (Oracle, SQL Server) without using this if the user is not authorized: (IDataset(myLayer)).Workspace.Type Background: I have a small command line application written in C# that iterates over the layers of a MXD and gather all data sources that are located within a File Geodatabase. To distinguish between File Geodatabase, SDE and spatial database, I use a combination of (IDataset(myLayer)).Workspace.Type and (IDataset(myLayer)).Category, which works fine. When my application runs under a user who is not authorized to access the layer, (IDataset(myLayer)).Workspace throws a COM-Exception saying that get_workspace() cannot be executed which seems reasonable because the user has no permissions. When opening the MXD with the not authorized user in ArcMap, I see the red exlamation marks indicating the layers that cannot be accessed, but when opening the layer properties, I can see basic information like type (e. g. 'XY Event Source') and path (e. g. 'myDatabaseServer\MyDatabaseInstance'). That's exactly the information I'd like to get in my application, but how can I do this without using (IDataset(myLayer)).Workspace which throws an exception? Thanks!
... View more
05-09-2017
12:12 AM
|
0
|
0
|
1104
|
POST
|
Thanks for your tips! In case that Esri's support won't suggest another option, I will evaluate this. Adrian Marsden: just to ensure that I understand you correctly: you created a tiled service and added this tiled service as a layer to a dynamic service? So in fact, when calling the dynamic service for rendering (e. g. by calling the REST operation 'Export image'), the dynamic service called the tiled service itself. Effectively rendering within rendering, correct? Regards mu88
... View more
07-20-2016
01:22 AM
|
0
|
0
|
227
|
POST
|
Do you know whether there are some enhancements in the newer API v4? For this special purpose (combination of tiled and dynamic data), the API seems to me very impractical and not "dynamic".
... View more
07-11-2016
06:31 AM
|
0
|
1
|
1103
|
POST
|
Okay, your approach is working. But with this, I would have to extract the LODs of the tiled map service (to preserve the initial levels) and extend those levels for some hard-coded levels for a "dynamic behaviour". Correct?
... View more
07-11-2016
06:25 AM
|
0
|
0
|
1103
|
POST
|
Thanks a lot for your quick responses! But sorry, I don't understand why I should overwrite the defined tile levels!? I don't want to make the job twice: I have already defined my tile levels within the map service. For every larger scale, I don't want to use the flexibility of free zooming. In fact, I want to achieve the same behaviour like in ArcMap or WPF.
... View more
07-11-2016
06:13 AM
|
0
|
2
|
1103
|
POST
|
Hey, I'm trying to build an application which contains one tiled and one dynamic map service. The tiled map service has the following tile levels: 1:80000 1:40000 1:20000 1:10000 1:5000 1:2500 So, the service's MaxScale property is 2500. For larger scales (e. g. 1:500), I want to use the dynamic map service. Unfortunately, within my JavaScript application I can only zoom in up to 1:2500, further zooming either with the buttons or the mouse wheel is not possible and results in panning the map. Why is this happening? Is it a limitation of the JavaScript API? Regards and thanks in advance PS: I've used the JS APIs 3.17 and 4 - same behaviour.
... View more
07-11-2016
05:53 AM
|
0
|
11
|
3803
|
POST
|
Hey, I'm new in developing with the ArcGIS Runtime for WPF, so I think my "problem" is more a question of understanding than development. Within the map, I wann to combine a tiled map service with a dynamic map service. The tiled map service has the following tile levels: 1:50000 1:25000 1:10000 1:5000 So, the tiled map service's max scale property within ArcGIS Server is 1:5000. The dynamic map service contains only one layer with a min scale set to 4999. With this, I want to achive that on a coarse view (small scale) the tiles are used and on a finer level (large scale) the data get rendered dynamically. My WPF application is very simple and viewing each map service individually (either tiled or dynamic) works well. But when combining both, I can only zoom into until the scale level 1:5000. Why is this happening and I this is a feature, how can I reach my desired behaviour? Thanks in advance!
... View more
07-07-2016
01:08 AM
|
0
|
1
|
2161
|
POST
|
Ah okay, I understand. Thanks a lot for your detailed explanation!
... View more
11-25-2013
09:02 AM
|
0
|
0
|
616
|
POST
|
Well, I'm using the users and roles from ArcGIS Server's built-in store, so the first login-level is already the ArcGIS Server and not any other web server.
... View more
11-25-2013
06:52 AM
|
0
|
0
|
616
|
POST
|
Thank you for your fast response! Is it also possible without the REST Admin API? My situation is the following: I'm within my business logic (REST operation) and need the current user.
... View more
11-22-2013
02:29 AM
|
0
|
0
|
616
|
POST
|
Hi, I've secured a MapService for a dedicated user within ArcGIS Server 10.1, so a valid login is needed to access the MapServices' data. Is it possible to obtain the user's name within the REST API and if yes, how can this be achieved? Kind regards!
... View more
11-21-2013
10:55 PM
|
0
|
8
|
889
|
Title | Kudos | Posted |
---|---|---|
3 | 06-13-2017 07:56 AM | |
2 | 06-13-2017 05:47 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|