ArcSDE createSchema fails
-------------------------
Key: GEOT-2365
URL: http://jira.codehaus.org/browse/GEOT-2365
Project: GeoTools
Issue Type: Bug
Components: data arcsde
Affects Versions: 2.5.3
Reporter: Jared Erickson
Assignee: Gabriel Roldán
Attachments: arcsde_datastore_plugin_path.patch
I was using the GeoTools ArcSDE extension to create a new feature class and
then write features to it when I discovered a couple bugs.
First, in the ArcSDE dummy api, the SeLayer object doesn't have a public void
setGridSizes(int i, int j, int k) {} method (at least in 9.1 or 9.2). Removing
this method requires a change to the org.geotools.arcsde.data.ArcSDEAdapter
class. Int the createSeLayer method layer.setGridSizes(1100, 0, 0); needs to
be changed to layer.setGridSizes(1100.0, 0.0, 0.0);
Second, also in the ArcSDE dummy api, the SeColumnDefinition object doesn't
have a public int getScale() { return 0; } method it has a public short
getScale() { return 0; } method.
Finally, the ArcSDEAdapter class has another bug when constructing the table
name with provided user name. Instead of adding the connection's user name
onto the featureType.getTypeName(), we should add the already parsed
unqualifiedTypeName.
So, qualifiedName = connection.getUser() + "." + featureType.getTypeName();
should become qualifiedName = connection.getUser() + "." + unqualifiedTypeName;
--
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
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel