|
POST
|
portal.get_org_users does return a list of users with a list of dictionaries. But, yes the groups part doesn't appear to work. But what you can do is then use this list to recover each username, then loop through these with portal.get_user("username"), then recover the "groups" key from that. Portalpy gets some getting your head around, often shuffling between the name of something or its id. But it is very powerful.
... View more
12-22-2015
10:33 PM
|
0
|
0
|
903
|
|
POST
|
Indeed, there are always many ways to skin the cat (apologies to cat lovers...) And, of course I do use fgdb's extensively. My only point was, when importing a text file, the access importer gives you much more control as to which field get defined as what. And, as long as you have < 1million (?) records, space is not a problem.
... View more
12-22-2015
10:12 AM
|
2
|
1
|
3637
|
|
POST
|
Have you looked at the contents of the csv's in a text editor like notepad?
... View more
12-21-2015
11:41 PM
|
0
|
1
|
5185
|
|
POST
|
I have a strong aversion to using csv (text), or excel etc as a primary source of spatial data. It is obviously useless to have points created at some arbitrary "no data" location such as -99, -99. Unless you really need them like that. That will depend or workflow and your need for this data. What I would do is create a personal geodatabase (Access mdb) in ArcCatalog. Then use the import tools in Access to import the csv to a db table. These tools have much more control on the type (double, text etc) of fields to be created. Once you have the table you can create queries to either update your "no data" values to some standard, rather than having some at -99 and others at -999, or filter them out altogether. Then create a new table with only the data you want to use. Then you can use the Create Feature class from XY table tools in Catalog or ArcMap. Don't forget to properly define the coordinate system of the XY columns.
... View more
12-21-2015
10:19 PM
|
2
|
3
|
3637
|
|
POST
|
The .gdb part indicates a file geodatabase. As you removed that part it must have put the outputs into a file system folder and made them shapefiles. Rather than relying on the default, it is better to set up an output specifically for the task. Make a fgdb using ArcCatalog in a project folder, so you know where everything is going. Glad to have been of help. Enjoy.
... View more
12-21-2015
10:08 PM
|
1
|
0
|
3268
|
|
POST
|
I think you should show us the columns in the spatial view. Is the geometry set up properly?
... View more
12-21-2015
04:43 AM
|
0
|
0
|
5153
|
|
POST
|
In your code you are not naming the output. So I am not sure what it is calling the output but it is probably doing all 50 fc's but just overwriting them each time. Try something like this : import arcpy
from arcpy import env
env.workspace = "C:/Data/City of Oleander.gdb/FireBoxMaps"
fcFireboxmaps = arcpy.ListFeatureClasses()
for fc in fcFireboxmaps:
lineout = str(fc) + "_line"
arcpy.PolygonToLine_management(fc,"C:/Documents/ArcGIS/Default.gdb/" + lineout ,"IDENTIFY_NEIGHBORS")
... View more
12-20-2015
10:25 PM
|
1
|
2
|
3268
|
|
POST
|
How did you get the coordinates from decimal degrees to Lambert Conformal? They are degrees, so they should have a spatial reference as such. If they havn't them you need to use Define projection. But then do not simply redefine them as Lamb Conf. This does nothing to the underlying geometry, only fubars the meta data about the data. You need to use the Project tool or change the dataframe properties to see them in a Lambert Conformal system.
... View more
12-16-2015
07:30 AM
|
1
|
3
|
4699
|
|
POST
|
Kon, here you are assigning the variable inRaster to the string "outReclass" Not the raster object which is outReclass. But yes, you can save it and put the full pointer to it, as you have indicated.
... View more
12-16-2015
07:25 AM
|
1
|
0
|
2651
|
|
POST
|
That would be a bit complicated because the one on top would have to have a base ht of the other plus its extrusion distance. If you have a lot of polygons that might need a programmatic solution. If there are only a few you can probably do by hand.
... View more
12-15-2015
10:17 PM
|
0
|
0
|
911
|
|
POST
|
Here inRaster is just a string. # Spatially Balanced Points inRaster = "rcls" outPoints = "C:/Results/ArcMap/Visibility/Calc_View/point" + str(n) arcpy.CreateSpatiallyBalancedPoints_ga(inRaster, 1, outPoints) Why not just use your raster object outReclass.
... View more
12-15-2015
10:09 PM
|
2
|
2
|
2651
|
|
POST
|
Do you know where this data is supposed to be? Assuming those extents are in fact degrees, that gives me a polygon covering most of the UK. Define it as GCS not WebM.
... View more
12-14-2015
10:21 PM
|
1
|
0
|
2386
|
|
POST
|
I see that World from Space is based upon an old ArcInfo sphere model. So, no, a geographic transformation is neither necessary or appropriate. I am surprised that the system even gives you an option to select one. In the third pic below, a GCS based world countries dataset, projected to WfromS by changing the df properties. It does takes ages to draw though. Hope this helps.
... View more
12-14-2015
10:12 PM
|
0
|
1
|
2321
|
|
POST
|
Sorry, so are you talking about data which in in GCS (geographic coordinates) based on NAD83 and "projecting it", presumably in the data frame, to a "World from Space" representation? I don't think that any geographic transformation (shifting of the datum) is appropriate. And if you are seeking to get NAD83 based coords onto WGS84, the difference between them at world wide scale would be microscopic.
... View more
12-14-2015
06:02 AM
|
0
|
3
|
2321
|
|
POST
|
Although its fun to see Dan come up with a numpy solution... Would it fit your needs to use the queryPointAndDistance geometry method?
... View more
12-14-2015
05:55 AM
|
1
|
0
|
2442
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-08-2015 11:28 PM | |
| 1 | 12-20-2013 08:59 PM | |
| 1 | 05-14-2014 10:38 PM | |
| 1 | 12-16-2013 09:05 PM | |
| 1 | 05-31-2019 02:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|