Re: [appengine-java] GeoPt vs. two floats

2011-10-18 Thread Brandon Donnelson
Someone can do there own own GeoPoint Indexing using a hash for the 
geopoint. I've used the java lib below and it works good.

http://code.google.com/p/geomodel/ - python lib
http://code.google.com/p/javageomodel/ - java lib

http://code.google.com/apis/maps/articles/geospatial.html - another great 
article

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Edf1asb5lpcJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GeoPt vs. two floats

2011-10-06 Thread John Patterson
You can actually store a coordinate accurate to about 1 meter in a single 
long value (32 bits each axis).  This can be an important saving if you are 
indexing a lot of locations.  Think of the long value as pointing to a block 
of earth at any degree of accuracy you want.  You can then query for all 
entities that are in the same 1KM block or 10KM block using a normal query 
which you cannot do if you store two floats.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/U3oKICdkgBQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Bruno Fuster
I'm using GeoPt 'cause it might have improvements in the future, like nearby
search.
I'm not sure about Spring form beans. I would recommend VRaptor with Pico
and Objectify for better startup time.



On Tue, Oct 4, 2011 at 11:30 AM, Eliot Stock 1...@eliotstock.com wrote:

 Hi there,

 What's the advantage, if any of using GeoPt (
 http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types)
 over using two float fields?

 I've found the disadvantage is that Spring form beans are difficult to work
 with when you have two hidden fields on the UI (lat and long) but one GeoPt
 field on the entity.

 Cheers,

 Eliot

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/c8oRwyDMIIgJ.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Bruno Fuster

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



Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Bruno Sandivilli
I don't recomend both VRaptor and Objectify, for business/enterprise
projects. And the advantage is that it facilitates for you , for example,
use libraries like GeoModel.

2011/10/4 Bruno Fuster brunofus...@gmail.com

 I'm using GeoPt 'cause it might have improvements in the future, like
 nearby search.
 I'm not sure about Spring form beans. I would recommend VRaptor with Pico
 and Objectify for better startup time.



 On Tue, Oct 4, 2011 at 11:30 AM, Eliot Stock 1...@eliotstock.com wrote:

 Hi there,

 What's the advantage, if any of using GeoPt (
 http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types)
 over using two float fields?

 I've found the disadvantage is that Spring form beans are difficult to
 work with when you have two hidden fields on the UI (lat and long) but one
 GeoPt field on the entity.

 Cheers,

 Eliot

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/c8oRwyDMIIgJ.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




 --
 Bruno Fuster

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


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



Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Jeff Schnitzer
It really isn't a big deal.  Store two floats if you want.  The
reasons I use GeoPt a lot:

 * GeoPt shows up nicely in the datastore viewer
 * You can store arrays of GeoPt
 * The storage cost should be slightly less than two floats because
there is metadata only for one field.
 * Maybe some day in the future we will be able to do spatial indexing
with GeoPt.

I'll be honest though, the primary reason I use GeoPt is because it's
more convenient to pass around one object than two floats.

Jeff

On Tue, Oct 4, 2011 at 7:30 AM, Eliot Stock 1...@eliotstock.com wrote:
 Hi there,
 What's the advantage, if any of using GeoPt
 (http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types)
 over using two float fields?
 I've found the disadvantage is that Spring form beans are difficult to work
 with when you have two hidden fields on the UI (lat and long) but one GeoPt
 field on the entity.
 Cheers,
 Eliot

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/c8oRwyDMIIgJ.
 To post to this group, send email to google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


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



Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Ikai Lan (Google)
AFAIK, there aren't any plans to do Geospatial indexing via GeoPt anytime in
the near future. That being said, if we were to support this feature, it
would make sense for us to start there or at least provide an API supporting
GeoPt. Even if we didn't, you could just call getLatitude() and
getLongitude().

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Tue, Oct 4, 2011 at 10:49 AM, Jeff Schnitzer j...@infohazard.org wrote:

 It really isn't a big deal.  Store two floats if you want.  The
 reasons I use GeoPt a lot:

  * GeoPt shows up nicely in the datastore viewer
  * You can store arrays of GeoPt
  * The storage cost should be slightly less than two floats because
 there is metadata only for one field.
  * Maybe some day in the future we will be able to do spatial indexing
 with GeoPt.

 I'll be honest though, the primary reason I use GeoPt is because it's
 more convenient to pass around one object than two floats.

 Jeff

 On Tue, Oct 4, 2011 at 7:30 AM, Eliot Stock 1...@eliotstock.com wrote:
  Hi there,
  What's the advantage, if any of using GeoPt
  (
 http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types
 )
  over using two float fields?
  I've found the disadvantage is that Spring form beans are difficult to
 work
  with when you have two hidden fields on the UI (lat and long) but one
 GeoPt
  field on the entity.
  Cheers,
  Eliot
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-appengine-java/-/c8oRwyDMIIgJ.
  To post to this group, send email to
 google-appengine-java@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 

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



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