916 reputation
410
bio website
location United Kingdom
age
visits member for 3 years, 3 months
seen Jun 30 '11 at 17:12

Jun
2
comment Count the number of corners of a polygon
A square polygon can have 5 vertices - one for the start, 3 for each point on the square and one for the end. So the start and end vertex equal each other. But that's not always the case. You'll need to compare start and end vertex, if they are the same then minus one. Also you'll need to code for donut and multipart polygons if they exist in the dataset.
May
18
comment Programmatically adding custom GP tool to a toolbox
yes I had a moment of confusion by something else that I was inheriting.
May
17
comment Programmatically adding custom GP tool to a toolbox
THANKS!!!!!! That was it - I would have thought that the base class would have returned it as default. But that worked. If you stick it as an answer then I'll mark you as you've answered the question as I can't do that on comments. Thanks again!
May
16
comment GetParameterAsText() error in python script
No - when you set the data type when you add the script to the toolbox. You do this before you're able to run the tool. See this link - refer to step 3 - help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/…
May
16
comment GetParameterAsText() error in python script
Sounds like the object passing in from the tool is incorrect. When you created the tool in your toolbox did you set the data type as FeatureClass in the Parameters dialog?
May
16
comment GetParameterAsText() error in python script
What is the output from the print statement though? What string do you get in the console?
May
12
comment ArcGIS10: Publishing GPtools etc. in AddIns
Thanks - I've just found the help page which confirms this: help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/… Shame we can't add GP tools as part of the add-ins yet
May
11
comment Fastest way to create an ESRI Grid and populate cell values?
Thanks Kirk - I'm using IRasterEdit now
May
10
comment Fastest way to create an ESRI Grid and populate cell values?
Ok I have entered two samples. I have rephased my question as this question is about entering the values into the raster the fastest, I have many types of ASCII formats. As I said I CANNOT use the ASCII to Raster tool, so "inserting a header" will not work. This is due to the direction of values output from the application which is opposite to how ArcGIS will read them back in (I think AG reads East to west where as this app outputs north to south).
May
9
comment Fastest way to create an ESRI Grid and populate cell values?
Hi Whuber - Regular spacing so the cell size is known and the XY extents are also known (usually by the header having origin X&Y and then number of rows and columns). I deal with two formats of ASCII files either XYZ or an XY corner & rows/columns/cell size and then all of the values tab or space seperated
May
9
comment How to recalc WGS84 Shape_Area field to square miles in ArcGIS 10
Yes - you can't change the CRS of a map in Arcpy. So in the script exprt the selection based on UTM zone, calculate the areas in that UTM to a new field, then copy the values back to the original datasets (by either using cursor or a join and field calculate)
Apr
28
comment How far ESRI Technical Support goes?
My experience of Esri UK is very bad, I have never had any support solved by Esri UK. Only get the response "we have passed this onto Esri Inc..." blah blah blah. And then it takes ages to get a reply. It seems Esri Inc. treat US customers as priority before overseas customers (maybe correctly so). You can never talk to them directly and Esri UK play piggy in the middle and just get in the way. This is especially so on development support. I just use the forums now, I have stopped using Esri UK.
Apr
27
comment ArcGIS 10 - How can you open geodatabase files using a Browse Dialog Command (VB.NET/C#)?
when you say "files" what do you mean? Do you mean feature classes?
Mar
18
comment How to add an attribute field to an existing Shapefile via Python
Ah I remember now yes as Sasa said the creation of a new DBF would be required. Copy the schema (as in fields etc.) across then make your additions, then copy the records across. The "great" DBF... :(
Mar
16
comment Symbolising One-to-many relationships
Speaking to Esri at the developer summit, they recommended custom renderer of which the sample is provided here: C:\Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsNet\MultivariateRenderer Thanks for the pointers Kirk
Feb
24
comment Symbolising One-to-many relationships
scores are not catergorised
Feb
24
comment Symbolising One-to-many relationships
Open to programmitic solutions - yes
Feb
23
comment Symbolising One-to-many relationships
Thanks for the reply but already knew this, I'm specifically talking about symbolising data in one-to many relationships. So how to symbolise values bases on a field in the many table.