How to use the routemap.util.customfields.BigIntArrayField function in routemap

To help you get started, we’ve selected a few routemap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github waymarkedtrails / waymarked-trails-site / django / src / routemap / sites / models.py View on Github external
def get_id(self):
        return 'r' + str(self.id)

    class Meta:
        db_table = u'routes'
        db_tablespace = u'slopemap'

        
class SegmentTableModel(models.Model):
    """Segment table.
    """

    id = cfields.BigIntegerField(primary_key=True)
    nodes = cfields.BigIntArrayField()
    ways = cfields.BigIntArrayField()
    rels = cfields.BigIntArrayField()
    geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])

    class Meta:
        abstract = True


class HikingSegments(SegmentTableModel):
    country = models.CharField(max_length=2, null=True)
    objects = models.GeoManager()
        
    class Meta:
        db_table = u'segments'
        db_tablespace = u'hiking'

class CyclingSegments(SegmentTableModel):
github waymarkedtrails / waymarked-trails-site / django / src / routemap / sites / models.py View on Github external
return self._tags

    def get_id(self):
        return 'r' + str(self.id)

    class Meta:
        db_table = u'routes'
        db_tablespace = u'slopemap'

        
class SegmentTableModel(models.Model):
    """Segment table.
    """

    id = cfields.BigIntegerField(primary_key=True)
    nodes = cfields.BigIntArrayField()
    ways = cfields.BigIntArrayField()
    rels = cfields.BigIntArrayField()
    geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])

    class Meta:
        abstract = True


class HikingSegments(SegmentTableModel):
    country = models.CharField(max_length=2, null=True)
    objects = models.GeoManager()
        
    class Meta:
        db_table = u'segments'
        db_tablespace = u'hiking'
github waymarkedtrails / waymarked-trails-site / django / src / routemap / sites / models.py View on Github external
def get_id(self):
        return 'r' + str(self.id)

    class Meta:
        db_table = u'routes'
        db_tablespace = u'slopemap'

        
class SegmentTableModel(models.Model):
    """Segment table.
    """

    id = cfields.BigIntegerField(primary_key=True)
    nodes = cfields.BigIntArrayField()
    ways = cfields.BigIntArrayField()
    rels = cfields.BigIntArrayField()
    geom = models.GeometryField(srid=settings.DATABASES['default']['SRID'])

    class Meta:
        abstract = True


class HikingSegments(SegmentTableModel):
    country = models.CharField(max_length=2, null=True)
    objects = models.GeoManager()
        
    class Meta:
        db_table = u'segments'
        db_tablespace = u'hiking'

class CyclingSegments(SegmentTableModel):
    objects = models.GeoManager()