Show certain features in OD-matrix

829
3
05-18-2017 09:33 AM
RogierBusscher
New Contributor II

Hi everyone,

I am working on a way to calculate accessibility of certain districts within a city. 

My accessibility measure consists of the amount of jobs in the other districts+ a distance decay function.

Now i would like to solve an OD-matrix with certain origins and destinations. However, i would like the outcomes to show for example the district_ID (which is one of the columns in the attribute table of the point feature class where the origins are loaded from) of the origin and the amount of jobs at each destination (also in the attribute table) . 

I did solve several OD-matrices already, but they do not show any information except for the impedance. 

I would like to know a way to include these characteristics of origins and destinations to the output OD-matrix

Thank you in advance,

Regards,


Rogier

0 Kudos
3 Replies
MelindaMorang
Esri Regular Contributor

Hi Rogier.  To do this sort of thing, you have to use joins.  The OriginID and DestinationID fields in the output OD Lines table correspond to the ObjectID fields in Origins and Destinations, so you can join Origins/Destinations to Lines based on those fields.

To link Origins and/or Destinations to your original input tables, you need to use field mapping when you run Add Locations to map, say, district_id into the Name field.  Or, you can use Add Field to Analysis Layer to add a district_id field directly into Origins or Destinations, and then use field mapping to map district_id to district_id (if that makes sense...).

0 Kudos
RogierBusscher
New Contributor II

Okay, clear.

But somehow, my DestinationID fields do not match the ObjectID fields of my destinations.

I am 100 percent certain that I have the data that the analyses were performed on.

Could there be a specific reason why the values have no matches at all?

0 Kudos
MelindaMorang
Esri Regular Contributor

I don't completely understand the problem.  Are you saying that your Lines sublayer has a DestinationID value that is not an ObjectID value in the Destinations table?  That shouldn't happen, unless you deleted something from Destinations and did not yet re-solve the layer.

If the problem is the other way around, where you have an ObjectID value in Destinations that does not appear in Lines, it could be that that particular destination was not reachable from any Origin.

0 Kudos