Java Doc for CoordinateAccess.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » oracle » sdo » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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.data.oracle.sdo 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.oracle.sdo.CoordinateAccess

CoordinateAccess
public interface CoordinateAccess extends CoordinateSequence(Code)
Allows manipulation of a Geometry's CoordianteSequece.

The number of ordinates in each Coordiante is getDimension() + getNumAttributes()
The examples given in this interface are based on a 2-dimensional coordinate system, x and y,
with two attributes: z and t.
In this case z is the third dimension, but is not used for rendering and the coordinate
remains 2-dimensional.


author:
   jgarnett




Method Summary
 ObjectgetAttribute(int coordinate, int attribute)
     getAttribute purpose.
 intgetDimension()
     Retrieve the number of spatial dimensions of Coordiantes.
 intgetNumAttributes()
     Retrieve number of measures associated with a Coordiantes

This is the number of non spatially significant ordinates.

 doublegetOrdinate(int coordinate, int ordinate)
    
 voidsetAt(int coordinate, double[] ordinates, Object[] attributes)
     Allows modification of a single coordinate (including attribute values).

Normal Use: where D is getDimensions() and N is getNumAttributes():


 dimensions: [ ordX, ordY, ..., ordD ]
 attributes: [ atr1, atr2, ...., atrN ]
 

When dealing with attributes that are all double values the ordinates array may be used to set both ordinates and attribute values.

Optimized Use: where D is getDimensions() and N is getNumAttributes():


 dimensions: [ ordX, ordY, ..., ordD, atr1, atr2, ...
 voidsetAttribute(int coordinate, int attribute, Object value)
     setAttribute purpose.
 voidsetAttributeArray(int attribute, Object attributeArray)
     setAttributeArray purpose.
 voidsetCoordinateArrays(double[][] ordinateArrays, Object[] attributeArrays)
     Completely replace sequence with the provided information.
 voidsetOrdinate(int coordinate, int ordinate, double value)
     Set a single ordinate.
 voidsetOrdinateArray(int ordinate, double[] ordinateArray)
     Supplies an array of ordiantes.
 Object[]toAttributeArray(int attribute)
     toAttributeArray purpose.
 Object[]toAttributeArrays()
     Retrieve Attribute information (an array of attributes for each coordiante).
 double[]toOrdinateArray(int ordinate)
     Retrive ordinates as an array.

Example: (x,y) getDimension()==2
This is defined for the number of dimensions.

 double[][]toOrdinateArrays()
     Retrieve ordinate information (an array of ordinates for each coordinate).



Method Detail
getAttribute
Object getAttribute(int coordinate, int attribute)(Code)
getAttribute purpose.

attribute is between 0 and getNumAttributes()


Parameters:
  coordinate -
Parameters:
  attribute - is between 0 and getNumAttributes()



getDimension
int getDimension()(Code)
Retrieve the number of spatial dimensions of Coordiantes.

This is the number of spatially significant ordiantes (usually 2 or 3)

Number of spatially signficant ordinates



getNumAttributes
int getNumAttributes()(Code)
Retrieve number of measures associated with a Coordiantes

This is the number of non spatially significant ordinates.

Number of measures, or 0 if measures not used



getOrdinate
double getOrdinate(int coordinate, int ordinate)(Code)
Retrive a single ordinate
Parameters:
  coordinate - Coordinate to retrive from
Parameters:
  ordinate - Ordinate to retrive from coordiante Specified ordinate



setAt
void setAt(int coordinate, double[] ordinates, Object[] attributes)(Code)
Allows modification of a single coordinate (including attribute values).

Normal Use: where D is getDimensions() and N is getNumAttributes():


 dimensions: [ ordX, ordY, ..., ordD ]
 attributes: [ atr1, atr2, ...., atrN ]
 

When dealing with attributes that are all double values the ordinates array may be used to set both ordinates and attribute values.

Optimized Use: where D is getDimensions() and N is getNumAttributes():


 dimensions: [ ordX, ordY, ..., ordD, atr1, atr2, ... attrN ]
 attributes: null
 


Parameters:
  coordinate - index of coordiante to be modified
Parameters:
  ordinates - array ordinate values (may be extended with attributevalues)
Parameters:
  attributes - array of attribute values, or null is ordinates hasbeen extended



setAttribute
void setAttribute(int coordinate, int attribute, Object value)(Code)
setAttribute purpose.

attribute is between 0 and getNumAttributes()


Parameters:
  coordinate - the coordinate to be modified
Parameters:
  attribute - between 0 and getNumAttributes()
Parameters:
  value -



setAttributeArray
void setAttributeArray(int attribute, Object attributeArray)(Code)
setAttributeArray purpose.

Description ...


Parameters:
  attribute - between 0 and getNumAttributes()
Parameters:
  attributeArray - May be an object or primative array



setCoordinateArrays
void setCoordinateArrays(double[][] ordinateArrays, Object[] attributeArrays)(Code)
Completely replace sequence with the provided information.

Example: (x,y,m,g) getDimension()==2, getNumAttributes()==2


 dimensions:[ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
 attributes:[ [ m1, m2,...,mN], [ g1, g2,..., gN] ]
 

Parameters:
  ordinateArrays - dimensions column major ordinate arrays (these are spatially significant)
Parameters:
  attributeArrays - Indiviual attribute arrays may be primative orobject arrays



setOrdinate
void setOrdinate(int coordinate, int ordinate, double value)(Code)
Set a single ordinate.
Parameters:
  coordinate - Corrdinate to modify
Parameters:
  ordinate - Ordinate to modify in coordinate
Parameters:
  value - new value



setOrdinateArray
void setOrdinateArray(int ordinate, double[] ordinateArray)(Code)
Supplies an array of ordiantes.

The ordinateArray should be the same length as the CoordinateSequence.
ordinate should be between 0 and getDimension().
If the attributes are doubles as well, then ordinate can be as great as
getDimension() + getNumAttributes().




toAttributeArray
Object[] toAttributeArray(int attribute)(Code)
toAttributeArray purpose.

Description ...


Parameters:
  attribute - Between 0 and getNumAttrributes() an array of attributes



toAttributeArrays
Object[] toAttributeArrays()(Code)
Retrieve Attribute information (an array of attributes for each coordiante).

Example: (x,y,m,g) getDimension()==2, getAttributes()==2


 [ [ m1, m2,...,mN], [ g1, g2,..., gN] ]
 

Attribute Arrays, may be object or primative arrays



toOrdinateArray
double[] toOrdinateArray(int ordinate)(Code)
Retrive ordinates as an array.

Example: (x,y) getDimension()==2
This is defined for the number of dimensions. If the other attributes happen to be a double, they can still be accessed by using an ordinate value geater than getDimension().

  • ordinate 0: x ordinate
  • ordinate 1: y ordinate
  • ordinate 2: m attribute
  • ordinate 3: g attribute

Parameters:
  ordinate - Ordinate to retrieve. ordinate is less than
getDimension()+getMeasures() if the measures are doubles aswell. Otherwise
ordinate is less than getDimensions(). ordinate array



toOrdinateArrays
double[][] toOrdinateArrays()(Code)
Retrieve ordinate information (an array of ordinates for each coordinate).

Example: (x,y,m,g) getDimension()==2, getNumAttributes()==2


 [ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
 
column major ordinate arrays (these are spatially significant)



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