POST
|
Joshua thanks a lot for your feedback. Can you provide an example of what you are suggesting? Not sure if you notice from my script that I am not a programmerJ. I am getting a little bit confused/lost with your programming lingo. Again, thanks a lot for your feedback
... View more
01-25-2017
02:51 PM
|
0
|
0
|
1333
|
POST
|
Darren thanks for your feedback but I am still stuck in the same step (I guess). Not sure if you ran my script but it does a similar thing. It iterates using the xrange. In addition, it also provides me with the numbers that will be used later to update some values. Example: OBJECTID = 28964 ---> 3 records 4815 4816 4817 OBJECTID = 39423 ---> 999 records 1976 1977 1978 1979 1980 1981 . . . . What I am missing now is the piece of the code that will allow me to insert the rows N number of times according to this xrange.
... View more
01-25-2017
01:48 PM
|
0
|
3
|
1333
|
POST
|
I need to generate a polygon FC using some records previously flagged as 'NUMBER_GT_NUMBER_END = 1' These records need to be loaded into a new schema of the same FC in order to include duplicates that will be used later for other processes. If you run the code as I am giving it here, it will print out the number of records per OBJECTID. The issue is that I am able to insert only one for each case. Once added a record into the new FC schema, I want to update the SITUS_STREET_NUMBER field with the value stored in x + 1. I have been going back and forth with other approaches like using Append, Copy, among others, but the process is really slow in comparison to the one achieved so far using the da.cursors. Example: OBJECTID = 28964 ---> 3 records 4815 4816 4817 This means that the above polygon geometry with OBJECTID = 28964 needs to be inserted to the new FC three times and that the SITUS_STREET_NUMBER field needs to be updated with the listed values. Thanks in advance. Jake Skinner Dan Patterson
... View more
01-25-2017
12:05 PM
|
0
|
8
|
2102
|
POST
|
I am including the python script and the GDB with the two relevant FC. In this way, you can run the code and see more clearly what I am doing. Still, there are some steps that have not been worked but I will reuse what I achieve here to complete the whole process I need for the final output. The reason I am not using the append is because I was not able to find a way of updating the number_Field variable, that is, "SITUS_STREET_NUMBER" in the attribute table the way the cursor allows me to do it, plus it generated the output way faster too. I am working with thousands of records. Pay attention to this to understand what I am doing in the table: cursor.insertRow([polygonGeo, (str(x + 1)), "test"]) I really appreciate your assistance! UPDATE: Uploading the correct script.py file. The first uploaded py file was not the correct one.
... View more
01-19-2017
11:21 AM
|
0
|
0
|
957
|
POST
|
Ok, basically I want to grab the geometry properties (X, Y) of a polygon input FC and copy it into an empty polygon schema of the same FC. I don’t want to use the Copy Management tool, nor Append because it does not fit all my requirements for the final output. Instead, I am attempting to use an Insert cursor to insert the rows. After following Esri’s documentation on how to use the insert Cursor, I was able to add the rows but the FC had no geometry properties, that is, the attribute table for the FC was populated but no features were displayed because the geometry info was missing. After trying various ways, I found out that by passing the coordinates as suggested in my first post inside shapeArray = arcpy.Array([pntArray]), I was able to achieve my desired result. I hard-coded the values to test it and it worked but can’t format the text the way I need it. Maybe my approach is not the correct one, so any suggestions will be welcome. BTW, I am not a programmer per se therefore, my code will not be the prettiest but it is doing the job. Here is the other piece that follows... for x in xrange((row[2] - 1), row[3]): fieldlist = ["SHAPE@", number_Field, full_addr] with arcpy.da.InsertCursor(featureClassCopy, fieldlist) as cursor: shapeArray = arcpy.Array([pntArray]) polygonGeo = arcpy.Polygon(shapeArray) cursor.insertRow([polygonGeo, (str(x + 1)), "test"]) print x + 1 row = rows.next()
... View more
01-19-2017
10:43 AM
|
0
|
4
|
957
|
POST
|
Need to print the polygon coordinates as one single line text string instead of multi-line. This output will be used as a variable to generate the polygon later in the code. NOTE: The geometry in the searchCursor is a polygon. for row in arcpy.da.SearchCursor("countAddrPnts_lyr", ["OID@", "SHAPE@", "SITUS_STREET_NUMBER_END2", "SITUS_STREET_NUMBER2"]):x = 0for part in row[1]: for pnt in part: if pnt: pntArray = ("arcpy.Point(" + "{}, {}".format(pnt.X, pnt.Y) + "),") print pntArray x += 1 The current output looks like this: arcpy.Point(907781.079669, 628629.095669),arcpy.Point(907782.765669, 628579.116669),arcpy.Point(907649.596669, 628574.910669),arcpy.Point(907647.068669, 628649.878669),arcpy.Point(907780.236669, 628654.092669),arcpy.Point(907781.079669, 628629.095669), I need it to look as follows: arcpy.Point(907781.079669, 628629.095669), arcpy.Point(907782.765669, 628579.116669), arcpy.Point(907649.596669, 628574.910669), arcpy.Point(907647.068669, 628649.878669), arcpy.Point(907780.236669, 628654.092669), arcpy.Point(907781.079669, 628629.095669) Any suggestions will be appreciated. arcpy - Issues creating a polygon by reading its geometry - Geographic Information Systems Stack Exchange
... View more
01-19-2017
08:23 AM
|
0
|
8
|
1709
|
POST
|
Data Reviewer Support Group Hi, I am new to Data Reviewer and to Water Utilities. I have configured the automated batch checks successfully. I am assessing the flagged errors but I am not sure why the Butterfly valve less than 24 inches in diameter for Water is part of the check. Any explanation will be appreciated. Thank you.
... View more
06-01-2016
08:50 AM
|
0
|
1
|
2631
|
DOC
|
Robert, I will like to get some information on how you handle the development cycle of your widgets when Esri updates Web App Builder. Can we chat via private message?
... View more
05-19-2016
10:46 AM
|
0
|
0
|
4592
|
POST
|
bummer ... still it is a great widget and my fellow coworkers (aka, GIS users) will be excited with this new addition in their apps
... View more
05-13-2016
11:36 AM
|
0
|
0
|
698
|
POST
|
Hi Robert, Thanks for all these cool widgets!! Are there any plans in enhancing the Google Street View widget so that it displays the data on the map?
... View more
05-13-2016
11:24 AM
|
0
|
2
|
698
|
DOC
|
Robert, are there any minimum requirements to deploy this widget? If I want to get the elevation profile from a DEM generated in-house, I guess I need ArcGIS 3D Analyst for Server.Am I correct?
... View more
05-11-2016
12:22 PM
|
0
|
0
|
6453
|
Title | Kudos | Posted |
---|---|---|
1 | 11-19-2014 07:02 AM | |
1 | 02-06-2014 08:06 AM | |
7 | 02-13-2016 08:12 AM | |
1 | 02-16-2015 08:10 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|