hackoregon / transportation-backend

Transportation backend repo - 2016 and 2017
8 stars 7 forks source link

Automatically generate Django models from geojson files #1

Closed sanjuroj closed 7 years ago

sanjuroj commented 7 years ago

Turns out GeoDjango has the ogrinspect management script that can convert GeoJson into a model definition. This may (or may not) be better than loading to the database directly and creating models based on that. Still has trouble with the date fields though. May still be better to load directly to a DB and create all models en masse.

sanjuroj commented 7 years ago

Not relevant any more.