|
POST
|
Very good question, and no obvious answers. I will look forward to some more enlightened answers than mine.
... View more
11-20-2014
08:56 AM
|
3
|
0
|
6281
|
|
POST
|
A bit of advice, use it, don't use it. Get your data sorted first before performing analysis. What do you mean by "unprojected shapefile". Get it into a proper PCS first. Get your excel into a proper table (fgdb, pgdb etc) format first. This will confirm that header are correct and that variables are not a different type than you expect. Then perform your analysis.
... View more
11-20-2014
08:32 AM
|
0
|
0
|
2222
|
|
POST
|
Maybe I am misunderstanding the problem here. But if you want to add a couple of columns containing XY's for a different coord sys than the data itself just add the columns (double of course), change the coordinate system of the data frame to your desired output. Then right click on the column, pick the XY value, and choose "use cords sys of the data frame". Easy.
... View more
11-09-2014
10:29 PM
|
2
|
1
|
834
|
|
POST
|
Output the raster to a file geoDB (or tiff or something else) instead of GRID format. It is probably a limitation of the rather old grid format which is causing the description of the output raster SR to change. I believe it hasn't really changed the SR, just described it in terms that are not quite the same as the input points.
... View more
11-07-2014
12:48 AM
|
0
|
1
|
1716
|
|
POST
|
As I said before use the env.workspace to go inside your db. Then use arcpy.ListFeatureClasses() to see a list of the features available. This will give you the correct spelling of the feature you are trying to update including all the extra bits that are part of a sde feature (database name etc) Then you know what fc should be called. Once that be is established, try reading it first.
... View more
11-06-2014
04:34 AM
|
0
|
0
|
2911
|
|
POST
|
If you already have spatial data (shapefile) why don't you just import it into your db. Or use the copy features tool. If you want to use scripting to create and write geometries check out: CreateFeatureClasses : http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000002p000000 da Cursors : http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001q000000 Writing geometries : http://resources.arcgis.com/en/help/main/10.2/index.html#//002z0000001v000000 etc etc.
... View more
11-05-2014
09:55 PM
|
0
|
3
|
2911
|
|
BLOG
|
That is a fantastic resource. Thank you Simon. Been using the epsg dataset for years. But this is a very nice addition to the toolkit.
... View more
11-05-2014
07:49 AM
|
2
|
0
|
536
|
|
POST
|
Once you are in and have the correct permissions you can do anything. So be careful! I normally do this in the Python ILDE, try - arcpy.ListTables() or arcpy.ListFeatureClasses() for example. There is plenty of code snippets in the help or on this site to get going with. What are you trying to do?
... View more
11-05-2014
02:17 AM
|
0
|
5
|
2911
|
|
POST
|
They are probably changed, you just don't see it. Open a brand new ArcMap session, add your Adindan based output. Add the original. When the warning comes up about different datums, just click Ok, ie ignore it. You should have 2 sets of points, displaced by approx. 280m.
... View more
11-05-2014
02:12 AM
|
1
|
0
|
4628
|
|
POST
|
if myList contains only 1 object ie len(myList) == 1 then join, split etc indeed any list function will interate through the individual components. So just check first if len(myList) > 1, before using ",".join(myList)
... View more
11-05-2014
12:11 AM
|
0
|
0
|
1685
|
|
POST
|
Set up the connection file using the usual tools in ArcCatalog. Then set a pointer to this in your python script. like : ConnectFile = "Path & name of my connection file.sde" arcpy.env.workspace = ConnectFile Then you are in....
... View more
11-05-2014
12:06 AM
|
2
|
7
|
2911
|
|
DOC
|
Been messing with the xlwt module, writing a data table to excel. During the course of this I discovered the enumerate function. worksheet write needs a column pointer. This seemed to be an easy way to get it. An example : tbl = "Table to export" fldOb = arcpy.ListFields(tbl) FieldNames = [f.name for f in fldOb] # set up excel output outXL = tbl + ".xls" wb = xlwt.Workbook() # add first sheet SheetNum = 1 ws = wb.add_sheet("Data_" + str(SheetNum)) # first row in sheet, header line r = 0 [ws.write(r, c, head) for c, head in list(enumerate(FieldNames))] with arcpy.da.SearchCursor(tbl, FieldNames) as cur: for row in cur: # if row limit is reached, increment and insert another sheet if r > 65534: SheetNum += 1 ws = wb.add_sheet("Data_" + str(SheetNum)) r = 0 [ws.write(r, c, head) for c, head in list(enumerate(FieldNames))] r += 1 [ws.write(r, c, val) for c, val in list(enumerate(row))] wb.save(outXL) del wb Can someone format this for me please....
... View more
11-04-2014
11:50 PM
|
0
|
0
|
16928
|
|
POST
|
Chris, in what way was your attempt to import the data "unsuccessful".... What did you try? What is the structure of the text, csv, tab separated. There is an Excel to Table tool in the Toolbox (Conversion tools / Excel). If the files are not gigantic, then you could use the text importing dialogs in Access and create a feature from that. Create Events will also allow you to point to a text file directly. I think you need to tell us exactly what you have tried so far, and what the data actually looks like if you want someone to help.
... View more
10-24-2014
02:34 AM
|
0
|
2
|
4143
|
|
POST
|
And you could replace that if month == ... With if month in ['11','12','01','02','03'] :
... View more
10-23-2014
04:50 AM
|
2
|
0
|
2402
|
|
POST
|
Quite large point files can be built into tin models deirectly. From there to a raster visualization is easy. If you have very large datasets then terrains might be the answer. http://resources.arcgis.com/en/help/main/10.2/#/What_is_a_terrain_dataset/005v00000002000000/ http://resources.arcgis.com/en/help/main/10.2/#/What_is_a_TIN_surface/006000000001000000/
... View more
10-23-2014
04:22 AM
|
1
|
2
|
4143
|
| 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
|