POST
|
Thanks so much for all your help ... your technique worked like a charm .. I owe you big time ... thanks again
... View more
10-27-2014
07:26 PM
|
0
|
0
|
289
|
POST
|
Yes, the records are exactly in the sequence it appears in the original and then repeated in the exact sequence at the end of the records shown in the attribute table so that the records in the original is record1, record2, record3, record4 (left to right corresponding to top to bottom reading) whereas the table with duplicates read thus: record1, record2, record3, record4, record1, record2, record3, record4 ... R Right now I am thinking of running a tool called Delete Identical (Data Management) ... I am trying to buy a license for it (it needs advanced) ... based on your experience ... would you be doing the same thing if you were in my shoes or is there a more appropriate way of doing it? .. Thanks again
... View more
10-27-2014
11:03 AM
|
0
|
2
|
289
|
POST
|
Hello and thanks again .. .I did what you and Dan suggested and so far here is what I am seeing: I selected just 4 entities using 'Select by Attributes' putting in there a criteria that is supposed to return exactly 4 records (I am using an attribute that is supposed to be unique). At which point something weird becomes obvious right away ... because with the attribute table open I can see 4 records highlighted automatically owing to the selection criteria I made but when I look closely at the bottom of the same table with the "Show selected records" active what it says is (8 out of *2000 Selected) which shows a strange mismatch right away. I then proceeded to use the 'Copy Features(Data Management) Tool' with the selection still active and to my surprise 8 records are generated instead of 4. Four of which records are exact duplicates of the other four. At this point I am moving to try to dig deeper into the XY Resolution thing you kindly shared with me ... thanks again for all the help ... I really appreciate it.
... View more
10-27-2014
09:03 AM
|
0
|
0
|
558
|
POST
|
Looks like it is happening in all cases ... I tried what you suggested I selected just 4 entities using 'Select by Attributes' putting in there a criteria that is supposed to return exactly 4 records (I am using an attribute that is supposed to be unique). At which point something weird becomes obvious right away ... because with the attribute table open I can see 4 records highlighted automatically owing to the selection criteria I made but when I look closely at the bottom of the same table with the "Show selected records" active what it says is (8 out of *2000 Selected) which shows a strange mismatch right away. I then proceeded to use the 'Copy Features(Data Management) Tool' with the selection still active and to my surprise 8 records are generated instead of 4. Four of which records are exact duplicates of the other four. Wondering if this gives the necessary clue you wanted to see? ... Thanks again for all the help ... I really appreciate it.
... View more
10-27-2014
08:55 AM
|
0
|
0
|
558
|
POST
|
>>if you lose fewer records Thanks again for helping me out .. I really appreciate it. Sorry I forgot to mention, as it sits right now, before changing XY Resolution … more records are are ending up in the new feature class created from the original … so I am thinking it seems to be adding records .. thanks again
... View more
10-27-2014
01:35 AM
|
0
|
0
|
558
|
POST
|
Thanks for your valuable response ... I will go and dig deeper into the XY Resolution thing and try to vary it to see how the number of records in the created feature class responds .. An additional detail which I do not know if useful or not, but could possibly give a clue is the type of objects I have. Currently I have them as points ... I am thinking to myself that owing to my limited knowledge there might be some quirk behavior related to point objects which I do not know about but which someone with more experience than me is aware of? Thanks again for all the help .. I really appreciate it.
... View more
10-27-2014
01:22 AM
|
0
|
0
|
558
|
POST
|
Thanks so much for the valuable tip, I find comfort in ruling out proximity to halloween and possibly even the blood moon from a few weeks back . I will go and try out the technique you mentioned to try to see what will happen .. thanks again.
... View more
10-27-2014
12:41 AM
|
0
|
0
|
558
|
POST
|
Thanks for your response ... When I do an open attribute on the source feature class the total number of attributes I am seeing is 515367 whereas the feature class created from it is 1030734 in the file geodatabase ... a difference of 515367 .... hence the original number records is doubled ... I tried many times doing it (each cycle taking about three hours) unfortunately I keep ending up with the same problem and I do not have any clue why all the other layers are behaving normally (i.e. giving resulting identical number of records as the source) whereas the "evil" feature class with 515367 records keeps on giving problems ... thanks again, I really appreciate it. Gratefully, Ric
... View more
10-26-2014
05:14 PM
|
0
|
3
|
558
|
POST
|
Hello All, I am using ArcMap 10 and wondering why I am getting more attribute records when running Feature Class to Geodatabase tool than I am expecting (I am thinking they ought to be identical but maybe I am wrong?). What are the possible reason for created layer ending up with a different number of records in attribute table compared to original? I copied a Feature Layer from an SDE geodatabase to a Feature Layer of a newly created blank file geodatabase using the ArcMap built in tool called Feature Class to Geodatabase but for some reason when I open up the attribute table of the created Feature Layer, I am seeing that it has double the number of records as the original ... I am somewhat new to Arcmap but from what I have seen as the result of my previous run of the same tool (Feature Class to Geodatabase) on other feature layers, I always end up with an identical number of records which therefore is what I have learned to expect at this point in my learning. Wondering what I need to watch out for so that I am guaranteed to always have identical number of features in both the original and created Feature Class when running the above tool? All help and advise greatly appreciated ... thanks. Gratefully, Ric
... View more
10-25-2014
08:39 PM
|
0
|
13
|
2582
|
POST
|
>>so there really aren't a lot of limits to what you can do Thanks for these encouraging words ... I will always keep them in mind in all my developments ... thanks again
... View more
10-16-2014
08:02 AM
|
0
|
0
|
625
|
POST
|
I do not know how to close a topic ... please consider this topic closed ... the technique I used is to continue on with the creation of the columns corresponding to the shape file just like I mentioned in my plan above and populate it programmatically and then let the code continue from there ... thanks
... View more
10-15-2014
09:59 AM
|
0
|
2
|
625
|
POST
|
Thanks for all the valuable info you have given .. If a line crosses the boundaries the work flow would be that a copy of the polyline needs to be created so that both LayerA and LayerB would have the polyline … one layer would have original and the other layer would have its copy. Thanks for the Fishnet tip, I really appreciate it .. I am going to do further research how to use this technique ... for additional fire power .. Unfortunately, for the tool I am building there is a need to be coding based, the reason being that they are intending to divide the two layers into many many layers which could present a problem if not in code. So far, the biggest problem I have is I do not know what can and can’t be done using python and arcpy ... I do not know it's limits … so that if I pursue a direction I am not sure if I’d end up shipwrecked. Wondering if a plan to populate the attribute table with info saying that the corresponding polyline in the row is between 100 to 110" another column which says "polyline is between 111 to 120" and a third one which says "polyline is in both 100 to 110 and 111 to 120" etc. and then trying to change the layer of the entities (and create needed copies of the polylines) based on those three columns’ Yes/No value is possible? If the plan won't work because it is beyond the capability of arcpy and python the guidance telling me that what I am thinking of is impossible would greatly help me focus my energy on finding a different strategy. Any other strategy, advise, enlightenment, link, or any idea much appreciated .. thanks again Gratefully, Ric
... View more
10-14-2014
03:29 PM
|
0
|
3
|
625
|
POST
|
Hello and thanks for the highlighting technique info ... the code looks much more readable indeed ..
... View more
10-14-2014
10:35 AM
|
0
|
0
|
625
|
POST
|
Hello Experts, I am given a shape file which consists of polylines in just one layer and my task is to separate them into three layers based on the longitude of the vertices of the said polylines. So that polylines whose vertices are between say 100 to 110 should be in LayerA, and those between 111 to 120 should be in LayerB .. is this possible to do in python? Any help greatly appreciated Gratefully, Ric P.S. I am a bit new at this .. so far as starters, I have succeeded in extracting the latitudes and longitudes using the technique below but I am not sure if my approach is the the right way or if there is a more correct/proper way to do it.
import arcpy
strKPipeLayer = 'TestPipeLines'
strKPipeFullPathShape = r"F:\TestPipeLines.shp"
strK = r"F:\creatingMeridians.mxd"
mxd = arcpy.mapping.MapDocument(strK)
for ly in arcpy.mapping.ListLayers(mxd):
if (ly.name == strKPipeLayer):
rowData = arcpy.SearchCursor(strKPipeFullPathShape)
for rowDatum in rowData:
arcpy.Describe
poly = rowDatum.Shape
lst = list(poly)
ary = arcpy.Array(lst)
for ply in ary:
countPoly = countPoly + 1
print "Polyline # " + str(countPoly)
print ' '
counter = 0
for pt in ary[0]:
xcoord = ary[0][counter].X
ycoord = ary[0][counter].Y
point = arcpy.Point(xcoord,ycoord)
ptGeometry = arcpy.PointGeometry(point)
print str(xcoord) + ',' + str(ycoord) + ',' + '0.0000'
counter = counter + 1
Message was edited by: Curtis Price (added code highlight in-place)
... View more
10-14-2014
07:27 AM
|
0
|
7
|
1058
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|