POST
|
Majdoleen, The same can be done with Oracle as well if you prefer to use it. ~Shan
... View more
07-23-2017
09:13 AM
|
1
|
0
|
1069
|
POST
|
in this project i don't need to sort geometry first. I do need to sort alphabetically and also by numbers.
... View more
12-31-2015
06:43 AM
|
0
|
0
|
1364
|
POST
|
Hello and thanks for your reply. I saw that and have been working with it for a couple of hours now. Still cant seem to access the layers in the map specifically. import arcpy
#Set env workspace
mxd = arcpy.mapping.MapDocument(r"C:\Users\billid\Desktop\WaterUtilityNetwork\WaterSystem.mxd")
#Get layers
for lyr in arcpy.mapping.ListLayers(mxd):
#Get fields
fields = arcpy.ListFields(lyr)
for field in fields:
print(field) I just get this error. Traceback (most recent call last): File "D:\PythonWorkingFolder\GIS_Python\ListLayers.py", line 8, in <module> fields = arcpy.ListFields(lyr) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\__init__.py", line 1138, in ListFields return gp.listFields(dataset, wild_card, field_type) File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\geoprocessing\_base.py", line 346, in listFields self._gp.ListFields(*gp_fixargs(args, True))) IOError: "Water System" does not exist ListFields is supposed to take a string. ListLayers returns <class 'arcpy._mapping.Layer'> not a string Note that "Water System" is a layer group, but even when I un-group all the layers it just tells me the first layer doesn't exist. I'm guessing it is because it's not a string. I don't want to work on the data source as it is already set "editable = true" the map layer properties have it set to false and I would like to change the map and then I can overwrite the .lyr file. Yes I can do it manually but I have many maps and need to check all the fields. Thanks again for your feed back. EDIT: I suppose if i could turn the layer names into text I could make a list out of them....
... View more
02-12-2017
07:39 PM
|
0
|
0
|
256
|
POST
|
Just for fun i created a zoom to selected features tool and an add message tool to be used with model builder.
... View more
12-30-2015
07:55 AM
|
3
|
0
|
3585
|
POST
|
Hallo Mike! Danke für deine schnelle Antwort. Nein, ich muss leider wissen, welcher Verein wo ist. Das mit der Summe pro Ort merke ich mir aber als Alternativlösung, sollte ich das andere gar nicht mehr zustande bringen. Viele Grüße, Agnes
... View more
12-29-2015
01:01 PM
|
0
|
0
|
491
|
POST
|
My friends, here are some ideas on how to take advantage of Python's very handy string abilities... def report(clr, lbl, val):
return "<bol><clr {} = '255'>{}: {}</clr></bol>\n".format(
clr, lbl, val)
def FindLabel([NAME], [Acetone], [Benzene], [1_3_Butadi]):
message = ""
if int([Benzene]) > 79:
message += report("red", "Benzene", [Benzene])
elif int([Benzene]) > 0:
message += report("green", "Benzene", [Benzene])
if [Acetone] > 0:
message += report("green", "Acetone", [Acetone])
if int([1_3_Butadi]) > 0:
message += report("green", "1,3-Butadiene", [1_3_Butadi])
return message (If you start a table, dataset, or field name with a number, you may regret it. You have been warned.)
... View more
12-29-2015
09:58 PM
|
1
|
0
|
650
|
POST
|
You could save your symbol as a layer file then assign it to your feature class Save To Layer File—Help | ArcGIS for Desktop
... View more
12-24-2015
07:14 AM
|
1
|
0
|
529
|
POST
|
I'm struggling to understand your question, are you wanting to give the gdb a name other than the name of the feature class? If so, what naming convention?
... View more
01-14-2016
05:07 AM
|
1
|
0
|
202
|
POST
|
root_directory = r"D:\desktop\Project" path_to_find = r"D:\desktop\Project\layers\1.jpg" maps_found = FindMaps(root_directory,path_to_find) beginning on line 25, then do something with maps_found like print them, since it returns a list, they can be further processed
... View more
12-22-2015
01:27 AM
|
1
|
0
|
738
|
POST
|
Chris, You are so right. I contacted the City and they told me to do a query with Building Value and Land Value < 500... That is what I did and it worked... Tks a lot... I still learned to use the LIKE trough posting this... Thank you again
... View more
12-18-2015
01:41 PM
|
1
|
0
|
588
|
POST
|
Thank you, Kathi. I've combined data sets with different scales before and had no problems. However, I wasn't considering the fact that the combined set might be used in advanced analyses. So, I needed some confirmation that the data would be okay should it be used for more than just display and identification of attributes. I think you have put my worries to rest. With much appreciation, Ana Sent from my iPhone
... View more
12-29-2015
08:25 AM
|
0
|
0
|
721
|
POST
|
I found this today you may find it useful. Toolbox to Python Toolbox Wrapper http://www.arcgis.com/home/item.html?id=83585412edd04ae48bdffea3e1f7b2e7
... View more
12-31-2015
01:18 PM
|
1
|
0
|
1033
|
POST
|
speachless!! Jermaine Gordon You Are God (Official Music Video) Lord I Surrender Album - YouTube
... View more
12-17-2015
06:31 AM
|
0
|
0
|
1011
|
POST
|
Hi Rhett, Thanks. I had seen that post but it doesn't apply to my situation. I actually had the opposite problem -- it was returning False when it should have been True. Wayne
... View more
12-16-2015
04:10 PM
|
0
|
0
|
1587
|
POST
|
If you have lats and longs you should be able to (in arcmap) select file add data add xy data
... View more
12-15-2015
07:57 AM
|
1
|
0
|
383
|
Title | Kudos | Posted |
---|---|---|
1 | 09-14-2015 01:29 PM | |
1 | 01-26-2016 10:18 AM | |
1 | 08-15-2015 04:07 PM | |
1 | 09-14-2015 01:33 PM | |
1 | 08-21-2015 07:00 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|