|
POST
|
Can you do a Select By Location specifying where the line is completely within the polygon? I don't work much with ModelBuilder, but that's what I'd do manually.
... View more
05-28-2014
11:32 AM
|
0
|
0
|
2061
|
|
POST
|
Click the Expression button on the Label tab. Change the parser to Python and click Advanced. Delete any field names that may have automatically populated. Between the (), double click the three fields you want so that they're in the ()s, separated by commas. On the second line, indented, enter something like the code below, substituting your field names and in the order you'd prefer the label to be populated. This code checks for length to make sure a value exists, rather than None, because I don't know if your data has nulls or empty spaces. If fld1 has a value, that will be the label. If fld1 doesn't have a value, and fld2 does, fld2 will be the label, and so on. You could do this in VBScript too, but I'm more familiar with python. def FindLabel(fld1, fld2, fld3): if len(fld1) > 0: return fld1 elif len(fld2) > 0: return fld2 elif len(fld3) > 0: return fld3 else: return
... View more
05-28-2014
10:51 AM
|
0
|
0
|
786
|
|
POST
|
You still have to actually update the row. Sounds like the same issue as your first post, based on the code you posted. edit: I think the main problem may be where you assign the field names to the variables field1 and field2. Arcpy doesn't like this with the . notation. It looks for an actual field named field1, which doesn't exist. Technically, it's looking for a property of the row class with the value field1, when the value is PassNum. Try row.PassNum and row.ReddStatus. edit redux: note that this would be incorrect when using da, which returns an index based tuple and is referenced by index number.
... View more
05-23-2014
03:58 PM
|
0
|
0
|
2952
|
|
POST
|
I won't say it's simple, but what you're talking about is feathering. It's basically accomplished with multiple buffers. See also http://www.esri.com/esri-news/arcwatch/1013/use-feathering-to-accentuate-the-area-of-interest-in-your-map
... View more
05-23-2014
09:43 AM
|
0
|
0
|
894
|
|
POST
|
I'm trying to import the LocalGovernment.xml into a geodatabase. I can import it ok, but the coordinate system is set to the Napierville sample data in Illinois. I need to set it to our cs. I understand this can be done with X-Ray, but can't use this because it requires Excel, and our department dropped MS Office in favor of Libre Office as a cost cutting measure. Is there a way to change the cs without trying to find every reference in the xml file and manually change it there? Thanks.
... View more
05-23-2014
04:28 AM
|
0
|
2
|
3021
|
|
POST
|
Untested (i.e., try it on a copy first), give something like this a shot in Field Calculator, python parser, Show codeblock, :
def addone(fld):
if not fld is None:
temp = fld.split('/')
num = int(temp[1]) + 1 # this will delete leading zeros
newnum = str(num).zfill(2) # change 2 to to however many zeros you want to pad the value by
return "{0}/{1}".format(temp[0], newnum)
Then in the fld = block, put addone(!yourfield!). This code may need some work, but it's a start.
... View more
05-22-2014
08:02 AM
|
0
|
0
|
7020
|
|
POST
|
When I try to use Parcel workflows on a parcel fabric (either one I created or the sample supplied with the Tax Editing Map), I get an error stating that "This Parcel Fabric is not compatible with Parcel Workflows'. Why is this? I'm running Arcgis 10.2.1 Advanced, build 10.2.1.3497 on Windows 7 Pro. The LGIM is enabled on the parcel fabric. I first thought that maybe workflows are only available at 10.2.2, but don't find this documented anywhere. Any clues? Thanks. edit - fixed the problem by removing the parcel fabric and adding it back in. Leaving the post up in case anyone else runs into this.
... View more
05-22-2014
07:12 AM
|
0
|
1
|
2935
|
|
POST
|
I've created a test parcel fabric for our department for demonstration and practice purposes with tax parcels and lots. We also have surveys, which have a domain controlled field with subtypes to indicate whether the survey is recorded or unrecorded. I don't see a spot in the parcel fabric schema to add them. Am I missing them, or if not, what's the best practice to add them? Thanks.
... View more
05-22-2014
04:52 AM
|
0
|
0
|
2417
|
|
POST
|
One caveat to the script: it does what you asked, but if you had any of the words in the list that precede the part you want to retain, it will delete those as well. So 'County of Los Angeles' becomes ' of Los Angeles'. If you want 'County of ' deleted, add that to the list. If you only want 'County' deleted when it's at the end, change this line: if losetype in name: to if name.endswith(losetype):
... View more
05-22-2014
04:35 AM
|
0
|
0
|
1422
|
|
POST
|
Hi, welcome to the forums. I don't read German, so can't evaluate websites as to whether they contain that data or not. In the US, this type of data is usually maintained by local governments - cities, counties, townships. You can usually view this data, if they've put it on the web, but policies on downloading it vary. There's often a fee. There is no national US database of parcels, as far as I know. The situation may be different in Germany. Either way, you may want to check with the local governments in your area of interest first. You may also want to post this question to the general forum, which gets more traffic and may be seen by someone with more knowledge. If you do, you may also want to delete the thread here, so there aren't duplicate threads. Good luck!
... View more
05-20-2014
04:18 PM
|
0
|
0
|
1084
|
|
POST
|
Ok. This works on your sample data. In Field Calculator... 1. Change parser to python 2. Check Show codeblock 3. Paste the code below into Pre-logic script code 4. in the name = box, enter losemunitype(!name!) def losemunitype( name): lsttypes = ['County', 'Parish', 'Borough', 'Municipality', 'Census Area', 'City and Borough'] for losetype in lsttypes: if losetype in name: return name.replace(losetype, '') return name
... View more
05-20-2014
03:43 PM
|
0
|
0
|
5594
|
|
POST
|
This forum is about using python for ArcGIS, a geographic information application. It's not a general python forum. You may want to try stackoverflow.com or google for more general, or perhaps specific to biology, python forums.
... View more
05-16-2014
05:24 AM
|
0
|
0
|
935
|
|
POST
|
Looks ok to me...but try it on a copy first, I don't know your data like you do.
... View more
05-15-2014
12:14 PM
|
0
|
0
|
1949
|
|
POST
|
So what if I want to delete the last 5 characters of every record in a field? With the caveat I posted above: 1. In field calculator, switch the parser to Python. 2. Double click your field in the list to enter it in the calculation box. 3. Click = 4. Doubleclick your field again. 5. Add this to your field in the calculation box, no spaces between the fieldname and the following: [:-5] 6. Click Ok. Maybe try this on a copy of your data first, just in case.
... View more
05-15-2014
11:59 AM
|
0
|
0
|
1949
|
| Title | Kudos | Posted |
|---|---|---|
| 6 | 08-22-2019 07:41 AM | |
| 1 | 05-05-2014 04:30 AM | |
| 1 | 08-15-2018 06:23 AM | |
| 3 | 08-06-2018 07:31 AM | |
| 1 | 03-30-2012 08:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-12-2021
01:00 PM
|