Milton Jonathan ha scritto:
> Hey Andrea
> 
> Hmm, makes some sense but I didn't realize we had to specify a schema 
> for connecting to the Database (I didn't need that for Postgis, and I 
> assumed the user's schema was used by default - not the case for 
> Oracle). OK, so specifying the correct schema makes everything much 
> nicer. Still, I had some problems:
> 
> - dataStore.getFeatureSource(String typeName) only worked when the type 
> name was in upper case, even though the one used in 
> dataStore.createSchema had lower case characters (maybe you are using 
> "equals" instead of "equalsIgnoreCase" when looking for the FeatureSource?)

This is a limitation of Oracle spatial that I cannot do anything about,
Spatial/Locator works only if the table name and the spatial column 
names are uppercase (pathetic, I know, but if you look into the
documentation or the forums you'll find confirmation).

> - It seems that the geometry attributes didn't make their way to the 
> Oracle database. When I tried to read the features back from Oracle, I 
> had some NullPointExceptions when calling 
> SimpleFeature.getDefaultGeometry...

Uh, that's unexpected. Maybe it has something to do with the
code used or the geometry type, or the CRS. Do you have a reproducable
test case for me?

Cheers
Andrea

-- 
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

-------------------------------------------------------------------------
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-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to