01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2003-2006, Geotools Project Managment Committee (PMC)
05: * (C) 2003 Refractions Research Inc.
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * Refractions Research Inc. Can be found on the web at:
18: * http://www.refractions.net/
19: *
20: * Created on Oct 29, 2003
21: */
22: package org.geotools.data.oracle.sdo;
23:
24: import com.vividsolutions.jts.geom.CoordinateSequenceFactory;
25:
26: /**
27: * Extends CoordianteSequenceFactory with meta data information.
28: * <p>
29: * This allows us to determine the dimensions of a Geometry.
30: * </p>
31: * @author jgarnett
32: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/oracle-spatial/src/main/java/org/geotools/data/oracle/sdo/CoordinateAccessFactory.java $
33: */
34: public interface CoordinateAccessFactory extends
35: CoordinateSequenceFactory {
36: /**
37: * Create method that allows additional content.
38: * <p>
39: * Example: (x,y,z,t) getDimension()==2, getNumAttributes()==2
40: * </p>
41: * <pre><code>
42: * <b>xyz</b>:[ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
43: * <b>attributes</b>:[ [ z1, z2,...,zN], [ t1, t2,..., tN] ]
44: * </code></pre>
45: * @param xyz an array of doubles in column major order where xyz.length == getDimension()
46: * @param attributes an array of Objects which can be null. Column major measure arrays where attributes.length == getNumAttributes()
47: */
48: public CoordinateAccess create(double[] xyz[], Object[] attributes);
49:
50: /** Number of spatial ordinates() */
51: public int getDimension();
52:
53: /** Number of non spatial ordinates() */
54: public int getNumAttributes();
55: }
|