GeoTools

SQLDialect.encodeGeometryEnvelope needs to pass in the descriptor and the connection