use of org.geotools.geojson.geom.GeometryJSON in project dhis2-core by dhis2.
the class OrganisationUnitPolygonCoveringCoordinateFilterTest method verifyFilterExcludesOrgUnitFallingOutsidePolygon.
@Test
void verifyFilterExcludesOrgUnitFallingOutsidePolygon() throws IOException {
filter = new OrganisationUnitPolygonCoveringCoordinateFilter(10.758833885192871, 59.91530028312405);
Geometry ouGeometry = new GeometryJSON().read(DOWNTOWN_OSLO);
organisationUnit.setGeometry(ouGeometry);
assertFalse(filter.retain(organisationUnit));
}
use of org.geotools.geojson.geom.GeometryJSON in project dhis2-core by dhis2.
the class GeoFeatureServiceMockTest method createOrgUnitWithCoordinates.
private OrganisationUnit createOrgUnitWithCoordinates() throws IOException {
OrganisationUnit ou = createOrgUnitWithoutCoordinates();
ou.setGeometry(new GeometryJSON().read(POINT));
return ou;
}
Aggregations