Package org.geo.spatialsearch.model

Examples of org.geo.spatialsearch.model.Envelope


  private void findStateByPoint(CensusLookupResponse apiResponse, Point point) {
    final Criteria stateCriteria = state2010DAO.createCriteria();
    stateCriteria.add(SpatialRestrictions.contains("geometry", point));
    State2010 state = state2010DAO.findByCriteria(stateCriteria);
    if (state != null) {
      state.setEnvelope(new Envelope(state.getGeometry()
          .getEnvelopeInternal()));
      apiResponse.getCensusLookupBaseResponse().getStates().add(state);
    }
    ValidationUtil.isEmptyResult(apiResponse, apiResponse
        .getCensusLookupBaseResponse().getStates(),
View Full Code Here


  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

  private void findBlockByPoint(CensusLookupResponse apiResponse, Point point) {
    final Criteria blockCriteria = block2010DAO.createCriteria();
    blockCriteria.add(SpatialRestrictions.contains("geometry", point));
    Block2010 block = block2010DAO.findByCriteria(blockCriteria);
    if (block != null) {
      block.setEnvelope(new Envelope(block.getGeometry()
          .getEnvelopeInternal()));
      apiResponse.getCensusLookupBaseResponse().getBlocks().add(block);
    }
    ValidationUtil.isEmptyResult(apiResponse, apiResponse
        .getCensusLookupBaseResponse().getBlocks(),
View Full Code Here

TOP

Related Classes of org.geo.spatialsearch.model.Envelope

Copyright © 2018 www.massapicom. 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.