In your models

db.define_table('t',
  Field('staid','integer'),
  Field('stacall','string'),
  Field('location','string',notnull=False,default=''),
  Field('state','string',notnull=False,default=''),
  Field('lat','string'),
  Field('lon','string'),
  Field('elev','integer',notnull=False,default=0))

and create a CSV like this

t.staid,t.stacall,t.location,t.state,t.lat,t.lon,t.elev
010017,ENFR,FRIGG,NO,5956N,00200E,0
010015,ENBL,FORDE/BRINGELAND,NO,6127N,00552E,0150
010030,,HORNSUND RIVER,NO,7700N,01530E,0012
...

note that if elev is missing you must put a 0 (zero).

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to