Hello all,
PostgreSQL / Django / newbie here.
I've got a bunch of JSON data with venues and lat/long information, and I'm looking to import it into my database. So far I've fenagled a script to format my JSON into SQL statements, so I can import them with a slew of INSERT statements.
But my 'location' field (a PointField) is giving me grief when I try to use ST_PointFromText('POINT(lon lat)') syntax. Specifically:
ERROR: new row for relation "finder_venue" violates check constraint "enforce_srid_location"
So how do I generate a proper SRID?
Or, given Django's ease, I can't help but feel like I'm committing programmatic heresy here. Can someone point me in a more intelligent direction?
Thanks,
Jon