OD_TRIP建表SQL - mouse3150/mouse3150.github.io GitHub Wiki

CREATE TABLE "public"."od_trip_geom_3" (
"id" SERIAL primary key,
"card" varchar(12) COLLATE "default" NOT NULL,
"swip_time" timestamp(6),
"station" geometry,
"mode" char(6),
"station_code" varchar(12),
"label" int2) WITH (OIDS=FALSE);

comment on column od_trip_geom_3.id is '主键ID,自增';
comment on column od_trip_geom_3.card is '卡号';
comment on column od_trip_geom_3.swip_time is '刷卡时间';
comment on column od_trip_geom_3.station is '刷卡时位置点,Point';
comment on column od_trip_geom_3.mode is '交通类型,B表示公交车,T表示地铁';
comment on column od_trip_geom_3.station_code is '站点码';
comment on column od_trip_geom_3.label is '刷卡类型标记,0表示上车刷卡,1表示下车刷卡';

说明:

  1. 每次刷卡事件保存一条记录,通过空间类分析人的活动范围;