/*
 *    GeoTools - OpenSource mapping toolkit
 *    http://geotools.org
 *    (C) 2003-2006, Geotools Project Managment Committee (PMC)
 *    (C) 2003  Refractions Research Inc.
 *    
 *    This library is free software; you can redistribute it and/or
 *    modify it under the terms of the GNU Lesser General Public
 *    License as published by the Free Software Foundation; either
 *    version 2.1 of the License, or (at your option) any later version.
 *
 *    This library is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *    Lesser General Public License for more details.
 *
 *    Refractions Research Inc. Can be found on the web at:
 *    http://www.refractions.net/
 *
 *    Created on Oct 29, 2003
 */
package org.geotools.data.oracle.sdo;

import com.vividsolutions.jts.geom.CoordinateSequenceFactory;

/**
 * Extends CoordianteSequenceFactory with meta data information.
 * <p>
 * This allows us to determine the dimensions of a Geometry.
 * </p>
 * @author jgarnett
 * @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 $
 */
public interface CoordinateAccessFactory extends CoordinateSequenceFactory {
    /**
     * Create method that allows additional content.
     * <p>
     * Example: (x,y,z,t) getDimension()==2, getNumAttributes()==2
     * </p> 
     * <pre><code>
     * <b>xyz</b>:[ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
     * <b>attributes</b>:[ [ z1, z2,...,zN], [ t1, t2,..., tN] ]
     * </code></pre>
     * @param xyz        an array of doubles in column major order where xyz.length == getDimension()
     * @param attributes an array of Objects which can be null. Column major measure arrays where attributes.length == getNumAttributes()
     */    
    public CoordinateAccess create(double[] xyz[], Object[] attributes );

    /** Number of spatial ordinates() */
    public int getDimension();
    
    /** Number of non spatial ordinates() */
    public int getNumAttributes();
}
