ArcSDE NStrings
---------------

                 Key: GEOT-2024
                 URL: http://jira.codehaus.org/browse/GEOT-2024
             Project: GeoTools
          Issue Type: Bug
          Components: data arcsde
    Affects Versions: 2.5-RC0
         Environment: Windows XP, Java 1.6.0
            Reporter: Jared Erickson
            Assignee: Gabriel Roldán


I was testing an application that uses the GeoTools ArcSDE module to insert
into an ArcSDE FeatureClass and I think I discovered a bug. For columns of
type NString, you have to use SeRow.setNString instead of SeRow.setString.
ArcSdeFeatureWriter tries to use SeRow.setString for all string types (see
line 653).

else if (colType == SeColumnDefinition.TYPE_STRING
|| colType == SeColumnDefinition.TYPE_NSTRING
|| colType == SeColumnDefinition.TYPE_CLOB
|| colType == SeColumnDefinition.TYPE_NCLOB) {
convertedValue = Converters.convert(convertedValue,
String.class);
row.setString(index, (String) convertedValue);

Could this be fixed for the 2.5 release?

Thanks,
Jared

-- 
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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to