Opened 12 years ago

Closed 5 years ago

#4240 closed defect (wontfix)

SE_TOO_FEW_POINTS error on ogr SDE driver

Reported by: phooncloudy Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: OGR_SF Version: unspecified
Severity: normal Keywords: SDE

Description (last modified by warmerdam)

This happens inserting a shape file to SDE.

The spatial reference of shape file is :


The error is:

The error code is: -148/ The number of points is less than required for feature.

I have tested, because some default value of below spatial reference has some problem.

/* ---------------------------------------------------------------------*/
/*		Set the XYTolerance of SDE coordref object
/* ---------------------------------------------------------------------*/
	const char *pszXYTolerance;
	pszXYTolerance = CSLFetchNameValue(papszOptions,"SDE_XYTOLERANCE");
	if(NULL == pszXYTolerance)
		pszXYTolerance = "0.000001";
	nSDEErr= SgCoordRefSetXYClusterTol(hCoordRef,atof(pszXYTolerance));
	if(SE_SUCCESS != nSDEErr)
		IssueSDEError( nSDEErr,"SE_layerinfo_create");
		return NULL;
const char* pszMinx;
const char* pszMiny;
const char* pszResolution;
pszMinx = CSLFetchNameValue(papszOptions,"SDE_XMIN");
if(NULL == pszMinx)
	pszMinx = "-400";
pszMiny = CSLFetchNameValue(papszOptions,"SDE_YMIN");
if(NULL == pszMiny)
	pszMiny = "-400";

pszResolution = CSLFetchNameValue(papszOptions,"SDE_RESOLUTION");
if(NULL == pszResolution)
	pszResolution = "1000000000";
nSDEErr = SE_coordref_set_xy(hCoordRef,atof(pszMinx),atof(pszMiny),atof(pszResolution));
	if(SE_SUCCESS != nSDEErr)
		IssueSDEError( nSDEErr,"SE_layerinfo_create");
		return NULL;

Change History (3)

comment:1 by warmerdam, 12 years ago

Description: modified (diff)
Keywords: SDE added
Milestone: 1.8.2

removed milestone.

comment:2 by warmerdam, 12 years ago

I no longer have access to SDE so it would be very hard for me to test and apply this.

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to if it is not already reported there.

Note: See TracTickets for help on using tickets.