POST
|
This is my work laptop, don't have a home machine. It is WIndows 10 Pro that is always kept up-to-date with Windows updates.
... View more
10-25-2018
08:02 AM
|
0
|
0
|
945
|
POST
|
I started experiencing the same poor performance with my 10.5.1 installation. I don't recall at what point it became that way but today I un-installed 10.5.1 and installed 10.6.1 Unfortunately this hasn't helped in the slightest. I have a very powerful laptop and have done everything that you tried as well and still it takes close to 2 minutes on the "Initializing Application" part. I am out of ideas. This is annoying as I use ArcMap on a daily basis. Brian did you ever resolve your performance issues?
... View more
10-25-2018
07:44 AM
|
0
|
0
|
1035
|
POST
|
I had a feeling that you were going to say that. I wanted to avoid creating disjointed datasets to achieve the labelling that I require.
... View more
09-12-2017
06:58 AM
|
0
|
1
|
2338
|
POST
|
Hi Xander, Since you were so helpful with this thread, maybe you could suggest whether or not the following would be possible without creating additional datasets to accomplish what I need: Let's say I have a multipart polygon feature that has 4 parts to it. I would like a way to label each individual part with its part number (1 to 4) and its corresponding area. Is there any way of accomplishing this without making interim/temporary datasets?
... View more
09-12-2017
06:50 AM
|
0
|
3
|
2338
|
POST
|
Hi Xander, Thank you for your reply to my thread. I am running this from the Python window within my ArcMap MXD so I have taken some guidelines from your code posted above. This is what it looks like now and it is working 100% as I need it to: import arcpy ... from arcpy import env ... env.workspace = 'some.gdb' ... fc = 'someFC' ... fld_areatext = 'AREA_TEXT' ... flds = ('SHAPE@', fld_areatext) ... edit = arcpy.da.Editor(env.workspace) ... edit.startEditing(False, True) ... edit.startOperation() ... with arcpy.da.UpdateCursor(fc, flds) as curs: ... for row in curs: ... polygon = row[0] ... lst_area = [] ... for part in polygon: ... poly = arcpy.Polygon(part) ... lst_area.append(round(poly.area,2)) ... poly_text = ';'.join(lst_area) ... row[1] = poly_text ... curs.updateRow(row) ... edit.stopOperation() ... edit.stopEditing(True) Many thanks for your assistance. Much appreciated!
... View more
09-11-2017
08:31 AM
|
0
|
1
|
2338
|
POST
|
Good day, I have a polygon feature class in a file geodatabase. There are a few multipart polygons in the dataset. I have added 2 fields to the dataset to store the number of parts (numeric) and one to store a list of the individual part areas (string). I have populated the field with the number of parts using one of the functions in the EasyCalculate Add-In. However, I require assistance with populating my string field with a delimited list of the individual part areas for any multipart polygons in the dataset. So for example, if a polygon has 4 parts to it, the value for the string field that I want calculated should look like this -> "541.00;236.54;147.85;391.25" being the individual areas of the parts of the multipart polygon. I found some python code that iterated through the polygons and their respective parts and printed the results to the python window. However I need to concatenate the areas into a delimited string and write the string to the feature. I cannot seem to get that part of the code correct. Here is the link to the thread on another website for accessing the part areas python 2.7 - Getting area of multipart features using SearchCursor() of ArcPy? - Geographic Information Systems Stack Ex… Please could someone help with the code to write the individual areas in the string back to the feature? TIA
... View more
09-10-2017
11:45 PM
|
0
|
9
|
3075
|
POST
|
I know I can use the Reshape Polygon tool but I'm looking for something that will speed the process up significantly as I have a lot of these "chamfer" type triangles to add at these road intersections. In the interim I have decided to use a point layer as a construction layer and have used the "Point at end of line" construction tool to create the points at my specified distances down each polygon edge away from the apex point. I then just edit the vertices of the polygon to include my constructed points. I was ideally looking for a way that I could create a simple tool to automate my series of clicks and typing distances in.
... View more
12-06-2016
07:38 AM
|
0
|
1
|
1543
|
POST
|
I have a road layout and at the road intersections I need to create what are termed "splays" in the Survey world. This is usually done by choosing the apex point and then creating a vertex a defined distance down each polygon edge running away from the apex point. The triangle is then created by joining the two new vertices with the apex vertex. I then need to merge this new triangular polygon with the adjoining polygon. See below: And the end result being: Is there a way to create a tool in ArcMap to achieve the above easily? Currently the method I am using is very cumbersome. Or has anyone already created such a tool? Thanks in advance!
... View more
12-06-2016
04:26 AM
|
0
|
3
|
2431
|
POST
|
Hi Chris, I have been in GIS since 1997 and taught myself how to program in Delphi. It is definitely not the most popular of development platforms and there's also limited help available for it regarding any of the ESRI active-x controls. Despite this I developed a customised ArcReader application for our company that has specific search and export dialogs. Updating of the data is only done on a quarterly basis and the data is just copied over to the standalone users and to a network share for others that don't go out in the field. I could assist you by customising my app to your specifications but it would mean communicating over email or Skype to see what your requirements are. I am based in South Africa. Cheers, Alan
... View more
10-24-2016
12:10 AM
|
0
|
0
|
1477
|
POST
|
I developed an application using the ReaderControl but using Delphi not Visual Basic. I seem to remember that I also couldn't implement my own version of the MarkUp tool.
... View more
10-10-2016
08:02 AM
|
0
|
0
|
288
|
POST
|
If you haven't managed to figure it out by just looking at the magnitude of the values, then as suggested by the others go back to the client and ask what system these values relate to.
... View more
10-02-2014
08:14 AM
|
0
|
0
|
3920
|
POST
|
It appears this is a bug, NIM097273. Hi Jake, Many thanks for your efforts in helping to resolve this issue. I'm happy to hear that it's a bug and not just something I was doing wrong. Regards, Alan
... View more
04-23-2014
07:22 AM
|
0
|
0
|
876
|
POST
|
Hi Alan, You can place the code within a function and execute it using the field calculator. Ex: def update():
fc = r"C:\temp\python\test.gdb\Vehicle"
pnt = arcpy.Point()
rows = arcpy.UpdateCursor(fc)
for row in rows:
pnt.X = row.GPS_X
pnt.Y = row.GPS_Y
row.shape = pnt
rows.updateRow(row)
del row, rows Be sure that you have 'Python' checked at the top of the field calculator, and you will want to specify 'update()' under the Pre-logic script code dialog. Ex: [ATTACH=CONFIG]33269[/ATTACH] Hi Jake, Many thanks for the response. Can you explain to me why the following python code doesn't work? I have joined my GPS shapefile to my point feature class (Point Z) based on a unique ID field present in both datasets. In the attribute window of my feature class I have 2 features selected (just as a test). I right-click on the SHAPE field and choose Field Calculator. I change my parser to Python and tick Show Codeblock. Under the Pre-Logic Script Code, I have the following: def SetToGPS( shape,newx,newy 😞 point = shape.getPart(0) point.X = newx point.Y = newy return point And under the bottom box I have: SetToGPS( !mobile.SDE.WaterDevices.SHAPE!, !Gledhow_Devices_Surveyed_By_Andrew2.ArcMapX!, !Gledhow_Devices_Surveyed_By_Andrew2.ArcMapY! ) This results in a syntax error. In the code that you have suggested, the GPS_X and GPS_Y fields are presumed to be immediate fields in the feature class. In my case they are joined fields, so how do i reference them? Regards, Alan Edited: The following worked for me. I had to add immediate fields to the feature class to hold the new X & Y values (GPS_X & GPS_Y) and while the join was still present, calculate these fields with the values from my joined fields. I then removed the join from my feature class and the code below then ran without a problem: CODE: def Update(newx, newy): pnt = arcpy.Point() pnt.X = newx pnt.Y = newy return pnt SHAPE = Update( !GPS_X!, !GPS_Y!) Jake, maybe you could explain why I couldn't do this while there was still a join present and why it only took immediate fields as input into the function?
... View more
04-23-2014
03:15 AM
|
0
|
1
|
3505
|
POST
|
Hi Jake, I need to do exactly what Dillon was wanting to do but not as a standalone Python script. What code would need to be used to perform the same calculation from within the Field Calculator dialog (as depicted in his original attached screenshot)? Any help or suggestions appreciated. Alan
... View more
04-22-2014
11:49 PM
|
0
|
0
|
3505
|
POST
|
Hi all, I have created a customized application using the ArcReader ActiveX control using Delphi. Just want to know if there is any way of getting access to an ARFeature's shape object so that I can write my own KML/KMZ export routine to write the shape geometry out to KML? I have coded an export routine for a point clicked on the ArcReader control's map and works like a charm. I have attempted to gain access to the ARFeature.InternalObject but it returns the message that "This control does not have access to internal objects". This was kind of expected. I have also iterated through the field collection until finding the Shape field and tried to access this but with a similar error message resulting. Is the only way to gain access to the geometry of an ARFeature by using ArcGIS Engine? Any help/comments appreciated.
... View more
02-03-2014
10:51 PM
|
0
|
0
|
2522
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|