Skip to content

Commit

Permalink
Merge pull request #161 from CarstenHollmann/fix/spatialFilteringProf…
Browse files Browse the repository at this point in the history
…ile_envelope_query_for_not_extent_support

Fix for Spatial Filtering Profile envelope query and not support extent function
  • Loading branch information
CarstenHollmann committed Dec 23, 2014
2 parents 8db29b0 + dbd0330 commit 9a5f1c7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1154,8 +1154,7 @@ protected SosEnvelope getSpatialFilteringProfileEnvelopeForOfferingId(Class claz
} else {
final Envelope envelope = new Envelope();
Criteria criteria = session.createCriteria(clazz);
Criteria createCriteria = criteria.createCriteria(AbstractObservationTime.SAMPLING_GEOMETRY);
createCriteria.createCriteria(AbstractObservation.OFFERINGS).add(
criteria.createCriteria(AbstractObservation.OFFERINGS).add(
Restrictions.eq(Offering.IDENTIFIER, offeringID));
LOGGER.debug("QUERY getEnvelopeForOfferingId(offeringID): {}", HibernateHelper.getSqlString(criteria));
@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 9a5f1c7

Please sign in to comment.