|
POST
|
I'd recommend probably splitting it up into two seperate strings, each with a maximum string length. So your first string I guess you need left justified for the value of field one, with a max length of x(x being longest string in field) then concatenate that with a second string for the values of field two justified rightwith max length of y(ditto)(Since you mentioned you wanted similar to the example you posted).
... View more
08-26-2014
03:05 PM
|
0
|
1
|
720
|
|
POST
|
Hey you looked at python's string formatting using their center, left justify, and right justify? You can set the number of of characters a string needs to be then it autofills the remaining spaces in a string with spaces to the specified number. If you determine the max string length prior, you can just input the width in the string method and (hopefully) it would work for you. string.ljust for left justified string.rjust for right justified string.center for centered. 7.1. string — Common string operations — Python v2.7.8 documentation very bottom of the page.
... View more
08-26-2014
02:43 PM
|
0
|
3
|
2119
|
|
POST
|
Actually, you could convert a raster to an ascii, and compare cell values between the two ascii files, assuming they have the same extent. You could even generate a new ascii based on if the values are the same, and convert it back to a raster by adding the header file from the original ascii to the output ascii(I actually have a project I'm working on that is based on this). But yea, a conditional statement would be easier.
... View more
08-26-2014
02:21 PM
|
1
|
3
|
3576
|
|
POST
|
Thats the only one which is a script tool, which might have something to do with it.
... View more
08-26-2014
12:42 PM
|
0
|
0
|
2068
|
|
POST
|
All of those but Table to Geodatabase use field mapping, so thats not so surprising.
... View more
08-26-2014
12:32 PM
|
0
|
2
|
2068
|
|
POST
|
Could you be a little more concise in explaining what you are trying to do?
... View more
08-26-2014
12:15 PM
|
0
|
20
|
2057
|
|
POST
|
I would always check scripts exported from modelbuilder or from a geoprocessing result, they are usually a good starter for you to work with, but can usually be simplified a good deal. I am curious which other tools you have seen similar results, usually if the file path or file name is a parameter of some sort it it gets converted to a variable, otherwise I suppose it would hard code it. I always just find it convenient that you can export a gp result or model to script, its a simple way to get a script started that you will need to build into something more complicated.
... View more
08-26-2014
12:12 PM
|
0
|
4
|
2068
|
|
POST
|
Hi Blake, The only place it hard-coded any values was during the optional field mapping, which unless you are using you could remove all the optional parameters out, and only work with the 3 required parameters. I don't believe there is anyway to stop this from happening, but if you are not using the optional parameters, simply removing them after exporting the script.
... View more
08-26-2014
11:52 AM
|
0
|
6
|
2068
|
|
POST
|
Richard, I don't believe he was questioning its availability, more its effectiveness with his current task. Since he is working with text based fields and not numeric summary statistics doesn't seem to be what he is needing.
... View more
08-26-2014
11:42 AM
|
0
|
1
|
2607
|
|
POST
|
Not sure of a way to incorporate it into model builder, but with python and cursors it would be relatively simple to return the counts of series of unique text field values. Also would be simple to export the results out to a csv. I can post some starter code for you if you need.
... View more
08-26-2014
11:41 AM
|
0
|
0
|
2607
|
|
POST
|
Hi Chuck, How familiar are you with python? There are some fairly easy ways to do this, you will need to make 3 new fields for City, State, and Zip. In the field calculator, select python For the city field try !CityStateZip!.split(",")[0] For the State field try !CityStateZip!.split(",")[1][1:3] for the Zip field try !CityStateZip!.split(",")[1][4:] You definitely will need to spot check your results, I'm basing this entirely on your entries all being similar to the one posted, without it getting very fancy.
... View more
08-21-2014
12:56 PM
|
1
|
0
|
870
|
|
POST
|
Hi Michael, I would try posting your question in ArcGIS Explorer Desktop or ArcGIS Explorer Online where you are more likely to get an answer, you are posting in your own discussion space, so it might not turn up in peoples streams. Hope you get your question answered!
... View more
08-20-2014
01:34 PM
|
1
|
1
|
721
|
|
POST
|
Hi Alicia, ArcMap returns a string None for null value in a table instead of a None object. Change line 7 to if row[2] != "None" and it should work right. If you are on 10.0 or older, then your method would work, since it return an empty string, see this topic 40913 - How to check for null values in the Field Calculator using Python
... View more
08-19-2014
12:01 PM
|
0
|
3
|
6348
|
|
POST
|
When you are in layout view, you all the objects on the "page" are visible on your map, objects that are outside of the page are not visible(extra text elements, legends, dataframes, etc.) All you would have to do is select(click) on the dataframes that are outside the page and place them where you want on the map. You could then zoom to the area you need in those dataframes and create the bounding boxes from the instructions on the blog post. A template is good so instead of working with a blank map each time, you open a map with multiple data frames with all your layers already loaded and all you need to do is edit it to your purpose. To have a map show up as a template when you open ArcMap, save your mxd file in the C < User < YourUserName < AppData < Roaming < ESRI <Desktop xx.x < ArcMap < Templates folder, the show up like the figure below when you open a new map document, those are the 3 map documents I have saved there. If they are in that folder, then when you save, it will automatically treat it as a save as, so you don't overwrite your template on accident
... View more
08-19-2014
07:20 AM
|
0
|
0
|
3060
|
|
POST
|
I figured it was something like that Charlie, no worries
... View more
08-19-2014
07:02 AM
|
0
|
1
|
3182
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-22-2017 08:58 AM | |
| 1 | 10-05-2015 05:43 AM | |
| 1 | 05-08-2015 07:03 AM | |
| 1 | 10-20-2015 02:20 PM | |
| 1 | 10-05-2015 05:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|