POST
|
I'm running into this same problem trying to access a file GDB on a NAS RAID (not able to create a feature class in a new or existing fGDB on the RAID, but able to do most everything else -- for example, Create Fishnet actually creates a table in the GDB but not the Feature Class). I'm a little unclear about your response. Are you saying that file GDB performance is poor over network shares, or also that some functionality is broken (as I am seeing)? And if this is the case, does it imply that multiple ArcGIS Desktop users cannot work with a shared repository stored as a file GDB, from different workstations? I would be much happier to hear that it is a simple configuration issue that can be solved by changing some permissions on the file server.
... View more
07-17-2015
04:02 PM
|
0
|
1
|
740
|
POST
|
It seems important to keep in mind that unless arcpy.Point defines a custom __eq__ or __cmp__ operator, then comparisons like pointA == pointB will only return True if pointA and pointB are references to the same object. Apparently the arcpy developers decided to stick with that behavior and define their own equals() method for geospatial comparisons. However, IMHO your questioning of the whether the semantics of Point.equals() are adequate is a valid question.
... View more
03-05-2015
12:00 PM
|
1
|
0
|
360
|
POST
|
I agree with @Dallas Shearer. You can use the Python csv library. The CSV format allows for escaping special characters, so you can have commas in a field. You would quote that field, as in: field 1, "This, field has, commas", Field 3 There is a way to handle fields containing quotes as well. It gets a little messy if you have an assortment of such punctuation, but the csv library handles it for you. Here's a couple of links: Writing Escape Characters to a Csv File in Python - Stack Overflow java - How to escape comma and double quote at same time for CSV file? - Stack Overflow One of the contributors to one of those threads also had a good suggestion: If you want your CSV to be compatible with Excel, take one of those strings, copy it into Excel and save it out as CSV. Then you will know how Excel wants it formatted.
... View more
11-13-2014
01:59 PM
|
0
|
0
|
1642
|
POST
|
This does not really answer your question. But as a workaround, can you just set up another username bound to the alternate URL? The docs do seem to say that the third parameter is completely ignored.
... View more
10-03-2014
05:47 AM
|
0
|
1
|
460
|
POST
|
You maybe have solved your problem by now, but if not, here is a suggestion: Since you are getting the error in the except clause, maybe the root cause is really the problem, and you need to find out where the exception is actually being raised. You could temporarily remove the try: and except: to expose where the exception is really occurring.
... View more
08-03-2014
10:24 PM
|
0
|
1
|
862
|
POST
|
The difficulty of finding the code formatter is being discussed in this thread: https://community.esri.com/message/390783#390783
... View more
08-03-2014
10:01 PM
|
0
|
0
|
883
|
POST
|
The triple quote that starts each doc string gets displayed as five quotes by the code formatter , so remember to fix that if you copy the code.
... View more
08-03-2014
09:49 PM
|
0
|
1
|
693
|
POST
|
If I am understanding what you are trying to do, then maybe this will work:
A=[0, 45, 90, 135, 180, 225, 270, 315, 360]
k8=[4.729216146562631, 4.979995034716688, 5.83433020080749, 5.834682335428627, 5.555339121638964, 4.292788277464533, 5.875322012861815, 5.214309700178062]
octantScales = [1.0, 0.75, 0.5, 0.25]
def octant(az1, az2):
''' return 0, 1, 2, or 3 based on the angle between az1 and az2 '''
return min(3, int((abs(az1 - az2) % 180.0)/45.0))
def func(az):
''' Compute angle between az and values in A. Scale values in
k8 based which octant the corresponding value of A falls in.
'''
return [octantScales[octant(a, az)] * k for a,k in zip(A, k8)]
Call func() with your az value, and it will return an array with 8 elements. The circularity problem is handled using the mod (%) function.
... View more
08-03-2014
09:35 PM
|
0
|
2
|
693
|
Title | Kudos | Posted |
---|---|---|
1 | 03-05-2015 12:00 PM |
Online Status |
Offline
|
Date Last Visited |
10-13-2023
11:39 AM
|