-
Notifications
You must be signed in to change notification settings - Fork 179
faq 101187587
by gunnarfloetteroed on 2016-12-14 10:06:19
I would like to annotate each plan of each person in the population file with attributes not contained in the population DTD. Background: The plan choice set is generated by sampling alternatives and I need to correct for the sampling in (a preprocessing step of the) plan selection.
What is the right way to do this? The parser refuses elements/attributes not defined in the DTD, and when using an external objectattributes file, I have no plan identifiers to refer to. I could think of relying on the plan ordering per person in the population file and building an objectattribute file with a corresponding plan indexing, but that appears rather fragile.
Thanks, Gunnar
by Marcel Rieser on 2016-12-14 11:42:41
That's currently not possible.
population_v6.dtd
supports custom attributes on person
s, activity
s and leg
s. I don't know why it is not supported for plan
s as well – at least I could come up with more ideas for attributes for a plan than for attributes for activities, but I guess usages vary.
I would probably raise an issue requesting (or even implementing) that plans can also have attributes.
population_v6.dtd was not yet published in an official release, so we could still make changes to it, and this seems like a useful change to me.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq