public class SpatialUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
static com.spatial4j.core.shape.Point | 
parsePoint(String str,
          com.spatial4j.core.context.SpatialContext ctx)
Parses either "lat, lon" (spaces optional on either comma side) or "x y" style formats. 
 | 
static com.spatial4j.core.shape.Point | 
parsePointSolrException(String externalVal,
                       com.spatial4j.core.context.SpatialContext ctx)
Calls  
parsePoint(String, com.spatial4j.core.context.SpatialContext) and wraps
 the exception with SolrException with a helpful message. | 
public static com.spatial4j.core.shape.Point parsePoint(String str, com.spatial4j.core.context.SpatialContext ctx) throws com.spatial4j.core.exception.InvalidShapeException
str - Non-null; may have leading or trailing spacesctx - Non-nullcom.spatial4j.core.exception.InvalidShapeException - If for any reason there was a problem parsing the string or creating the point.public static com.spatial4j.core.shape.Point parsePointSolrException(String externalVal, com.spatial4j.core.context.SpatialContext ctx) throws SolrException
parsePoint(String, com.spatial4j.core.context.SpatialContext) and wraps
 the exception with SolrException with a helpful message.SolrExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.