|
POST
|
You should just be able to drag and drop the python script directly into your model. You could also make a script tool from it.
... View more
11-21-2012
06:50 AM
|
0
|
0
|
1834
|
|
POST
|
I find it easier to create annotation from labels through ArcMap. Just right click on your labelled layer and click Convert Labels to Annotation.
... View more
11-21-2012
06:45 AM
|
0
|
0
|
653
|
|
POST
|
Can you access the default IIS splash screen of the server from outside your domain?
... View more
11-21-2012
06:40 AM
|
0
|
0
|
1939
|
|
POST
|
No, you should just be able to add a simple python script to your model and call it the same way you would a tool. Would be slightly different if you need to pass parameters to it. Something like this is a basic example. from subprocess import Popen
Popen("batchfile.bat", cwd=r"c:\directory\containing\batchfile").wait()
... View more
11-21-2012
06:35 AM
|
0
|
0
|
1834
|
|
POST
|
I'm not sure about referencing it directly, but you can create a simple python script that opens a batch file that you can import into your model. Here is a fairly detailed Stack Overflow post explaining it far better than I could. http://stackoverflow.com/questions/1818774/python-subprocess
... View more
11-21-2012
06:12 AM
|
0
|
0
|
1834
|
|
POST
|
You should use the correct path syntax using a raw string, it shouldn't be a problem in this case but better safe than sorry. arcpy.Compress_management(r"Database Connections\saxon2_bierstadt_sde_loader.sde") Are you sure the database connection you are using is an administrator account? Is anyone currently locking any files in the DB?
... View more
11-20-2012
01:54 PM
|
0
|
0
|
9672
|
|
POST
|
The overviews should be a relative path so they should be ok. To update the source data path in a mosaic dataset in ArcCatalog right click on your mosaic dataset and click "Repair".
... View more
11-20-2012
01:48 PM
|
0
|
0
|
983
|
|
POST
|
You could make a list of all the feature classes in your database, remove the one you want to keep, and loop through them all deleting. This seems like it would be easier just to select them all in Catalog and delete them that way. If this is an actual versioned SDE database make sure you are working with the right version.
... View more
11-20-2012
01:45 PM
|
0
|
0
|
780
|
|
POST
|
If you are changing the location of the source rasters you will need to update your mosaic dataset with that new location. http://resources.arcgis.com/en/help/main/10.1/index.html#//009t0000005m000000
... View more
11-20-2012
12:49 PM
|
0
|
0
|
983
|
|
POST
|
Do you have indexing on? Either through the OS or through ArcCatalog? The only times I have seen this behaviour is when there is another process that is running in the back ground that monitors changes to files for indexing or what not. Usually these are virus scanners or index processes. I would go into your services and processes tabs in task manager and see what is running. While you are editing have your resource monitor window open and see what processes are using CPU, specifically around when the file changes to read-only.
... View more
11-20-2012
10:09 AM
|
0
|
0
|
11697
|
|
POST
|
What version of ArcGIS and service pack are you using? Do you have any virus scanner running? Does it change to read only after you stop editing and start again, or is it only locked for a few seconds/minutes and release itself while you are still editing? Are you working locally or on a network resource?
... View more
11-20-2012
06:54 AM
|
0
|
0
|
11697
|
|
POST
|
Does this work for you? query = """"CLASS" = 'Z''berg Park'"""
... View more
11-19-2012
07:00 AM
|
0
|
0
|
1063
|
|
POST
|
a search cursor is used with a for loop to return values for a field for each row Yes, that is exactly what a search cursors is for. However, that is not what you are doing. You are matching records between two datasets, which is a join. The biggest red flag that you are likely using a cursor wrong is if you have arcpy functions within your loop. Arcpy functions are geared towards processing on an entire dataset, not on a row by row basis.
... View more
11-14-2012
12:06 PM
|
0
|
0
|
2912
|
|
POST
|
Then you should just join them together and export matching records. Use the add join tool. http://resources.arcgis.com/en/help/main/10.1/index.html#/Add_Join/001700000064000000/
... View more
11-14-2012
10:36 AM
|
0
|
0
|
2912
|
|
POST
|
This is not what cursors are for. Do not do this. Something like the following would be better, but you'd have to explain your process a little more. import arcpy
jTable = "C:/Users/nwuenstel/Desktop/LocalP/Error_Process/Bangladesh_joinsV.csv"
outTable = "in_memory\temptable"
whereExpr = "\"UID\" = 'UID5'"
arcpy.MakeTableView_management(jTable, outTable, whereExpr)
If you still need to know how to process null row values, it goes like this. sCursor = arcpy.SearchCursor(table)
for row in sCursor:
if not row.Field:
print "it's null"
else:
print "it's not null"
... View more
11-14-2012
09:15 AM
|
0
|
0
|
2912
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|