Geodjango / SRID for simple Cartesian coordinate systems?

266 views
Skip to first unread message

Evan Reiser

unread,
Nov 18, 2010, 6:19:35 PM11/18/10
to geodjango
I'd like to take advantage of Geodjango but my objects only exist in a
Cartesian coordinate system (rather than the surface of a sphere).
Can anyone recommend an SRID to use?

I can imagine that the simple/naive solution would be not to use
GeoDjango and just store the X,Y coordinates as their own columns,
however since its a very large data set i'd like to take advantage of
the spacial indexing

-Evan

Trevor Wiens

unread,
Nov 18, 2010, 6:37:01 PM11/18/10
to geod...@googlegroups.com
I'm not sure about the best way to do it, but two possibilities come to mind.

1. I don't know if GeoDjango requires it, but in PostGIS you can have
geometry objects with no SRID declared. I believe however if you do
this PostGIS assumes that the data is SRID 4326 (WGS 84 lon/lat) for
any calculations.

2. The other option would be to use a UTM or TM based projection
assuming the values are within the range of a single zone. This way
any calculations you did, (point in polygon, area, perimeter, etc)
would be based on an x,y grid.

TSW

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

--
Trevor Wiens
Principal, Apropos Information Systems
Calgary, Alberta
403-973-5901

Robert Coup

unread,
Nov 18, 2010, 6:42:44 PM11/18/10
to geod...@googlegroups.com
On Fri, Nov 19, 2010 at 12:19 PM, Evan Reiser <evan....@gmail.com> wrote:
I'd like to take advantage of Geodjango but my objects only exist in a
Cartesian coordinate system (rather than the surface of a sphere).
Can anyone recommend an SRID to use?

Try using -1 for your srid value on your field.

Unless you're doing reprojection to convert from/to another coordinate system it actually doesn't matter - the numbers are just treated as numbers within an SRID, so 4326 would even work.

Rob :)

Reply all
Reply to author
Forward
0 new messages