|
POST
|
Hi I'm in the process of building a custom process (via Python) and I am thinking about the next step, which is loading it to a toolbox. I need to load it as a tool as I will be distributing it to less confident or entry level users. It would be really useful for the tool user to be able to access a unique list of attributes for a given field (the same attribute may appear in there many times) and I am wondering about the best way to do this. I can easily generate a unique list as part of the script, but am unsure whether this would be exposed to the tool before it actually ran. I did find some information here - Generating a choice list from a field | ArcGIS Blog - but I am not that familiar (or confident) with ModelBuilder, and from my cursory examination of this, it relies on building your tool, then exporting the code, then attaching the code to a tool. What if I just want to code it straight up - ie skip ModelBuilder? I'm a little (or a lot) bamboozled with all of this - if anyone could please explain how to do this with a custom tool (and even better, why it needs to be done that way), preferably in 3 syllable words or less, I would be eternally grateful. Other limitation is that the deployment of the tool needs to be able to run with a basic (ArcView) licence. Thanks.
... View more
10-17-2014
08:29 PM
|
0
|
0
|
2318
|
|
POST
|
Thanks David - breaking the text box into 2 smaller boxes has solved the issue. I will also have a fiddle with the leading tag to see if it resolves the issue.
... View more
09-25-2014
02:57 PM
|
0
|
0
|
1489
|
|
POST
|
Hi everyone I'm having a bit of a battle with 'rectangle' or 'paragraph' text in ArcGIS 10.1. I am ashamed to say that it is a tool that I only discovered today. Anyway, I digress. I cannot for the life of me work out if or how to adjust the spacing between the lines (default seems to be quite wide and not proportional to font size). I need to (or would like to) use it because I have a series of some 1300 maps to create using DDP - some of the attributes that I am pulling into the layout are quite long and need to wrap across multiple lines. This is what the text box looks like with paragraph text (excuse the pixellation): Note the rather excessive line gaps (roughly equivalent to 'paragraph' spacing in Word etc) and not being proportional to the font size. In this example, font sizes are set using the <fnt> tags, with the 'base' font size for the text box being set as 8 points. Does anyone know how to alleviate this issue? Thanks
... View more
09-23-2014
11:12 PM
|
0
|
2
|
3526
|
|
POST
|
OK, I think I've answered my own question. There's something funny going on with schema.ini in that a couple of fields get recreated. There must be a special character tripping it out somewhere. Anyway, if I delete schema.ini, the problem goes away, at least until it appears again. I suspect the long term fix will be to modify my script to create a FC and points rather than write a CSV and rely on then manually creating the XY event layer.
... View more
09-10-2014
11:09 PM
|
1
|
1
|
1216
|
|
POST
|
Hi - I'm having issues in getting ArcGIS to read a CSV file as a table. The table is created as the output from a Python script I have written - partly because it provides a bit of flexibility in being able to view the table in Excel or similar, and partly because creating a table or features from Python using a cursor confuses me. Anyway... * The csv table contains XREF and YREF fields * The csv file creates fine. * The *first* time I add the table to an ArcGIS project, I can view all fields and attributes, create an XY event, and visualise the data * Any *subsequent* times I add the data, some of the fields are not viewable (including the XREF field) and thus I can't create an XY event or view the data. Any ideas as to why this could be occurring? Thanks
... View more
09-10-2014
10:20 PM
|
0
|
2
|
3200
|
|
POST
|
Thanks Dan, Ted. I'd forgotten about the DateDiff function until after I posted this. I couldn't get it to fire but I think that was more to do with my syntax. And after a weekend of reflection, I seem to recall using it for a project about 2 years ago, and I'm fairly sure I kept some good notes from that. So first task this morning will be to dig back through my archives. Thanks again and I'll report back with success or otherwise.
... View more
08-31-2014
01:51 PM
|
0
|
0
|
1675
|
|
POST
|
Hi Let's see how this new format works.... I'm attempting to query against current time in the Field Calculator - ideally what I'm trying to do is come up with a definition query that provides features that are greater than 3 hours old. What I have is a table from MS Access 2010, that is being delivered to ArcGIS via a database link. All working well. Each record in the table has an X and Y which is being drawn via an event viewer - all working ok. Each record also has a timestamp of the time it was created. I wan to be able to separate out records that are greater than 3 hours old, so that they can be drawn in a different colour to highlight their importance. So far I've discovered the CURRENT_TIMESTAMP SQL operator, but can't seem to get anywhere with it. Time field in the table is formatted as dd/mm/yyyy hh:mm:ss AM/PM Is anyone able to provide some clarity on this? Help!
... View more
08-27-2014
06:49 PM
|
0
|
4
|
5062
|
|
POST
|
Thanks for the reply Sam. I'm at 10.1 SP1 at present, but have a looming upgrade to 10.2.2 shortly. I suggest the best way forwards on this is to try the same process again post-upgrade and see if there is any change in behaviour. Thanks
... View more
06-03-2014
11:46 PM
|
0
|
0
|
6778
|
|
POST
|
(cont) Settings for line feature labels: [ATTACH=CONFIG]34152[/ATTACH] [ATTACH=CONFIG]34153[/ATTACH] [ATTACH=CONFIG]34154[/ATTACH] [ATTACH=CONFIG]34155[/ATTACH] I'd be interested what to do to solve this issue - whether it is an issue as to how I am setting / prioritising labels, or whether there is a glitch in the Maplex engine that is allowing labels to overlap regardless of the weights. Thanks.
... View more
05-28-2014
03:28 PM
|
0
|
0
|
6778
|
|
POST
|
Hi Sam Thanks for the response and the offer of help. Using the Maplex labelling engine - hydro line placement is curved offset, water body placement is regular horizontal placement. The issue has been (temporarily) resolved via brute force (filtering out the offending line features via an SQL query in the label class) - but I am very keen to work out if there is an easier method. Underlying hydro line features: [ATTACH=CONFIG]34147[/ATTACH] With waterbody (Lake Eildon) over the top - you can see the offending overlapping hydro labels (Jerusalem Creek, Big River, Goulburn River et al) [ATTACH=CONFIG]34148[/ATTACH] Conflict settings in Maplex for waterbodies - note internal and boundary weights set at 1000, which should rule them out for overlapping labels: [ATTACH=CONFIG]34149[/ATTACH] (Continued next post - can only post 5 images per post)
... View more
05-28-2014
03:26 PM
|
0
|
0
|
6778
|
|
POST
|
Hi I am tearing my hair out over a labelling issue at the moment. I have waterbodies (polygon) drawn over the top of watercourses (polyline). Both features need to label - but the watercourse labels should NOT appear inside the waterbodies feature. Nothing I seem to do is resolving this issue - including setting the feature weight on the waterbody to 1000 (which should exclude it from availability altogether). I can't mess with my source data, there is no attribute within the watercourse features that I can identify the offending arcs with, so unless I can find a magic solution, my only option is going to be excluding the offending arcs from labelling via SQL query, which I really don't want to do. Surely there is a neater solution?
... View more
05-27-2014
06:56 PM
|
0
|
6
|
7124
|
|
POST
|
Brain fade averted, I think. Will use ListFeatureClasses, ListRasters ad ListTables, compare the item in question to these lists, and make the determination accordingly. Hopefully this works.
... View more
02-12-2014
03:56 PM
|
0
|
0
|
776
|
|
POST
|
Having a major brain fade here! How can I examine an object within a gdb, and determine if it is a FC, raster, or table?
... View more
02-12-2014
03:43 PM
|
0
|
2
|
1334
|
|
POST
|
Jeff, Tim, thanks for the replies. Tim - that is a very good solution and I'll investigate that. I'll need to put some thought into it as the script needs to be executed from inside the mxd, but if I can get over that hurdle, we could be in business.
... View more
02-10-2014
02:14 PM
|
0
|
0
|
796
|
|
POST
|
Hi I'm looking for a way to automate the deletion of drawing / graphic objects in data (not page layout) view. I've investigate using the GraphicElement object - but this does not seem to recognise any features drawn in data view (ie if I use ListLayoutElements on objects drawn in data view, nothing is returned, but it will return objects drawn in page layout view). If I can find some way to identify the elements in data view, I should be able to use the delete() method to get rid of them. Any bright sparks have any ideas?
... View more
02-08-2014
03:15 PM
|
0
|
3
|
1426
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-30-2019 10:07 PM | |
| 1 | 12-01-2020 09:24 PM | |
| 1 | 01-09-2018 07:17 PM | |
| 1 | 06-08-2016 02:49 PM | |
| 1 | 07-03-2016 11:54 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-01-2020
10:55 PM
|