Search in sources :

Example 71 with Point

use of org.locationtech.spatial4j.shape.Point in project ddf by codice.

the class GeoNamesWebServiceTest method testCreateGeoPointFromWktParseException.

@Test
public void testCreateGeoPointFromWktParseException() {
    String pointWkt = "i am not well known";
    Point p = webService.createPointFromWkt(pointWkt);
    assertThat(p, nullValue());
}
Also used : ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) Point(org.locationtech.spatial4j.shape.Point) Test(org.junit.Test)

Aggregations

Point (org.locationtech.spatial4j.shape.Point)71 Test (org.junit.Test)21 Shape (org.locationtech.spatial4j.shape.Shape)15 Query (org.apache.lucene.search.Query)9 SpatialArgs (org.apache.lucene.spatial.query.SpatialArgs)9 Rectangle (org.locationtech.spatial4j.shape.Rectangle)9 ArrayList (java.util.ArrayList)7 Field (org.apache.lucene.document.Field)6 PointImpl (org.locationtech.spatial4j.shape.impl.PointImpl)6 BooleanQuery (org.apache.lucene.search.BooleanQuery)5 TopDocs (org.apache.lucene.search.TopDocs)5 IOException (java.io.IOException)4 SpatialContext (org.locationtech.spatial4j.context.SpatialContext)4 Document (org.apache.lucene.document.Document)3 StoredField (org.apache.lucene.document.StoredField)3 IndexReader (org.apache.lucene.index.IndexReader)3 IndexSearcher (org.apache.lucene.search.IndexSearcher)3 ScoreDoc (org.apache.lucene.search.ScoreDoc)3 Cell (org.apache.lucene.spatial.prefix.tree.Cell)3 CellIterator (org.apache.lucene.spatial.prefix.tree.CellIterator)3