Interface CoordinateAccessFactory

All Superinterfaces:
CoordinateSequenceFactory

public interface CoordinateAccessFactory extends CoordinateSequenceFactory
Extends CoordinateSequenceFactory with meta data information.

This allows us to determine the dimensions of a Geometry.

Author:
jgarnett
  • Method Details

    • create

      CoordinateAccess create(double[][] xyz, Object[] attributes)
      Create method that allows additional content.

      Example: (x,y,z,t) getDimension()==2, getNumAttributes()==2

      
       xyz:[ [ x1, x2,...,xN], [ y1, y2,...,yN] ]
       attributes:[ [ z1, z2,...,zN], [ t1, t2,..., tN] ]
       
      Parameters:
      xyz - an array of doubles in column major order where xyz.length == getDimension()
      attributes - an array of Objects which can be null. Column major measure arrays where attributes.length == getNumAttributes()
    • getDimension

      int getDimension()
      Number of spatial ordinates()
    • getNumAttributes

      int getNumAttributes()
      Number of non spatial ordinates()