We recently upgraded from SDE9.3 to SDE10, since then we have been having issues when using the function SE_stream_set_spatial_constraints. We are getting a return value of 4294967266, which falls outside of the range of error number in the sdeerrno.h file.
This call has worked fine in the past for sde 8.3 through sde9.3. The application compiles fine but when running the function SE_stream_set_spatial_constraints returns 4294967266. The applications and all libraries, including sde10, are 64bit and we are using rhel5. SDE is installed in an Oracle 11g database.
Any help would be appreciated.
Here is a code snippet from our function at the failure point.
long rc;
....
strcpy(Filter.table, "OPERATIONS");
strcpy(Filter.column, "sde_cov");
Filter.filter.shape = tgt_shape;
Filter.method = SM_AI; /* area intersection */
Filter.truth = TRUE;
Filter.filter_type = SE_SHAPE_FILTER;
rc = SE_stream_set_spatial_constraints(stream, SE_ATTRIBUTE_FIRST, FALSE,1,&Filter);
if(rc != SE_SUCCESS)
{
printf("Unable to filter with intersecting shape: Error code: %ld\n",rc);
SE_shape_free (tgt_shape);
SE_sql_construct_free(sqlc);
SE_connection_free(Connection);
SE_stream_free(stream);
SE_coordref_free(coordref);
return 0;
}
......