Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have two point feature classes - one is the original data and one is the data after editing. I want to know how far each of the points moved in the editing process. How do I compare all of the points in the new data to the points in the old data that have the same ID# and display the distance between them? Also I have the standard license, so I don't have access to the Near or Generate Near Table tools.

share|improve this question
    
What RDBMS are you using (i.e. SQL Server, Oracle, PostGIS)? –  Conor Jul 1 at 18:52
    
Is it likely that the original feature will be the closest to the moved feature? –  artwork21 Jul 1 at 18:52

1 Answer 1

up vote 2 down vote accepted

From a non scripting perspective, it would be fairly straightforward to do the following:

  1. Add two fields to each feature class: X1, Y1, X2, Y2
  2. Calculate Geometry to populate the fields with the coordinates
  3. Join the two feature classes by common ID#
  4. Add a 4th field, DIST
  5. Field calculator with Python

DIST = math.hypot(!X1!-!X2!, !Y1!-!Y2!)

share|improve this answer
1  
out of curiosity, how well does this solution accommodate for points that span several projections? Would the distortion be significant? –  Conor Jul 1 at 19:05
    
This works well for close points in say a single state plane system but not across global projections or similar. –  user two seven two three nine Jul 1 at 19:10
1  
Data in a single feature class can't be in different projections (by definition, all geometries share a single coordinate reference). –  Vince Jul 1 at 19:10
    
@Conor, it depends on the projections. Some projections emphasize area while others deal with distance. It would be strange if the two feature classes weren't in the same coordinate system, though... –  Paul Jul 1 at 19:33
    
This worked beautifully. Thank you very much. –  MMB Jul 1 at 22:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.