|
POST
|
Yes the preview window is a little off when you start mixing different formatting tags. Stacking them is pretty simple, you just need to maintain first in last out order. Good "<BOL><UND>" + [Location_I] + "</UND></BOL>" Bad "<BOL><UND>" + [Location_I] + "</BOL></UND>"
... View more
02-06-2013
08:02 AM
|
0
|
3
|
3870
|
|
POST
|
Use SWITCH_SELECTION as the selection type parameter. arcpy.SelectLayerByAttribute_management(layer, "SWITCH_SELECTION") http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000071000000
... View more
02-06-2013
05:43 AM
|
0
|
0
|
979
|
|
POST
|
What issue are you having? Did you read the link at the top of the page you linked? http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_text_formatting_tags/00s80000000p000000/ Edit: To bold you use "<BOL>" + [field] + "</BOL>" Alignment I do not think is exposed through tags/code, you need to go into the symbol property and select left horizontal alignment.
... View more
02-06-2013
05:16 AM
|
0
|
0
|
3870
|
|
POST
|
You have already created the fcList so you cannot call it since it is a list not a function. If you want to limit by a wildcard you would need to do that on this line. fcLst = arcpy.ListFeatureClasses("SectMon_PLSS_*") What is the name of the feature class you want to append? You can modify the wildcard to be a particular suffix if they change or a static string if they are exactly the same.
... View more
02-05-2013
11:37 AM
|
0
|
0
|
1032
|
|
POST
|
It's hard to make suggestions without seeing your data or an explanation on what you are trying to accomplish. One thing is your nested cursors are a very bad idea. Especially throwing in geoprocessing inside the cursors. Very bad. Also, I'm not sure why you assign variables to your geoprocessing tools but never use them. What are you trying to accomplish with that? One last thing, your code is borderline illegible to me. Try reading this for formatting conventions in Python. http://www.python.org/dev/peps/pep-0008/
... View more
02-05-2013
04:36 AM
|
0
|
0
|
1033
|
|
POST
|
Hi Mathew We investigated the Feature Compare function. I was under the impression that the two datasets required the same records and record count. In our case there is a chance that one or more rows may have been dropped. I understood this to mean that it was not possible to do a comparison on datasets with different row counts. That is why the search cursor approach was used. Spin around one cursor populating another cursor using a where clause = slow. I'd love to hear if there was a way to use Feature Compare on datasets with different rowcounts. Thanks Eli It will flag the different row counts as a miscomparison but that has nothing to do with the geometry which you are comparing when you select compare geometry only. Also, it sounds like you were using nested cursors which are very slow. You want to use dictionary cursor populations and calculations.
... View more
02-05-2013
04:22 AM
|
0
|
0
|
2161
|
|
POST
|
I agree with Greg. I really don't like how the Idw tool is accessed. This should be the proper method. arcpy.sa.Idw() It would be helpful if you supplied any error messages you received.
... View more
02-04-2013
08:36 AM
|
0
|
0
|
2694
|
|
POST
|
I have a hard time believing two search cursors would take longer than copying out both datasets and joining them locally. In any case, have you tried the Feature Compare tool?
... View more
02-04-2013
04:08 AM
|
0
|
0
|
2161
|
|
POST
|
ArcGIS requires python 2.7. It is not compatible with 3.x. Having 3.x and 2.7 installed at the same time is not recommended but you should be able to work around it. Just make sure you have the right file associations and system paths.
... View more
02-02-2013
09:27 AM
|
0
|
0
|
1752
|
|
POST
|
Why don't you just run a scheduled task at night that disconnects all users?
... View more
01-31-2013
10:19 AM
|
0
|
0
|
3198
|
|
POST
|
Thanks, I just tried that, and keep getting there was a failure durring proessing, check Geoprocessinf Results widow for details. No detail window is to be found either. Did you use the Python parser?
... View more
01-31-2013
07:34 AM
|
0
|
0
|
1141
|
|
POST
|
You could just do this in field calculator unless you want to make it a script. Your example has more than 8 characters so modify the number you want if it isn't 8. RFID_Code = !RFID_Tag![-8:]
... View more
01-31-2013
07:09 AM
|
0
|
0
|
1141
|
|
POST
|
Thank you for the response and help. i have added the arcpy.qualifiedfieldNames = False and i am still getting the same results for the NewFeatures table, it's not truncated the fields. import arcpy,os, sys
import arcpy.mapping
# Set workspace
arcpy.env.workspace = "C:/Temp"
arcpy.env.overwriteOutput = 'True'
arcpy.env.qualifiedfieldNames = False
directory="C:/Temp/Split.pdf"
if os.path.exists(directory):
try:
os.remove(directory)
except:
print "Exception: ",str(sys.exc_info())
else:
print 'File not found at ',directory
#arcpy.RefreshActiveView()
mxd = arcpy.mapping.MapDocument("current")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
lyr = arcpy.mapping.ListLayers(mxd, "TaxParcels")[0]
df.extent = lyr.getSelectedExtent()
df.scale = 5000
if int(arcpy.GetCount_management("TaxParcels").getOutput(0)) > 0:
#arcpy.CopyFeatures_management("TaxParcels", "C:/temp/NewFeatures.shp")
arcpy.Select_analysis("TaxParcels", "C:/temp/NewFeatures.shp")
#Adding Labels
layer = arcpy.mapping.ListLayers(mxd, "NewFeatures")[0]
if layer.supports("LABELCLASSES"):
for lblclass in layer.labelClasses:
lblclass.className = "vector_D_1" #This should be Account
lblclass.expression = "[vector_D_1] & VBNewLine & Round([vector_D_5],2)" #these should be "ACCOUNT" & "ACRES"
lblclass.showClassLabels = True
layer.showLabels = True
arcpy.RefreshActiveView()
arcpy.mapping.ExportToPDF(mxd,"C:/Temp/Split.pdf", "") It is arcpy.env.qualifiedFieldNames not arcpy.env.qualifiedfieldNames. Case is important.
... View more
01-30-2013
08:46 AM
|
0
|
0
|
2055
|
|
POST
|
Has ESRI announced a stop for supporting the .mdb-format with 64-bit? I imagine it was just an over sight since they don't encourage people to use personal geodatabases and 64-bit geoprocessing is pretty new. You can try this release from microsoft that helps with compatibility between 32-bit and 64-bit but I can't speak to whether this will have any effect on your problem. http://www.microsoft.com/en-us/download/details.aspx?id=13255 Edit: And it doesn't seem like Esri has any plans on supporting personal geodatabases in the future. http://resources.arcgis.com/en/help/main/10.1/index.html#//00vp0000002t001324
... View more
01-30-2013
04:24 AM
|
0
|
0
|
1053
|
| 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
|