patch to link geotools FID <-> ArcSDE rowId column
--------------------------------------------------

         Key: GEOT-803
         URL: http://jira.codehaus.org/browse/GEOT-803
     Project: GeoTools
        Type: Improvement

  Components: arcsde  
    Versions: 2.1.2, 2.1.0, 2.1.1    
 Environment: ArcSDE 9.0 solaris 8 - Sparc
ArcSDE 9.1 RHEL 3 - AMD64
    Reporter: Saul Farber
 Assigned to: Gabriel Roldán 
    Priority: Minor
 Attachments: sde-rowmanagedFID.patch


ArcSDE allows a spatial database table to have "null" geometries.  I.e., it 
allows the geometry column in a table to have null values...meaning that a 
particular spatially-enabled row just doesn't happen to have a geometry right 
now.  Perhaps it will be be updated later.

The current 2.1.x ArcSDE module simply extracts the featureid of a row 
(feature) from the unique-id of the geometry (SeShape) for that row (feature).

Unfortunately, this means that null geometry rows don't get a featureid, and 
consequently can't be returned by geotools (fails with "The featureId was not 
fetched" on ArcSDEAttributeReader.java line 270 or so)

I wanted to work with tables that had null geometries, and I knew that ArcSDE 
has a mechanism to communicate that a particular column (attribute) in a table 
(featureType) is the "unique-id" column for that table.  So I figured that that 
would be a better "guaranteed-unique" featureID candidate, since that's what 
it's designed for.

This patch adds this functionality, gracefully falling back to the current 
behavior when no such column is available.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to