From: Richard Gould (JIRA) <jira@co...> - 2006-07-25 23:46:26
Problem determing proper geometry type with ArcSDE 9.x
Issue Type: Bug
Components: data arcsde
Affects Versions: 2.2-RC3
Environment: ArcSDE 9.0 and 9.1
Reporter: Richard Gould
Assigned To: Gabriel Rold=E1n
Fix For: 2.2
In ArcSDE 9.x, the constants in "SeLayer" seem to have changed. This can ca=
use ArcSDEAdapter.getGeometryType() to return an incorrect geometry.
it seems that there are two ways to determine a layer's geometry type:
1) Check its type against the TYPE_* constants, and
2) If that fails, check the type against the various SE_*_TYPE_MASK constan=
The problem in this instance is that the SeLayer's geometry type is "2", wh=
ich corresponds to both TYPE_LINE and SE_POINT_TYPE_MASK. The layer's true =
geometry is Point, but since it matches against TYPE_LINE in case 1, the wr=
ong geometry type is returned.
With my limited understanding of ArcSDE and the java API it uses, I propose=
a method to hopefully fix this:
1) Check if the major version of the instance is 9 or higher. If it isn't, =
proceed exactly as before.
2) If the major version is 9 or higher, do not perform case 1 above. (ie do=
not check the type value against the TYPE_* constants)
Attached is a patch that makes these adjustments to ArcSDEAdapter on 2.2.x.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: htt=
For more information on JIRA, see: http://www.atlassian.com/software/jira
Get latest updates about Open Source Projects, Conferences and News.