|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.util.SpatialUtils
public class SpatialUtils
Utility methods pertaining to spatial.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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-null
com.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.
SolrException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |