Examples of County2010


Examples of org.geo.spatialsearch.census.model.County2010

    }

    @Test
    public void testCountyById() {
      Long id = 1L;
        County2010 county = (County2010) censusService.findById(
                CensusGeographyEnum.COUNTY2010, id);
        assertNotNull(county);
        assertEquals(county.getGeoid(), "36065");
    }
View Full Code Here

Examples of org.geo.spatialsearch.census.model.County2010

  @Transactional(readOnly = true)
  private void findCountyByPoint(CensusLookupResponse apiResponse, Point point) {
    final Criteria stateCriteria = county2010DAO.createCriteria();
    stateCriteria.add(SpatialRestrictions.contains("geometry", point));
    County2010 county = county2010DAO.findByCriteria(stateCriteria);
    if (county != null) {
      county.setEnvelope(new Envelope(county.getGeometry()
          .getEnvelopeInternal()));
      apiResponse.getCensusLookupBaseResponse().getCounties().add(county);
    }
    ValidationUtil.isEmptyResult(apiResponse, apiResponse
        .getCensusLookupBaseResponse().getCounties(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.