<s> from django . db import models <EOL> import gcsConstants <EOL> class Image ( models . Model ) : <EOL> title = models . CharField ( max_length = gcsConstants . MAX_MISC_STR_LENGTH ) <EOL> author = models . CharField ( max_length = gcsConstants . MAX_MISC_STR_LENGTH ) <EOL> uri = models . CharField ( max_length = gcsConstants . MAX_MISC_STR_LENGTH ) <EOL> dateCreated = models . DateTimeField ( auto_now_add = True ) <EOL> lastEditTime = models . DateTimeField ( auto_now = True ) <EOL> metaData = models . CharField ( max_length = gcsConstants . MAX_COMMENT_LENGTH , blank = True ) <EOL> blob = models . CharField ( max_length = gcsConstants . MAX_BLOB_LENGTH_BYTES , blank = True ) <EOL> phi = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> image_width = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT> <EOL> ) <EOL> image_height = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT> <EOL> ) <EOL> viewangle_horiz = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT> <EOL> ) <EOL> viewangle_vert = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT> <EOL> ) <EOL> time = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> psi = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> theta = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> alt = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> course = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> speed = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> utm_east = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> utm_north = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> pixel_per_meter = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> ppm_difference = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES , <EOL> default = <NUM_LIT:0.0> <EOL> ) <EOL> def __unicode__ ( self ) : <EOL> return "<STR_LIT>" . format ( t = self . title , p = self . uri ) <EOL> class Marker ( models . Model ) : <EOL> associatedImage = models . ForeignKey ( Image ) <EOL> iconPath = models . CharField ( max_length = gcsConstants . MAX_MISC_STR_LENGTH ) <EOL> author = models . CharField ( max_length = gcsConstants . MAX_MISC_STR_LENGTH ) <EOL> dateCreated = models . DateTimeField ( auto_now_add = True ) <EOL> lastEditTime = models . DateTimeField ( auto_now = True ) <EOL> longHashNumber = models . BigIntegerField ( ) <EOL> x = models . IntegerField ( ) <EOL> y = models . IntegerField ( ) <EOL> lat = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES <EOL> ) <EOL> lon = models . DecimalField ( <EOL> max_digits = gcsConstants . MAX_DIGITS , decimal_places = gcsConstants . MAX_DECIMAL_PLACES <EOL> ) <EOL> comments = models . CharField ( max_length = gcsConstants . MAX_COMMENT_LENGTH , blank = True ) <EOL> def __unicode__ ( self ) : <EOL> return "<STR_LIT>" . format ( a = self . author , d = self . dateCreated ) </s>
