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
|
1691
|
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
|
7639
|
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
|
1347
|
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
|
1347
|
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
|
1347
|
POST
|
Thank you Sephe FoxSol Wuensch Xander Bakker Xander's code worked perfectly on ArcGIS 10.2, however I need the code for 10.1 where I got the answer on Stackexchange (I agree with Sephe, looking for the answer at different forums should be allowed) Here the link to the code which worked for me: python - Change field names automatically - Geographic Information Systems Stack Exchange I got an error for Sephe's Code without the alter field management,but I am sure anyone familiar with Python could find the error very quickly.
... View more
04-27-2015
12:05 AM
|
1
|
9
|
1347
|
POST
|
Thank you, As I have many fields like this, a loop would make more sense. Can you tell me how to do this? (I use ArcGIS 10.1 - as alter field management is for 10.2 onwards I am not sure if this will work)
... View more
04-23-2015
11:16 PM
|
0
|
0
|
5641
|
POST
|
Hi I have an attribute table with many fields where I have to change the field name. Most of the field names start with All_txt_ . As I found out in the Data Management Forum, there is no way to automatically change all these field names in ArcGIS with a tool. Can someone tell me on how to do so with python? (I am not familiar with Python) I already saw this page: Mapping input fields to output fields—Help | ArcGIS for Desktop However, it does not really help me further as I don't know Python so well.. Best, P. *Question is post-crossed on GIS Stack Exchange Forum
... View more
04-23-2015
09:37 PM
|
1
|
20
|
19304
|
POST
|
Hey Chris! Thanks, I think the Reorder Tool is very useful indeed. However, for the question on how to change many fieldnames at the same time, I do not see on how the redefine tool can help me? How can I manipulate many fields automatically? I need to remove the All_txt_ for many fields
... View more
04-23-2015
07:15 PM
|
0
|
1
|
888
|
POST
|
Thanks for the input, but how can I modify many fields at the same time without going through all fields manually? Like removing the All_txt_ at all fields (over 500 fields)
... View more
04-23-2015
06:40 PM
|
0
|
0
|
888
|
POST
|
Is there a way to join two datasets together (eg. FeatureClass called setA with fields "blabla1" "blabla2" and a textfile called setB.txt), then export the joined data as a new Featureclass without the new fieldnames to be setB.txt_blabla1; setB.txt_blabla2 but just blabla1; blabla2? If not, is there a way to change many field names in a geodatabase at the same time automatically? Or to export the names to excel and import them again somehow? Best, P
... View more
04-22-2015
07:05 PM
|
0
|
7
|
4133
|
POST
|
thank you Xander Bakker Do you by chance also know a way how to create a maplayer with natural break (jenks) classbreakvalues and instead of graduated symbols I d like to use a choropleth map.. Best, P. import arcpy, os
#Specify the map document and the data frame
mxd = arcpy.mapping.MapDocument(r"D:\Atlas_mxd.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "layers")[0]
#output file folder
outPath = r"D:\Atlas_folder\\"
#attrnr (2, 1, ...) is used as attribute field name
#Also it is used to control the loop
attrnr = 2
dct={"Gender_related_txt_WNHDeAA51":2, "Gender_related_txt_WRBDeAA01":1}
while attrnr >= 1: # 1 is the last attrnr in the attribute table
for maplayer in arcpy.mapping.ListLayers(mxd):
if maplayer.name == "aTEST2":
#chang the symbology
if maplayer.symbologyType == "GRADUATED_SYMBOLS":
maplayer.symbology.valueField = str(attrnr)
maplayer.symbology.classBreakValues = [0, 20.0, 30.0, 40.0, \
50.0, 60.0, 70.0, 80.0, \
90.0, 100.0, 110.0, 120.0, \
130.0, 140.0, 150.0]
maplayer.symbology.classBreakLabels = ["0 to 19.99", "20 to 29.99", "30 to 39.99", \
"40 to 49.99", "50 to 59.99", "60 to 69.99", \
"70 to 79.99", "80 to 89.99", "90 to 99.99", \
"100 to 109.99", "110 to 119.99", \
"120 to 129.99", "130 to 139.99", \
"140 to 150"]
#Change title for each map
for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"):
if elm.text.find("Plot 4 attrnr")>= 0:
elm.text = "Plot 4 attrnr " + str(attrnr)
#export each map as a jpeg file. Also we can use ExportToPDF method.
nameJPEG = outPath + str(attrnr) + ".jpg" #spedify each output file name
arcpy.mapping.ExportToJPEG(mxd, nameJPEG)
attrnr = attrnr - 1
del mxd, df
... View more
03-24-2015
01:17 AM
|
0
|
3
|
779
|
POST
|
Hi I found this Code by Yanli Zhang, Stephen F. Austin State University online I am not familiair with python but this script is exactly what I need, except that I do not have years but attribute names like WRBDeAA01 or WNHDeAA51 (list of attribute names) How do I have to change the loop so the code runs through these attributes instead of years? Thanks import arcpy, os
#Specify the map document and the data frame
mxd = arcpy.mapping.MapDocument(r"C:\temp\pine.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "layers")[0]
outPath = r"C:\temp\output\\" #output file folder
#Year (2004, 2003, ...) is used as attribute field name
#Also it is used to control the loop
year = 2004
while year >= 1860: # 1860 is the last year in the attribute table
for maplayer in arcpy.mapping.ListLayers(mxd):
if maplayer.name == "Pine":
#chang the symbology
if maplayer.symbologyType == "GRADUATED_SYMBOLS":
maplayer.symbology.valueField = str(year)
maplayer.symbology.classBreakValues = [0, 20.0, 30.0, 40.0, \
50.0, 60.0, 70.0, 80.0, \
90.0, 100.0, 110.0, 120.0, \
130.0, 140.0, 150.0]
maplayer.symbology.classBreakLabels = ["0 to 19.99", "20 to 29.99", "30 to 39.99", \
"40 to 49.99", "50 to 59.99", "60 to 69.99", \
"70 to 79.99", "80 to 89.99", "90 to 99.99", \
"100 to 109.99", "110 to 119.99", \
"120 to 129.99", "130 to 139.99", \
"140 to 150"]
# Change title for each map
for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"):
if elm.text.find("Plot 4 Year")>= 0:
elm.text = "Plot 4 Year " + str(year)
#export each map as a jpeg file. Also we can use ExportToPDF method.
nameJPEG = outPath + str(year) + ".jpg" #spedify each output file name
arcpy.mapping.ExportToJPEG(mxd, nameJPEG)
year = year - 1
del mxd, df
... View more
03-22-2015
07:16 PM
|
0
|
6
|
4950
|
POST
|
Hi I have again a question regarding DDP. I have a large amount of Data which I need to turn into maps. I need classified maps, showing me the percentage of each species per state in a seperate map with the natural breaks jenks classification. I am not sure on how to organize the Data so that I will get my desired maps. The Attribute fields I have are: the state and the species (I have each species in a separate filed, and I have like 15 species) with the information on how often they occur. How do I best sort the attribute table? Should I make a table with only 3 fields? (State, Species and Value) instead of having each species in a separate field? (if yes, is there a fast way of doing this automatically or all hand work?) and how to I put the settings so it shows me the maps with natural breaks classification? Thanks, PV!
... View more
03-18-2015
08:36 PM
|
0
|
0
|
3453
|
Title | Kudos | Posted |
---|---|---|
1 | 12-05-2015 08:19 AM | |
1 | 04-27-2015 12:05 AM | |
1 | 04-28-2015 12:52 AM | |
1 | 04-28-2015 06:57 AM | |
1 | 05-16-2016 07:00 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|