POST
|
I have enabled SSL on ArcGIS for Server 10.3: Created a self signed certificate in the ArcGIS Server REST Admin, exported it to a certificate request that was sent to a signing authority. Got the signed certificate back and imported it into the self signed certificate. All working well. Then, I want to use the same certificate to make an https binding to my website. When I try to import the certificate into IIS, the result is a certificate that does not contain a private key, and I'm not able to use it for the https binding (it doesn't show up in the dropdown of available certificates in IIS). The support people from the company that issued the SSL certificate says that IIS don't know where to find this private key since the original self-signed certificate and the certificate request was made inside ArcGIS Server. Does anyone know how to do this? I have found documentation about using SSL certificates on ArcGIS Server that are already in use by IIS, but nothing for the opposite case like this. Any tips would be very welcome!
... View more
04-14-2015
06:08 AM
|
0
|
2
|
3427
|
POST
|
I have declared a searchcursor jFeatures on a joined table: arcpy.AddJoin_management("Output_Infrastructure_Points", "Infrastructure_OID", "ISline_lyr", "ISline_OID)
jFeatures = da.SearchCursor("Output_Infrastructure_Points", "*") I can see from printing out the field names (jFeatures.fields[]) that the cursor has read the joined table, but when I start reading the records in the table with a for-loop for jFeature in jFeatures:
.... or when I call the cursors next-function aa = jFeatures.next() nothing happens. The script just jumps over this code as if no features existed in the joined table. I know by looking at the joined table in ArcMap that the join is performed successfully. So why am I not able to read the records of my joined table with the search cursor? Any idea is appreciated.
... View more
11-06-2013
06:37 AM
|
0
|
0
|
666
|
POST
|
Thanks, Jason, that did it! It is easy to get lost in all this encoding stuff. So for readers that might bump into this thread later, I will add that to be able to write the resulting string to a file, I had to convert the unicode string to a string of bytes using the string.encode() function: STR_result = STR_result.encode('utf8', 'replace') See http://pythonhosted.org/kitchen/unicode-frustrations.html
... View more
10-25-2013
12:05 AM
|
0
|
0
|
222
|
POST
|
I have a script with a SearchCursor that runs through a feature layer and writes the feature properties to a semicolon divided text file. When it comes to a feature which has a property that contains one of the Norwegian letters æ, ø or å (html: æ, ø or å), the script crashes on the str.format() function Traceback info: File "C:\Infrastructure_calculation.py", line 97, in <module> propStr += ";{0}".format(IS[index]) Error Info: 'ascii' codec can't encode character u'\xc6' in position 1: ordinal not in range(128) ISs = da.SearchCursor("ISpoint_lyr", "*")
for IS in ISs:
for index in range(len(ISs.fields)):
if index <> shapeFieldIndex:
propStr += ";{0}".format(IS[index]) I guess this have something to do with unicode encoding, but I have not been able to find a solution. Any input is appreciated!
... View more
10-24-2013
03:19 AM
|
0
|
2
|
369
|
POST
|
From ArcGIS Resources: "touches(second_geometry): indicates if the boundaries of the geometries intersect" So I hoped that would be enough for intersect to return to me the point where their boundaries intersect.. Yes, adding a small distance to get a result from intersect has been my solution so far. I even applied code to calculate the added distance to be as small as possible. Though, I have hoped for another solution that is more accurate.
... View more
10-07-2013
06:54 AM
|
0
|
0
|
1904
|
POST
|
I'm creating a script to find the coordinates of the point on a polyline that is at shortest distance from another point. Since the script can only use an ArcGIS Desktop Basic license, I can not use any of the Near-tools. So, I try to use the ArcPy Geometry class to do the calculations. First, I calculate the distance between the point and the polyline: distance = Point1.distanceTo(Polyline1) Then I try to find the actual nearest point on the polyline by creating a buffer with radius distance around the point and then do an intersect between the buffer polygon and the polyline: Buffer1 = Point1.buffer(distance)
IntersectPoint = Buffer1.intersect(Polyline1, 1) The intersect does not return any geometry even though a run of Buffer1.touches(Polyline1) returns a True value, indicating that the features intersect. What am I not gettig here? Any idea woud be appreciated
... View more
10-07-2013
12:43 AM
|
0
|
4
|
3988
|
POST
|
I have the same problem, trying to make a grid out of polygons, with values from a field that I added and calculated manually. Short integer field
... View more
08-19-2011
04:11 AM
|
0
|
0
|
286
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|