org.geotools.arcsde.data

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.arcsde.data 
org.geotools.arcsde.data
DataStore implementation for the ArcSDE 8.x and 9.x spatial gateway.

This implementation is based on the ESRI's ArcSDE Java API. This API is based on a single jar file wich maven downloads automatically and a couple of platform specific libraries (.dll or .so). So we have made an effort in order to this DataStore implementation not being dependant of those native libraries.

The feature set of the ArcSDEDataStore includes feature write support but is actually limited to the inprocess locking manager. Native locking should be developed and will be higly appreciated, so volunteers are wellcome.

Java Source File NameTypeComment
ArcSDEAdapter.javaClass Utility class to deal with SDE specifics such as creating SeQuery objects from geotool's Query's, mapping SDE types to Java ones and JTS Geometries, etc.
ArcSDEAttributeReader.javaClass Implements an attribute reader that is aware of the particulars of ArcSDE.
ArcSDEDataStore.javaClass Implements a DataStore to work upon an ArcSDE spatial database gateway. String[] getTypeNames() FeatureType getSchema(String typeName) FeatureReader getFeatureReader( typeName ) FeatureWriter getFeatureWriter( typeName ) Filter getUnsupportedFilter(String typeName, Filter filter) FeatureReader getFeatureReader(String typeName, Query query)

All remaining functionality is implemented against these methods, including Transaction and Locking Support.

ArcSDEDataStoreTest.javaClass
ArcSDEFeatureStoreTest.javaClass
ArcSDEFeatureWriter.javaClass Implementation fo the FeatureWriter interface for use with the ArcSDEDataStore class.
ArcSDEGeometryBuilder.javaClass Creates propper JTS Geometry objects from SeShape objects and viceversa.

SeShape's are gathered from an SeRow ArcSDE API's result object and holds it's geometry attributes as a three dimensional array of double primitives as explained bellow.

By this way, we avoid the creation of ArcSDE's java implementation of OGC geometries for later translation to JTS, avoiding too the dependency on the ArcSDE native library wich the geometry package of the ArcSDE Java API depends on.

Given double [][][]coords the meaning of this array is as follow:

  • coords.length reprsents the number of geometries this geometry is composed of.
ArcSDEGeometryBuildingException.javaClass
ArcSDEJavaApiTest.javaClass Exersices the ArcSDE Java API to ensure our assumptions are correct.
ArcSDEOldStyleFiltersTest.javaClass
ArcSDEQuery.javaClass Wrapper class for SeQuery to hold a SeConnection until close() is called and provide utility methods.
ArcSDEQueryTest.javaClass
ArcTransactionState.javaClass Externalizes transactional state for ArcSDEFeatureWriter instances.
FIDReader.javaClass Strategy object used to manage the different ways an ArcSDE server handles row identity.
GeometryBuilderTest.javaClass
InProcessViewSupportTestData.javaClass
SDEJavaApiJoinTest.javaClass ArcSDEDAtaStore test case for a master-child joining

This test will create an sde layer (table + spatial table) as master and a business table as child:


 -----------------------------------------------
 |            GT_SDE_TEST_MASTER               |
 -----------------------------------------------
 |  ID(int)  | NAME (string)  | SHAPE (Point)  |
 -----------------------------------------------
 |     1     |   name1        |  POINT(1, 1)   |
 -----------------------------------------------
 |     2     |   name2        |  POINT(2, 2)   |
 -----------------------------------------------
 |     3     |   name3        |  POINT(3, 3)   |
 -----------------------------------------------
 ---------------------------------------------------------------------
 |                     GT_SDE_TEST_CHILD                             |
 ---------------------------------------------------------------------
 | ID(int)   | MASTER_ID      | NAME (string)  | DESCRIPTION(string  |
 ---------------------------------------------------------------------
 |    1      |      1         |   child1       |    description1     |
 ---------------------------------------------------------------------
 |    2      |      2         |   child2       |    description2     |
 ---------------------------------------------------------------------
 |    3      |      2         |   child3       |    description3     |
 ---------------------------------------------------------------------
 |    4      |      3         |   child4       |    description4     |
 ---------------------------------------------------------------------
 |    5      |      3         |   child5       |    description5     |
 ---------------------------------------------------------------------
 |    6      |      3         |   child6       |    description6     |
 ---------------------------------------------------------------------
 
 </re>
 

The following are rules that may help you in correctly specifying an SQL query that will work with the ArcSDE Java API.

SdeRow.javaClass Wrapper for an SeRow so it allows asking multiple times for the same property.
TestData.javaClass Provides access to the ArcSDEDataStore test data configuration.
TestFilterHandler.javaClass stolen from filter module tests.
ViewRegisteringFactoryHelper.javaClass Utility class to help DataStoreFactories for s register the views provided in a java.util.Map in the call to the factory's createDataStore(Map) method.

NOTE this class is a rough copy of the one in the sql-datastore unsupported module.

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.