You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/11/17 21:18:33 UTC

[Solr Wiki] Update of "SolrAdaptersForLuceneSpatial4" by Bill Bell

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrAdaptersForLuceneSpatial4" page has been changed by Bill Bell:
http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4?action=diff&rev1=21&rev2=22

   * All WKT coordinates are normalized into the standard geospatial lat-lon boundaries.  So, -184 longitude becomes +176, for example.  Both +180 and -180 are kept distinct -- true for all of Spatial4j, not just JTS.
   * The standard way to specify a rectangle in WKT is a Polygon -- WKT doesn't have a rectangle shape.  If you want to specify a Rectangle via WKT (instead of the Spatial4j basic non-WKT syntax), you should take care to specify the coordinates in counter-clockwise order, the WKT standard.  If this is done wrong then the rectangle will go the opposite direction longitudinally, even if it means one that spans nearly the entire globe (>180 degrees width).  OpenLayers seems to not honor the WKT standard here, and depending on the corner you drag the rectangle from, might use a clockwise order.  Some systems like PostGIS don't care what the ordering is, but the problem there is that there is then no way to specify a rectangle that has >= 180 width because there would be ambiguity.  Spatial4j follows the WKT spec.
  
+ == TO DO ==
+ 
+  * ability to pass d parameter for km or miles for small distances (helper?)
+