POST
|
Thanks for the input! In Fact I have over 200 fields for more than 100 feature classes so I cannot do it manually.. I failed with PolyGeo's idea as I am not good with Python, even if the way sounds quite logical to me but I give an update if I can make it work with the NumPy!
... View more
06-12-2015
01:47 AM
|
0
|
1
|
124
|
POST
|
I want to create a python script (ArcGIS 10.1) where I loop through a GDB with several feature classes and select all the fields which are of text type and convert them to float type. I always want to skip the first 10 and last 2 fields of each featureclass as they actually are supposed to be of text type. I am not quite sure how to do so.. I guess FeatureClassToFeatureClass_conversion does the trick but I am a bit lost. This is as far as I got: (I asked the same question on Stackexchange as I need an answer asap: http://gis.stackexchange.com/questions/150723/convert-field-types-in-gdb-with-python ) # Import system modules import arcpy from arcpy import env env.overwriteOutput = True # Set environment settings env.workspace = "D:\Test\2011_LongNames.gdb" inFeatures = arcpy.ListFeatureClasses("*") outLocation = "D:\Test\FLOAT.gdb" outName = ??? same as inFeature field_mapping = ???? part where it converts text fields to float fields listFCs = [f.name for f in arcpy.ListFields(env.workspace)] listFCs = listFCs[10:len(listFCs)-2)] for fc in listFCs: arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, outName, field_mapping )
... View more
06-11-2015
07:18 PM
|
0
|
4
|
3822
|
POST
|
Thank you a lot! This code worked PERFECTLY!!! I only added this line to it: env.qualifiedFieldNames = False
... View more
05-21-2015
07:56 PM
|
0
|
0
|
256
|
POST
|
Hi I have many tables which I need to join to a Shapefile. Each table has to be joined to the shapefile seperately and then must be exported into a file GDB. Anyone knows how to do so with python? Is there a way that the code runs automatically through each table in the folder and joins it to the shapefile, exports it as FC in the GDB, gives it the file name of the table, then removes the join and joins the next table to the same shapefile? I work with ArcGIS 10.1 I came across this site ArcGIS Help 10.1 and also ArcGIS Help 10.1 but I have no clue how to get started to be honest..
... View more
05-21-2015
01:35 AM
|
0
|
2
|
10180
|
POST
|
Thank you Sephe for linking me to the help file! I still could not figure out, how to change only the first part of my first label but if I do, I ll post it here!
... View more
05-06-2015
07:39 PM
|
0
|
6
|
122
|
POST
|
Hi Wendy Harrison I tried to change it through the text symbol font size in the label manager. would't know how to write the code in JScript.. but anyways, I guess the font still would be smaller then the number, even if changing it with the expression.. Maybe there is a way in the expression to say that all text up to the first number should have a specific size and all the other text/numbers another size?
... View more
05-01-2015
06:01 AM
|
0
|
8
|
122
|
POST
|
I have an Asian Font ending with a number and a second label which is number only. I label them with the following expression (JScript): [AsianTextNr] + "\r\n" + "("+ [NumberLabel] + ")" It looks like the picture bellow. I set the font size to 16, however the Asian font does not get bigger, anyone is familiar with this problem or knows a way on how to modify the JScript code? (Also suggestions in VBScript and python are welcome) (I work with ArcGIS 10.1)
... View more
04-29-2015
11:32 PM
|
0
|
11
|
5887
|
POST
|
I actually agree 100% with you, Sol Wuensch. Anyways, I guess I learned the lessons on how to ask a question and tag an answer on an Esri Forum now, and I appreciate all the help I got. And I will add a comment very soon!
... View more
04-28-2015
06:57 AM
|
1
|
2
|
241
|
POST
|
Hi Neil well technically the as correct marked answer is not my answer but the one from the link I posted. Also it is the answer which worked best on my question... But yes of course it is not very polite to do so, so I can change it to another answer.
... View more
04-28-2015
12:56 AM
|
0
|
4
|
241
|
POST
|
Hey Xander Bakker Yes sorry my mistake, I didn't know it was different for 10.1 until I tried Sephe's code.
... View more
04-28-2015
12:52 AM
|
1
|
0
|
241
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|