lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrAdaptersForLuceneSpatial4" by Bill Bell
Date Sat, 17 Nov 2012 20:18:33 GMT
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?)
+ 

Mime
View raw message