Loading autocnet/graph/edge.py +3 −4 Original line number Diff line number Diff line Loading @@ -201,11 +201,10 @@ class Edge(dict, MutableMapping): access to x,y easier as a join on the keypoints is not requires. """ skps = self.get_keypoints(self.source, index=self.matches.source_idx) self.matches.sort_values(by='source_idx')[['source_x', 'source_y']] = skps.sort_index().values dkps = self.get_keypoints(self.destination, index=self.matches.destination_idx) self.matches['source_x'] = skps.x.values self.matches['source_y'] = skps.y.values self.matches['destination_x'] = dkps.x.values self.matches['destination_y'] = dkps.y.values self.matches.sort_values(by='destination_idx')[['destination_x', 'destination_y']] = dkps.sort_index().values def project_matches(self, semimajor, semiminor, on='source', srid=None): """ Loading Loading
autocnet/graph/edge.py +3 −4 Original line number Diff line number Diff line Loading @@ -201,11 +201,10 @@ class Edge(dict, MutableMapping): access to x,y easier as a join on the keypoints is not requires. """ skps = self.get_keypoints(self.source, index=self.matches.source_idx) self.matches.sort_values(by='source_idx')[['source_x', 'source_y']] = skps.sort_index().values dkps = self.get_keypoints(self.destination, index=self.matches.destination_idx) self.matches['source_x'] = skps.x.values self.matches['source_y'] = skps.y.values self.matches['destination_x'] = dkps.x.values self.matches['destination_y'] = dkps.y.values self.matches.sort_values(by='destination_idx')[['destination_x', 'destination_y']] = dkps.sort_index().values def project_matches(self, semimajor, semiminor, on='source', srid=None): """ Loading