コード例 #1
0
class SegmentToPano3(db.Model):
    linkId = db.Column(db.Integer, primary_key=True)
    segmentId = db.Column(db.Integer,
                          db.ForeignKey(SidewalkSegment3.segmentId))
    whichEndpoint = db.Column(db.Text())
    panoId = db.Column(db.Integer)
    headingDegree = db.Column(db.Float)
コード例 #2
0
class SidewalkSegment2(db.Model):
    segmentId = db.Column(db.Integer, primary_key=True)
    directionInd = db.Column(db.String(length=50), primary_key=True)
    linearId = db.Column(db.Integer, nullable=False)
    streetName = db.Column(db.Text(), nullable=True)
    startLat = db.Column(db.Float, nullable=False)
    startLong = db.Column(db.Float, nullable=False)
    endLat = db.Column(db.Float, nullable=False)
    endLong = db.Column(db.Float, nullable=False)
    whichArcgisFile = db.Column(db.String(length=10))
    geoJson = db.Column(db.JSON, nullable=False)
コード例 #3
0
class PanoFeature(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    panoId = db.Column(db.String(length=50))
    linearId = db.Column(db.Integer, nullable=False)
    headingDegree = db.Column(db.Float, nullable=False)
    label = db.Column(db.Integer, nullable=False)
    source = db.Column(db.Text(), nullable=False)
    updateTs = db.Column(db.DateTime(), server_default=func.now())
コード例 #4
0
class InSituFeedback(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    lat = db.Column(db.Float, nullable=False)
    long = db.Column(db.Float, nullable=False)
    mode = db.Column(db.String(length=50), nullable=False)
    label = db.Column(db.String(length=50), nullable=False)
    updateTs = db.Column(db.DateTime(), server_default=func.now())

    def __init__(self, lat, long, mode, label):
        self.lat = lat
        self.long = long
        self.mode = mode
        self.label = label
コード例 #5
0
class Pano(db.Model):
    panoId = db.Column(db.String(length=50), primary_key=True)
    headingDegree = db.Column(db.Float, primary_key=True)
    linearId = db.Column(db.Integer, nullable=False)
    lat = db.Column(db.Float, nullable=False)
    long = db.Column(db.Float, nullable=False)
コード例 #6
0
class SidewalkSegment4(db.Model):
    segmentId = db.Column(db.Integer, primary_key=True)
    directionInd = db.Column(db.String(length=50), primary_key=True)
    roadObjectId = db.Column(db.Integer, nullable=False)
    streetName = db.Column(db.Text(), nullable=True)
    startLat = db.Column(db.Float, nullable=False)
    startLong = db.Column(db.Float, nullable=False)
    endLat = db.Column(db.Float, nullable=False)
    endLong = db.Column(db.Float, nullable=False)
    whichArcgisFile = db.Column(db.String(length=10))
    roadGrade = db.Column(db.Float, nullable=False)
    geoJson = db.Column(db.JSON, nullable=False)
    updateTs = db.Column(db.DateTime(), server_default=func.now())