POST
|
Hello! So I finally found what I was looking for to solve my labelling problem. The only thing I was missing was the Labell style (Text Symbol). I chose "Bullet Leader" and it does what I want it to do. Thank you!
... View more
05-27-2016
05:20 AM
|
0
|
0
|
340
|
POST
|
Hello, I am having trouble placing labels into small polygons that are close from each other. I can offset the labels, but it is not very visually appealing. I would like to offset the labels outside the polygon but make them point to the center of their respective polygons with a line. I need to keep that information and it needs to be accurate. How would I do that? Thank you!
... View more
05-26-2016
02:31 PM
|
0
|
3
|
2460
|
POST
|
There's something i think that would be cool to do for a map presentation. I have a shapefile of unemployment rate represented using quantities symbology. Underneath that layer, there's a vegetation layer. I want the vegetation to be the same color as the unemployment rate layer where those two overlaps. Then I would hide the unemployment layer (wich are just big rectangle polygons) or maybe just keep the ouline. Is that something possible. And do anybody understand why i'm trying to do? I attached a picture of my map, if it helps. I tried messing with "Convert feature to graphics".
... View more
02-20-2015
04:55 PM
|
0
|
2
|
3809
|
POST
|
Now the problem in that script is that I want to write the data extracted from the 2nd table in the 1st table (instead of just "printing" it"). I know I have to use an UpdateCursor but in don't understand how to use it properly when dealing with two tables instead of just one. Exemples I have seen are for taking a data in a field and writing something in another field inside the same table. So instead of printing data_to_write, I want to write it in the table of in_feature in the field "ph" Confused...
... View more
03-26-2014
12:15 PM
|
0
|
0
|
370
|
POST
|
Yes! It is working! I had an error in the line del row2,cursor2 So here is what I used. import arcpy
in_feature = "3ans"
near_feature = "PhysicoChimie3ans"
cursor1 = arcpy.SearchCursor(in_feature, fields="NEAR_FID")
for row1 in cursor1:
data_to_get = row1.getValue("NEAR_FID")
print data_to_get
cursor2 = arcpy.SearchCursor(near_feature, fields="pH")
for row2 in arcpy.SearchCursor(near_feature, fields="pH"):
if row2.getValue("FID") == data_to_get:
print row2.getValue("ph"), "loop2"
del row2
... View more
03-17-2014
07:49 AM
|
0
|
0
|
370
|
POST
|
I think the problem is nothing more than the indentation which controls the loops. I believe the code should be:
import arcpy
in_feature = "3ans"
near_feature = "PhysicoChimie3ans"
cursor1 = arcpy.SearchCursor(in_feature, fields="NEAR_FID")
cursor2 = arcpy.SearchCursor(near_feature, fields="pH")
for row1 in cursor1:
data_to_get = row1.getValue("NEAR_FID")
print data_to_get
for row2 in cursor2:
if row2.getValue("FID") == data_to_get:
print row2.getValue("ph"), "loop2"
cursor2.reset()
Nope... I still have the same problem.
... View more
03-17-2014
07:41 AM
|
0
|
0
|
370
|
POST
|
Hi! So I am new to python scripting, and after a few hours being stuck somewhere in my code, I require your help! For some reason, the code goes in the 2nd loop only the first time. Then the first loop finishes without going into the second. Loop 1 is supposed to read each row of the attribute table, ine the NEAR_FID field. Then, it reads a second attribute table and it does an action when NEAR_FID (from 1st table) == FID (from 2nd table). What's wrong? I can't figure it out. import arcpy
in_feature = "3ans"
near_feature = "PhysicoChimie3ans"
cursor1 = arcpy.SearchCursor(in_feature, fields="NEAR_FID")
cursor2 = arcpy.SearchCursor(near_feature, fields="pH")
for row1 in cursor1:
data_to_get = row1.getValue("NEAR_FID")
print data_to_get
for row2 in cursor2:
if row2.getValue("FID") == data_to_get:
print row2.getValue("ph"), "loop2"
cursor2.reset()
... View more
03-17-2014
07:27 AM
|
0
|
7
|
647
|
Title | Kudos | Posted |
---|---|---|
1 | 02-24-2015 07:42 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|