Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support 2dsphere queries #102

Closed
jmikola opened this Issue · 3 comments

2 participants

@patkar

I wanna take care of these, 'cause I need a subset of them in my project. So I want to give some work back to the community and this great work.

But one question. MongoDB validates GeoJSON strictly and requires numbers only in the coordinates array. So should do the bundle the conversion if a number-string was supplied, or only check and throw an error?

@jmikola
Owner

So should do the bundle the conversion if a number-string was supplied, or only check and throw an error?

@patkar: Are you asking if we should check coordinate arguments for non integer/float values and raise and cast them as necessary? By default, I assume MongoDB would raise an error executing the query? (I haven't tested any of the new GeoJSON stuff yet).

@patkar

Yes, should we check the values from the user and throw an (not checked) exception, or let the user do what he want, and Mongo raise its default exception, if the coordinates are not a number: MongoCursorException: [...] can't parse query (2dsphere) [...]

@jmikola jmikola referenced this issue
Merged

Support GeoJSON and 2dsphere queries #109

3 of 3 tasks complete
@jmikola jmikola closed this in #109
@malarzm malarzm referenced this issue in doctrine/mongodb-odm
Closed

mongo 2.4 support #551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.