You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/06/03 00:09:02 UTC

[GitHub] [druid] lokkju opened a new issue #9970: Geographic Queries x/y lon/lat coordinate confusion

lokkju opened a new issue #9970:
URL: https://github.com/apache/druid/issues/9970


   The geographic query documentation is unclear about the relation of latitude/longitude to horizontal/vertical and x/y coordinates for querying.
   
   ### Affected Version
   0.18.0 (all versions that support spatial queries?)
   
   ### Description
   In Geography: `longitude` is the horizontal dimension and `latitude` is the vertical dimension
   In Geometry: `x` is the horizontal dimension and `y` is the vertical dimension 
   For Polygons: `abscissa` is the horizontal dimension values and `ordinate` is the vertical dimension values
   
   The Geographic Query documentation page has an example that shows indexing dimensions being given as: `"dims": ["lat", "long"]`.
   
   The spatial filter documentation for `rectangular` and `radius` bounds specifies queries should provide coordinates as `[x, y, z, …]`
   
   This is confusing, and if followed to the letter, won't work as expected. Either I'm misunderstanding something, or else the person who wrote the documentation didn't understand the difference between geographic coordinate order vs geometric coordinate order.
   
   The same issues exists with `polygon` bounds, as providing the index dimensions as in the example will require the `abscissa` to contain latitude (vertical) values.
   
   The correct fix would be to specify your index dimensions as `["long","lat"]`, but that could be very confusion for anyone who has already been using spatial queries. An alternative is to enshrine the `["lat", "long"]` ordering by specifying that spatial bounds should provide coordinates in ["lat", "long"]`  order.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] lokkju commented on issue #9970: Geographic Queries x/y lon/lat coordinate confusion

Posted by GitBox <gi...@apache.org>.
lokkju commented on issue #9970:
URL: https://github.com/apache/druid/issues/9970#issuecomment-703529316


   But it does care, as it uses the terms `lat` and `long` in the example; but it uses them as `x` and `y`, when they are actually `y` and `x`. As I said, this means that anyone who follows the example, and then queries using, for instance, correct `polygon` coordinates, will not get correct results.
   
   Perhaps the most simple fix would be to remove the usage of the terms `lat` and `long` from the page entirely.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] SWH12 commented on issue #9970: Geographic Queries x/y lon/lat coordinate confusion

Posted by GitBox <gi...@apache.org>.
SWH12 commented on issue #9970:
URL: https://github.com/apache/druid/issues/9970#issuecomment-703465074


   Druid's Geographic Queries is not a real Geographic Queries. So the documentation don’t care about the relation of latitude/longitude to horizontal/vertical and x/y coordinates for querying.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] lokkju edited a comment on issue #9970: Geographic Queries x/y lon/lat coordinate confusion

Posted by GitBox <gi...@apache.org>.
lokkju edited a comment on issue #9970:
URL: https://github.com/apache/druid/issues/9970#issuecomment-703529316


   But it does care, as it uses the terms `lat` and `long` in the example; but it uses them as `x` and `y`, when they are actually `y` and `x`. As I said, this means that anyone who follows the example, and then queries using, for instance, correct `polygon` coordinates, will not get correct results.
   
   Perhaps the easiest fix would be to remove the usage of the terms `lat` and `long` from the page entirely.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org