Default values for lat/long

1,159 views
Skip to first unread message

ZNS

unread,
Jan 17, 2013, 7:50:31 AM1/17/13
to rav...@googlegroups.com
Hi,

We have an index that has items where some might be geo located and some are not. We have a spatial field on this index. What are valid values to use for latitude/longitude for items that doesn't have any? I don't want to set them to 0 since that is a valid position. Will the it cause any problems if I set them to for example 360?

Oren Eini (Ayende Rahien)

unread,
Jan 17, 2013, 8:36:28 AM1/17/13
to ravendb
The values are -180 - +180.
You can pass null, instead.

ZNS

unread,
Jan 17, 2013, 8:38:56 AM1/17/13
to rav...@googlegroups.com

By using a nullable double on my property?

Oren Eini (Ayende Rahien)

unread,
Jan 17, 2013, 8:40:15 AM1/17/13
to ravendb
Yes

ZNS

unread,
Jan 17, 2013, 8:42:04 AM1/17/13
to rav...@googlegroups.com

Thanks!

ZNS

unread,
Jan 17, 2013, 8:44:13 AM1/17/13
to rav...@googlegroups.com

Problems right away. SpatialGenerate() does not accept nullable double.

Oren Eini (Ayende Rahien)

unread,
Jan 17, 2013, 8:47:20 AM1/17/13
to ravendb
I accept it on the server side.
Will be fixed client side in the next build.

On Thu, Jan 17, 2013 at 2:44 PM, ZNS <ulrik.a...@gmail.com> wrote:
SpatialGenerate

w

ZNS

unread,
Jan 17, 2013, 8:50:11 AM1/17/13
to rav...@googlegroups.com

Sounds good.
Reply all
Reply to author
Forward
0 new messages